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

Unified Diff: content/browser/dom_storage/dom_storage_context_impl.cc

Issue 9963107: Persist sessionStorage on disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test update. Created 8 years, 7 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 | webkit/dom_storage/dom_storage_area.h » ('j') | webkit/dom_storage/dom_storage_area.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/dom_storage/dom_storage_context_impl.cc
diff --git a/content/browser/dom_storage/dom_storage_context_impl.cc b/content/browser/dom_storage/dom_storage_context_impl.cc
index 683e105d7d4587564208ed0abe0bd487c1195c76..e4bdc4e52180973b7b5c1f8ae2ed9544cec02b08 100644
--- a/content/browser/dom_storage/dom_storage_context_impl.cc
+++ b/content/browser/dom_storage/dom_storage_context_impl.cc
@@ -26,6 +26,7 @@ using webkit_database::DatabaseUtil;
namespace {
const char kLocalStorageDirectory[] = "Local Storage";
+const char kSessionStorageDirectory[] = "Session Storage";
// TODO(michaeln): Fix the content layer api, FilePaths and
// string16 origin_ids are just wrong. Then get rid of
@@ -86,7 +87,8 @@ DOMStorageContextImpl::DOMStorageContextImpl(
context_ = new dom_storage::DomStorageContext(
data_path.empty() ?
data_path : data_path.AppendASCII(kLocalStorageDirectory),
- FilePath(), // Empty session storage directory.
+ data_path.empty() ?
+ data_path : data_path.AppendASCII(kSessionStorageDirectory),
michaeln 2012/05/16 08:10:55 until we work out how the higher level session res
marja 2012/05/30 11:46:19 I would have liked to put this "save session state
special_storage_policy,
new DomStorageWorkerPoolTaskRunner(
worker_pool,
« no previous file with comments | « no previous file | webkit/dom_storage/dom_storage_area.h » ('j') | webkit/dom_storage/dom_storage_area.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698