2017-11-28 18:00:50 -05:00
|
|
|
// Copyright (c) 2017 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
|
|
|
#include "libcef/browser/net/net_util.h"
|
|
|
|
|
|
|
|
#include "net/url_request/url_request.h"
|
|
|
|
#include "url/url_constants.h"
|
|
|
|
|
|
|
|
namespace net_util {
|
|
|
|
|
2018-02-05 19:21:14 -05:00
|
|
|
bool IsInternalRequest(const net::URLRequest* request) {
|
2017-11-28 18:00:50 -05:00
|
|
|
// With PlzNavigate we now receive blob URLs. Ignore these URLs.
|
|
|
|
// See https://crbug.com/776884 for details.
|
|
|
|
if (request->url().SchemeIs(url::kBlobScheme)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-03-13 21:27:37 +00:00
|
|
|
} // namespace net_util
|