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

Unified Diff: extensions/browser/extensions_browser_client.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: Add comment to added file 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
« no previous file with comments | « extensions/browser/extension_protocols.cc ('k') | extensions/browser/test_extensions_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extensions_browser_client.h
diff --git a/extensions/browser/extensions_browser_client.h b/extensions/browser/extensions_browser_client.h
index d7c02d95a38f57fc2d8a17bc816430fcce7ff931..e3b91b27756dd08661d9af06cbc1cf4cd9fc68f1 100644
--- a/extensions/browser/extensions_browser_client.h
+++ b/extensions/browser/extensions_browser_client.h
@@ -96,6 +96,10 @@ class ExtensionsBrowserClient {
const extensions::Extension* extension,
content::BrowserContext* context) const = 0;
+ // Returns true if |request| corresponds to a resource request from a
+ // <webview>.
+ virtual bool IsWebViewRequest(net::URLRequest* request) const = 0;
+
// Returns an URLRequestJob to load an extension resource from the embedder's
// resource bundle (.pak) files. Returns NULL if the request is not for a
// resource bundle resource or if the embedder does not support this feature.
« no previous file with comments | « extensions/browser/extension_protocols.cc ('k') | extensions/browser/test_extensions_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698