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

Unified Diff: content/browser/child_process_security_policy.h

Issue 8496027: Enhance --enable-strict-site-isolation to prevent a site-isolated renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « no previous file | content/browser/child_process_security_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/child_process_security_policy.h
===================================================================
--- content/browser/child_process_security_policy.h (revision 111259)
+++ content/browser/child_process_security_policy.h (working copy)
@@ -141,6 +141,17 @@
// Returns true if the specified child_id has been granted ReadRawCookies.
bool CanReadRawCookies(int child_id);
+ // Returns true if the process is permitted to see and use the cookies for
+ // the given origin.
+ // Only might return false if the very experimental
+ // --enable-strict-site-isolation is used.
+ bool CanUseCookiesForOrigin(int child_id, const GURL& gurl);
+
+ // Sets the process as only permitted to use and see the cookies for the
+ // given origin.
+ // Only used if the very experimental --enable-strict-site-isolation is used.
+ void LockToOrigin(int child_id, const GURL& gurl);
+
private:
friend class ChildProcessSecurityPolicyInProcessBrowserTest;
FRIEND_TEST_ALL_PREFIXES(ChildProcessSecurityPolicyInProcessBrowserTest,
« no previous file with comments | « no previous file | content/browser/child_process_security_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698