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

Unified Diff: content/browser/in_process_webkit/dom_storage_context.cc

Issue 7480041: Adding session-only localStorage. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Un-blocking the WebKit thread, delayed answering to the DOMStorageHostMsg_StorageAreaId. Created 9 years, 5 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/in_process_webkit/dom_storage_context.cc
diff --git a/content/browser/in_process_webkit/dom_storage_context.cc b/content/browser/in_process_webkit/dom_storage_context.cc
index 3daa66ea5566e670c4ea27da29d7b5be03b16ec6..216e4b37fbc3e1767c3d240af1bc7929f781e0d9 100644
--- a/content/browser/in_process_webkit/dom_storage_context.cc
+++ b/content/browser/in_process_webkit/dom_storage_context.cc
@@ -48,12 +48,14 @@ const FilePath::CharType DOMStorageContext::kLocalStorageExtension[] =
DOMStorageContext::DOMStorageContext(
WebKitContext* webkit_context,
- quota::SpecialStoragePolicy* special_storage_policy)
+ quota::SpecialStoragePolicy* special_storage_policy,
+ const content::ResourceContext& resource_context)
: last_storage_area_id_(0),
last_session_storage_namespace_id_on_ui_thread_(kLocalStorageNamespaceId),
last_session_storage_namespace_id_on_io_thread_(kLocalStorageNamespaceId),
clear_local_state_on_exit_(false),
- special_storage_policy_(special_storage_policy) {
+ special_storage_policy_(special_storage_policy),
+ resource_context_(resource_context) {
data_path_ = webkit_context->data_path();
}
@@ -277,3 +279,7 @@ FilePath DOMStorageContext::GetLocalStorageFilePath(
webkit_glue::WebStringToFilePathString(origin_id);
return storageDir.Append(id.append(kLocalStorageExtension));
}
+
+const content::ResourceContext& DOMStorageContext::GetResourceContext() const {
+ return resource_context_;
jochen (gone - plz use gerrit) 2011/07/29 08:01:06 you can inline such small getters
marja 2011/08/01 08:36:32 Done.
+}

Powered by Google App Engine
This is Rietveld 408576698