diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-12 21:27:44 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-12 21:27:44 +0000 |
commit | d7c7c98acae8978ab65c00b403e538cd7719ddb0 (patch) | |
tree | fe09c0b57954aa503154ebe71dad354e50d0abf6 /chrome/browser/chrome_content_browser_client.h | |
parent | fb29e6cfbf74a41c684d2196d9a8f75dd720ee6c (diff) | |
download | chromium_src-d7c7c98acae8978ab65c00b403e538cd7719ddb0.zip chromium_src-d7c7c98acae8978ab65c00b403e538cd7719ddb0.tar.gz chromium_src-d7c7c98acae8978ab65c00b403e538cd7719ddb0.tar.bz2 |
Support partitioning of storage contexts based on render_id.
This modifies BrowserContext to support having multiple storage partitions based on the child process id. The embedder is given a function that allows it to map a child process id into different storage buckets.
R=creis,nasko,jam
TBR=marja
BUG=85121
TEST=add an isolated app that covers a path like http://www.example.com/isolated/. On that page, add an entry to local storage. Access another page on www.example.com that is not isolated. Check that it cannot see the previously set entry. Repeat test in the reverse direction.
Review URL: https://chromiumcodereview.appspot.com/10600009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146443 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_content_browser_client.h')
-rw-r--r-- | chrome/browser/chrome_content_browser_client.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/chrome_content_browser_client.h b/chrome/browser/chrome_content_browser_client.h index 676930d..133027f 100644 --- a/chrome/browser/chrome_content_browser_client.h +++ b/chrome/browser/chrome_content_browser_client.h @@ -34,6 +34,9 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient { content::WebContents* web_contents, content::RenderViewHostDelegateView** render_view_host_delegate_view) OVERRIDE; + virtual std::string GetStoragePartitionIdForChildProcess( + content::BrowserContext* browser_context, + int child_process_id) OVERRIDE; virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate( content::WebContents* web_contents) OVERRIDE; virtual void RenderViewHostCreated( |