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

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 test 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: 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;
James Cook 2014/04/15 17:21:21 It's unfortunate that ExtensionsBrowserClient need
Yoyo Zhou 2014/04/15 21:40:06 I think it's okay to add this for now; when we mak
lazyboy 2014/04/15 22:17:03 Updated test_extensions_browser_client.h
+
// 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.

Powered by Google App Engine
This is Rietveld 408576698