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

Unified Diff: webkit/dom_storage/dom_storage_session.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: webkit/dom_storage/dom_storage_session.h
diff --git a/webkit/dom_storage/dom_storage_session.h b/webkit/dom_storage/dom_storage_session.h
index c6694b7d903890240926fbedc880a6b336186283..b2dd941d89463bb81aafe94a7b22cea3c59082ed 100644
--- a/webkit/dom_storage/dom_storage_session.h
+++ b/webkit/dom_storage/dom_storage_session.h
@@ -8,11 +8,10 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
+#include "webkit/dom_storage/dom_storage_context.h"
namespace dom_storage {
-class DomStorageContext;
-
// This refcounted class determines the lifetime of a session
// storage namespace and provides an interface to Clone() an
// existing session storage namespace. It may be used on any thread.
@@ -24,6 +23,11 @@ class DomStorageSession
int64 namespace_id() const { return namespace_id_; }
DomStorageSession* Clone();
+ void AddSessionStorageObserver(
+ int64 namespace_id,
+ DomStorageContext::SessionStorageObserver* observer);
+ void RemoveSessionStorageObserver(int64 namespace_id);
+
private:
friend class base::RefCountedThreadSafe<DomStorageSession>;
@@ -33,6 +37,8 @@ class DomStorageSession
scoped_refptr<DomStorageContext> context_;
int64 namespace_id_;
+ DomStorageContext::SessionStorageObserver* observer_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(DomStorageSession);
};

Powered by Google App Engine
This is Rietveld 408576698