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

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

Issue 10831116: Move SessionStorageNamespace entirely into NavigationController and support StoragePartitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged ToT Created 8 years, 4 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 | « content/public/browser/browser_context.h ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f5e684979b879e2c627956011e3d03c741494e40..93371748343b950001738033f271680a0685d483 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -274,6 +274,21 @@ class CONTENT_EXPORT ContentBrowserClient {
content::BrowserContext* browser_context,
int child_process_id);
+ // Same as GetStoragePartitionIdForChildProcess(), but uses a SiteInstance
+ // instead.
+ //
+ // TODO(ajwong): Replace all uses of GetStoragePartitionIdForChildProcess()
+ // with this one.
+ virtual std::string GetStoragePartitionIdForSiteInstance(
+ content::BrowserContext* browser_context,
+ content::SiteInstance* instance);
+
+ // Allows the embedder to provide a validation check for |partition_id|s.
+ // This domain of valid entries should match the range of outputs for
+ // GetStoragePartitionIdForChildProcess().
+ virtual bool IsValidStoragePartitionId(BrowserContext* browser_context,
+ const std::string& partition_id);
+
// Create and return a new quota permission context.
virtual QuotaPermissionContext* CreateQuotaPermissionContext();
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698