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

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: 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: 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..78d2ce7ee67925078ba2328059c224c3b1e780eb 100644
--- a/webkit/dom_storage/dom_storage_session.h
+++ b/webkit/dom_storage/dom_storage_session.h
@@ -6,6 +6,8 @@
#define WEBKIT_DOM_STORAGE_DOM_STORAGE_SESSION_H_
#pragma once
+#include <string>
+
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
@@ -21,17 +23,25 @@ class DomStorageSession
: public base::RefCountedThreadSafe<DomStorageSession> {
public:
explicit DomStorageSession(DomStorageContext* context);
+ DomStorageSession(DomStorageContext* context,
+ const std::string& persistent_namespace_id);
int64 namespace_id() const { return namespace_id_; }
+ std::string persistent_namespace_id() const {
+ return persistent_namespace_id_;
+ }
DomStorageSession* Clone();
private:
friend class base::RefCountedThreadSafe<DomStorageSession>;
- DomStorageSession(DomStorageContext* context, int64 namespace_id);
+ DomStorageSession(DomStorageContext* context,
+ int64 namespace_id,
+ const std::string& persistent_namespace_id);
~DomStorageSession();
scoped_refptr<DomStorageContext> context_;
int64 namespace_id_;
+ std::string persistent_namespace_id_;
DISALLOW_IMPLICIT_CONSTRUCTORS(DomStorageSession);
};

Powered by Google App Engine
This is Rietveld 408576698