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 b2a343f05b142ecd67c37bf9627f989428c05319..06f3035558dd18bc6a11b51995e42be6843110f3 100644 |
--- a/content/public/browser/child_process_security_policy.h |
+++ b/content/public/browser/child_process_security_policy.h |
@@ -9,6 +9,7 @@ |
#include "base/basictypes.h" |
#include "content/common/content_export.h" |
+#include "url/gurl.h" |
namespace base { |
class FilePath; |
@@ -153,6 +154,12 @@ class ChildProcessSecurityPolicy { |
// Grants permission to send system exclusive message to any MIDI devices. |
virtual void GrantSendMidiSysExMessage(int child_id) = 0; |
+ |
+ // Returns true if the process is permitted to read and modify the data for |
+ // the given origin. This is currently used for cookies and passwords. |
+ // Does not affect cookies attached to or set by network requests. |
+ // Only might return false if the --site-per-process flag is used. |
+ virtual bool CanAccessDataForOrigin(int child_id, const GURL& gurl) = 0; |
}; |
} // namespace content |