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

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: Rebase 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
« no previous file with comments | « no previous file | content/browser/child_process_security_policy_impl.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_impl.h
diff --git a/content/browser/child_process_security_policy_impl.h b/content/browser/child_process_security_policy_impl.h
index e99599aa98905f3413fcc2d321f3306dbfb77c0e..82a5e818a4a2e10bb72ca6e312f31d0b9088ce0a 100644
--- a/content/browser/child_process_security_policy_impl.h
+++ b/content/browser/child_process_security_policy_impl.h
@@ -176,9 +176,25 @@ 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);
+ // Used to indicate the result of comparing a process's origin lock to
+ // another value:
+ enum class CheckOriginLockResult {
+ // The process does not exist, or it has no origin lock.
+ NO_LOCK,
+ // The process has an origin lock and it matches the passed-in value.
+ HAS_EQUAL_LOCK,
+ // The process has an origin lock and it does not match the passed-in
+ // value.
+ HAS_WRONG_LOCK,
+ };
+
+ // Check the origin lock of the process specified by |child_id| against
+ // |site_url|. See the definition of |CheckOriginLockResult| for possible
+ // returned values.
+ CheckOriginLockResult CheckOriginLock(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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698