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

Unified Diff: webkit/dom_storage/dom_storage_namespace.h

Issue 10546167: Create and store persistent unique ids for sessionStorage. (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
« no previous file with comments | « webkit/dom_storage/dom_storage_context_unittest.cc ('k') | webkit/dom_storage/dom_storage_namespace.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/dom_storage/dom_storage_namespace.h
diff --git a/webkit/dom_storage/dom_storage_namespace.h b/webkit/dom_storage/dom_storage_namespace.h
index 6063266a498ff242114bd9748f384b59abe15d37..54668a3dea5b31a27743101519eb9710bfcbbfee 100644
--- a/webkit/dom_storage/dom_storage_namespace.h
+++ b/webkit/dom_storage/dom_storage_namespace.h
@@ -32,9 +32,13 @@ class DomStorageNamespace
// Constructor for a SessionStorage namespace with a non-zero id
// and no backing directory on disk.
DomStorageNamespace(int64 namespace_id,
+ const std::string& persistent_namespace_id,
DomStorageTaskRunner* task_runner);
int64 namespace_id() const { return namespace_id_; }
+ const std::string& persistent_namespace_id() const {
+ return persistent_namespace_id_;
+ }
// Returns the storage area for the given origin,
// creating instance if needed. Each call to open
@@ -45,7 +49,8 @@ class DomStorageNamespace
// Creates a clone of |this| namespace including
// shallow copies of all contained areas.
// Should only be called for session storage namespaces.
- DomStorageNamespace* Clone(int64 clone_namespace_id);
+ DomStorageNamespace* Clone(int64 clone_namespace_id,
+ const std::string& clone_persistent_namespace_id);
void DeleteOrigin(const GURL& origin);
void PurgeMemory();
@@ -71,6 +76,7 @@ class DomStorageNamespace
AreaHolder* GetAreaHolder(const GURL& origin);
int64 namespace_id_;
+ std::string persistent_namespace_id_;
FilePath directory_;
AreaMap areas_;
scoped_refptr<DomStorageTaskRunner> task_runner_;
« no previous file with comments | « webkit/dom_storage/dom_storage_context_unittest.cc ('k') | webkit/dom_storage/dom_storage_namespace.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698