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

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

Issue 573843002: Allows webview to access extension resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix problems with early returns. Created 6 years, 3 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 99d21773c97d0b638ed32a1d29b7fe1cac369343..a9c769527f8819d2b487a87fc5e2ac1aa708a524 100644
--- a/chrome/browser/extensions/url_request_util.h
+++ b/chrome/browser/extensions/url_request_util.h
@@ -25,12 +25,14 @@ class InfoMap;
// chrome/browser/extensions/extension_protocols_unittest.cc for related tests.
namespace url_request_util {
-// Returns true to allow a chrome-extension:// resource request coming from
-// renderer A to access a resource in an extension running in renderer B.
-bool AllowCrossRendererResourceLoad(net::URLRequest* request,
- bool is_incognito,
- const Extension* extension,
- InfoMap* extension_info_map);
+// Sets allowed=true to allow a chrome-extension:// resource request coming from
+// renderer A to access a resource in an extension running in renderer B.\
+// Returns false when it couldn't determine if the resource is allowed or not
+bool ChromeAllowCrossRendererResourceLoad(net::URLRequest* request,
Ken Rockot(use gerrit already) 2014/09/16 16:50:52 Or you could change the namespace to chrome_url_re
+ bool is_incognito,
+ const Extension* extension,
+ InfoMap* extension_info_map,
+ bool* allowed);
// Creates a URLRequestJob for loading component extension resources out of
// a Chrome resource bundle. Returns NULL if the requested resource is not a
@@ -42,10 +44,6 @@ 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
« no previous file with comments | « chrome/browser/extensions/chrome_extensions_browser_client.cc ('k') | chrome/browser/extensions/url_request_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698