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

Unified Diff: webkit/dom_storage/dom_storage_context.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
Index: webkit/dom_storage/dom_storage_context.h
diff --git a/webkit/dom_storage/dom_storage_context.h b/webkit/dom_storage/dom_storage_context.h
index c7d57a368b6d1931da0dbf9d3ee220817eff5606..33b1e8ce65fa02d3cc7cedd2b79a3b955068f2ed 100644
--- a/webkit/dom_storage/dom_storage_context.h
+++ b/webkit/dom_storage/dom_storage_context.h
@@ -151,10 +151,14 @@ class DomStorageContext
return session_id_sequence_.GetNext();
}
+ std::string AllocatePersistentSessionId();
+
// Must be called on the background thread.
- void CreateSessionNamespace(int64 namespace_id);
+ void CreateSessionNamespace(int64 namespace_id,
+ const std::string& persistent_namespace_id);
void DeleteSessionNamespace(int64 namespace_id);
- void CloneSessionNamespace(int64 existing_id, int64 new_id);
+ void CloneSessionNamespace(int64 existing_id, int64 new_id,
+ const std::string& new_persistent_id);
private:
friend class DomStorageContextTest;

Powered by Google App Engine
This is Rietveld 408576698