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

Unified Diff: content/browser/child_process_security_policy_impl.h

Issue 2921063003: Fix process reuse for dedicated processes when over process limit. (Closed)
Patch Set: Cleanup Created 3 years, 6 months 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
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.
« no previous file with comments | « no previous file | content/browser/child_process_security_policy_impl.cc » ('j') | content/browser/isolated_origin_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698