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

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

Issue 11234032: Webview tag creation should be using storage partitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added IndexedDB test. Created 8 years, 1 month 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 07a05aaf62beab8ac863d64937760cea9972c957..0cff17d8e1feefdbc3d53522ae594356114f21e9 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
awong 2012/11/02 21:56:13 Description makes me think it's a user-visible str
nasko 2012/11/03 00:36:24 Done.
+ // a site.
+ virtual void GetStoragePartitionDescriptionForSite(
+ 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();

Powered by Google App Engine
This is Rietveld 408576698