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

Unified Diff: content/browser/content_browser_client.h

Issue 7480041: Adding session-only localStorage. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Streamlining: Moving ResourceContext& from DOMStorageContext to DOMMessageFilter. Created 9 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/browser/content_browser_client.h
diff --git a/content/browser/content_browser_client.h b/content/browser/content_browser_client.h
index b4ff3953269850e660580c1b3e5412cc4da5281f..1dbf1fd0d1506620c2cb44a153c9b122d3a9b805 100644
--- a/content/browser/content_browser_client.h
+++ b/content/browser/content_browser_client.h
@@ -148,6 +148,13 @@ class ContentBrowserClient {
virtual bool AllowSaveLocalState(
const content::ResourceContext& context) = 0;
+ // Allow the embedder to restrict the given url to use only session-only
+ // storage.
+ virtual bool EnforceSessionOnlyStorage(
+ const GURL& url,
+ const GURL& first_party,
+ const content::ResourceContext& context) = 0;
+
// Allows the embedder to override the request context based on the URL for
// certain operations, like cookie access. Returns NULL to indicate the
// regular request context should be used.
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/in_process_webkit/dom_storage_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698