Index: content/browser/child_process_security_policy_impl.h |
diff --git a/content/browser/child_process_security_policy_impl.h b/content/browser/child_process_security_policy_impl.h |
index e99599aa98905f3413fcc2d321f3306dbfb77c0e..a27de981a5f9eb8f0c80125bce3df98c47f436e7 100644 |
--- a/content/browser/child_process_security_policy_impl.h |
+++ b/content/browser/child_process_security_policy_impl.h |
@@ -176,9 +176,16 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl |
// Sets the process as only permitted to use and see the cookies for the |
// given origin. |
- // Origin lock is applied only if the --site-per-process flag is used. |
void LockToOrigin(int child_id, const GURL& gurl); |
+ // Check if the process specified by |child_id| has a non-empty origin lock. |
+ bool HasOriginLock(int child_id); |
+ |
+ // Check if the process specified by |child_id| is dedicated to the provided |
+ // site URL. This returns true if LockToOrigin was previously called on the |
+ // same process and on a url with a site that matches |site_url|. |
+ bool IsLockedToOrigin(int child_id, const GURL& site_url); |
+ |
// Register FileSystem type and permission policy which should be used |
// for the type. The |policy| must be a bitwise-or'd value of |
// storage::FilePermissionPolicy. |