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

Unified Diff: content/public/browser/content_browser_client.h

Issue 10600009: Support partitioning of storage contexts based on render_id. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased Created 8 years, 5 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/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index d4030c7862dc8f07e67d8acc73574e60ca67db84..9fb5a4d5f4ffa4887d211864cd931990a0aebb3e 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -239,13 +239,26 @@ class CONTENT_EXPORT ContentBrowserClient {
ResourceContext* context,
const std::vector<std::pair<int, int> >& render_views);
- // Allows the embedder to override the request context based on the URL for
+ // Allow the embedder to override the request context based on the URL for
// certain operations, like cookie access. Returns NULL to indicate the
// regular request context should be used.
// This is called on the IO thread.
virtual net::URLRequestContext* OverrideRequestContextForURL(
const GURL& url, ResourceContext* context);
+ // Allow the embedder to specify storage parititon id associated with a child
+ // process.
+ //
+ // Child processes that have different storage partition identifiers will
+ // behave as if they belong to different web browsers and not be able to
+ // access each other's cookies, local storage, etc. IDs must only fit the
+ // pattern [a-z0-9]* (lowercase letters or digits).
+ //
+ // Returns the empty string for the regular storage partition.
+ virtual std::string GetStoragePartitionIdForChildProcess(
+ content::BrowserContext* browser_context,
+ int child_process_id);
+
// Create and return a new quota permission context.
virtual QuotaPermissionContext* CreateQuotaPermissionContext();

Powered by Google App Engine
This is Rietveld 408576698