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

Unified Diff: chrome/browser/chrome_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 | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.h
diff --git a/chrome/browser/chrome_content_browser_client.h b/chrome/browser/chrome_content_browser_client.h
index 6e4cb51ab9e90b20953237ac70632be5e9908b0e..3784e22090b32efb5b3980491478ef6ea96c1423 100644
--- a/chrome/browser/chrome_content_browser_client.h
+++ b/chrome/browser/chrome_content_browser_client.h
@@ -17,6 +17,10 @@ namespace content {
class QuotaPermissionContext;
}
+namespace extensions {
+class Extension;
+}
+
class PrefService;
namespace chrome {
@@ -37,6 +41,12 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient {
virtual std::string GetStoragePartitionIdForChildProcess(
content::BrowserContext* browser_context,
int child_process_id) OVERRIDE;
+ virtual std::string GetStoragePartitionIdForSiteInstance(
+ content::BrowserContext* browser_context,
+ content::SiteInstance* instance) OVERRIDE;
+ virtual bool IsValidStoragePartitionId(
+ content::BrowserContext* browser_context,
+ const std::string& partition_id) OVERRIDE;
virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate(
content::WebContents* web_contents) OVERRIDE;
virtual void RenderViewHostCreated(
@@ -214,6 +224,12 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient {
// Sets io_thread_application_locale_ to the given value.
void SetApplicationLocaleOnIOThread(const std::string& locale);
+ // Helper function for getting the storage partition id from an Extension
+ // object.
+ std::string GetStoragePartitionIdForExtension(
+ content::BrowserContext* browser_context,
+ const extensions::Extension* extension);
+
// Set of origins that can use TCP/UDP private APIs from NaCl.
std::set<std::string> allowed_socket_origins_;
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698