| Index: chrome/browser/child_process_security_policy.h
|
| ===================================================================
|
| --- chrome/browser/child_process_security_policy.h (revision 30453)
|
| +++ chrome/browser/child_process_security_policy.h (working copy)
|
| @@ -80,6 +80,12 @@
|
| // 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 @@
|
| // 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);
|
|
|