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

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

Issue 9963107: Persist sessionStorage on disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. Created 8 years, 6 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/dom_storage/dom_storage_context_impl.h
diff --git a/content/browser/dom_storage/dom_storage_context_impl.h b/content/browser/dom_storage/dom_storage_context_impl.h
index b4771edf963d0509b80794fa1432663542db2767..884c9099125d60eb640398c716da7cb5225bae33 100644
--- a/content/browser/dom_storage/dom_storage_context_impl.h
+++ b/content/browser/dom_storage/dom_storage_context_impl.h
@@ -13,6 +13,10 @@
#include "content/public/browser/dom_storage_context.h"
#include "webkit/dom_storage/dom_storage_types.h"
+namespace content {
+class SessionStorageNamespace;
+}
+
namespace dom_storage {
class DomStorageContext;
}
@@ -29,7 +33,8 @@ class CONTENT_EXPORT DOMStorageContextImpl :
public:
// If |data_path| is empty, nothing will be saved to disk.
DOMStorageContextImpl(const FilePath& data_path,
- quota::SpecialStoragePolicy* special_storage_policy);
+ quota::SpecialStoragePolicy* special_storage_policy,
+ bool session_storage_on_disk);
// DOMStorageContext implementation.
virtual void GetAllStorageFiles(
@@ -38,6 +43,10 @@ class CONTENT_EXPORT DOMStorageContextImpl :
virtual void DeleteForOrigin(const string16& origin_id) OVERRIDE;
virtual void DeleteLocalStorageFile(const FilePath& file_path) OVERRIDE;
virtual void DeleteDataModifiedSince(const base::Time& cutoff) OVERRIDE;
+ virtual void DoomSessionStorage(int64 namespace_id) OVERRIDE;
+
+ virtual content::SessionStorageNamespace* CreateSessionStorage(
+ const std::string& persistent_id) OVERRIDE;
// Called to free up memory that's not strictly needed.
void PurgeMemory();

Powered by Google App Engine
This is Rietveld 408576698