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. |