Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: chrome/browser/extensions/url_request_util.h

Issue 237793003: Use default CSP for resource loading in webview (instead of platform app's CSP) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments from jamescook@ and yoyo@ Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/url_request_util.h
diff --git a/chrome/browser/extensions/url_request_util.h b/chrome/browser/extensions/url_request_util.h
index a6056f3dbaae59929762e10c881eb9d6faaf36a0..1be2589cdd356a2887e7e1122fe9698a34745ec7 100644
--- a/chrome/browser/extensions/url_request_util.h
+++ b/chrome/browser/extensions/url_request_util.h
@@ -41,6 +41,10 @@ net::URLRequestJob* MaybeCreateURLRequestResourceBundleJob(
const std::string& content_security_policy,
bool send_cors_header);
+// Returns true if |request| corresponds to a resource request from a
+// <webview>.
+bool IsWebViewRequest(net::URLRequest* request);
+
} // namespace url_request_util
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698