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 07a05aaf62beab8ac863d64937760cea9972c957..d0507329513701b030b7bed906543477894153c0 100644 |
--- a/content/public/browser/content_browser_client.h |
+++ b/content/public/browser/content_browser_client.h |
@@ -262,23 +262,7 @@ class CONTENT_EXPORT ContentBrowserClient { |
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); |
- |
- // Same as GetStoragePartitionIdForChildProcess(), but uses a site instead. |
- // |
- // TODO(ajwong): Replace all uses of GetStoragePartitionIdForChildProcess() |
- // with this one. |
+ // Allow the embedder to specify storage parititon id associated with a site. |
virtual std::string GetStoragePartitionIdForSite( |
content::BrowserContext* browser_context, |
const GURL& site); |
@@ -289,6 +273,15 @@ class CONTENT_EXPORT ContentBrowserClient { |
virtual bool IsValidStoragePartitionId(BrowserContext* browser_context, |
const std::string& partition_id); |
+ // Allow the embedder to provide storage parititon description associated with |
+ // a site. |
Charlie Reis
2012/11/06 00:17:18
Since this is the public header file that embedder
nasko
2012/11/06 01:21:52
Done.
|
+ virtual void GetStoragePartitionConfigForSite( |
+ content::BrowserContext* browser_context, |
+ const GURL& site, |
+ std::string* partition_domain, |
+ std::string* partition_name, |
+ bool* in_memory); |
+ |
// Create and return a new quota permission context. |
virtual QuotaPermissionContext* CreateQuotaPermissionContext(); |