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

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: mac win compile fixes 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
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..8b9022aff654e7b55b826b24d528fd566e9cd89b 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -273,6 +273,15 @@ class CONTENT_EXPORT ContentBrowserClient {
virtual std::string GetStoragePartitionIdForChildProcess(
content::BrowserContext* browser_context,
int child_process_id);
+ 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();

Powered by Google App Engine
This is Rietveld 408576698