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

Unified Diff: content/public/browser/child_process_security_policy.h

Issue 10310124: Implement a ResourceThrottle for URL overriding in Chrome on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: removed code from web_contents_impl Created 8 years, 7 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: content/public/browser/child_process_security_policy.h
diff --git a/content/public/browser/child_process_security_policy.h b/content/public/browser/child_process_security_policy.h
index fca4c9a05de249370cb13a95be473021ae9fea03..c65dc73afc4c9b7f1300dedf68500194d588130c 100644
--- a/content/public/browser/child_process_security_policy.h
+++ b/content/public/browser/child_process_security_policy.h
@@ -13,6 +13,7 @@
#include "content/common/content_export.h"
class FilePath;
+class GURL;
namespace content {
@@ -58,6 +59,11 @@ class ChildProcessSecurityPolicy {
// capability to upload the requested file.
virtual bool CanReadFile(int child_id, const FilePath& file) = 0;
+ // Before servicing a child process's request for a URL, the browser should
+ // call this method to determine whether the process has the capability to
+ // request the URL.
+ virtual bool CanRequestURL(int child_id, const GURL& url) = 0;
+
// Whenever the user picks a file from a <input type="file"> element, the
// browser should call this function to grant the child process the capability
// to upload the file to the web.

Powered by Google App Engine
This is Rietveld 408576698