diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-29 16:07:21 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-29 16:07:21 +0000 |
commit | 971713ef6b3cb00c871a3420b890c0feeb80d605 (patch) | |
tree | 0df6925f83f162737a2b7813a5e19e7a6b8f228a /chrome/browser/child_process_security_policy.h | |
parent | 2add77b802f0f5cab795a0a4d9ecb48003447d51 (diff) | |
download | chromium_src-971713ef6b3cb00c871a3420b890c0feeb80d605.zip chromium_src-971713ef6b3cb00c871a3420b890c0feeb80d605.tar.gz chromium_src-971713ef6b3cb00c871a3420b890c0feeb80d605.tar.bz2 |
DevTools: Implement raw cookies access for inspector.
Review URL: http://codereview.chromium.org/294025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30457 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/child_process_security_policy.h')
-rw-r--r-- | chrome/browser/child_process_security_policy.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/chrome/browser/child_process_security_policy.h b/chrome/browser/child_process_security_policy.h index 402cd1b..9cde10a 100644 --- a/chrome/browser/child_process_security_policy.h +++ b/chrome/browser/child_process_security_policy.h @@ -80,6 +80,12 @@ class ChildProcessSecurityPolicy { // Grant this renderer the ability to use extension Bindings. void GrantExtensionBindings(int renderer_id); + // Grant this renderer the ability to read raw cookies. + void GrantReadRawCookies(int renderer_id); + + // Revoke read raw cookies permission. + void RevokeReadRawCookies(int renderer_id); + // Before servicing a renderer's request for a URL, the browser should call // this method to determine whether the renderer has the capability to // request the URL. @@ -90,16 +96,19 @@ class ChildProcessSecurityPolicy { // capability to upload the requested file. bool CanUploadFile(int renderer_id, const FilePath& file); - // Returns true of the specified renderer_id has been granted DOMUIBindings. + // Returns true if the specified renderer_id has been granted DOMUIBindings. // The browser should check this property before assuming the renderer is // allowed to use DOMUIBindings. bool HasDOMUIBindings(int renderer_id); - // Returns true of the specified renderer_id has been granted DOMUIBindings. + // Returns true if the specified renderer_id has been granted DOMUIBindings. // The browser should check this property before assuming the renderer is // allowed to use extension bindings. bool HasExtensionBindings(int renderer_id); + // Returns true if the specified renderer_id has been granted ReadRawCookies. + bool CanReadRawCookies(int renderer_id); + private: friend class ChildProcessSecurityPolicyInProcessBrowserTest; FRIEND_TEST(ChildProcessSecurityPolicyInProcessBrowserTest, NoLeak); |