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

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

Issue 9963107: Persist sessionStorage on disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Draft: associate with session restore. 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
Index: content/browser/dom_storage/session_storage_namespace_impl.h
diff --git a/content/browser/dom_storage/session_storage_namespace_impl.h b/content/browser/dom_storage/session_storage_namespace_impl.h
index 11283d49f3c6d08fd1fbe31993bc26978f51c609..d6e52c42f28d08e4f86cdd9f36a32e9da5bf2f8e 100644
--- a/content/browser/dom_storage/session_storage_namespace_impl.h
+++ b/content/browser/dom_storage/session_storage_namespace_impl.h
@@ -10,6 +10,7 @@
#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
#include "content/public/browser/session_storage_namespace.h"
+#include "webkit/dom_storage/dom_storage_context.h"
class DOMStorageContextImpl;
@@ -17,13 +18,25 @@ namespace dom_storage {
class DomStorageSession;
}
+struct SessionStorageAssociatedDetails {
+ int64 id;
+ int real_id;
+ SessionStorageAssociatedDetails();
+ SessionStorageAssociatedDetails(int64 id, int64 real_id);
+ ~SessionStorageAssociatedDetails();
+};
+
class SessionStorageNamespaceImpl
- : NON_EXPORTED_BASE(public content::SessionStorageNamespace) {
+ : NON_EXPORTED_BASE(public content::SessionStorageNamespace),
+ public dom_storage::DomStorageContext::SessionStorageObserver {
public:
explicit SessionStorageNamespaceImpl(DOMStorageContextImpl* context);
- int64 id() const;
+ virtual int64 id() const;
SessionStorageNamespaceImpl* Clone();
+ virtual void OnSessionStorageNamespaceAssociated(
+ int64 real_namespace_id);
+
private:
explicit SessionStorageNamespaceImpl(dom_storage::DomStorageSession* clone);
virtual ~SessionStorageNamespaceImpl();

Powered by Google App Engine
This is Rietveld 408576698