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

Unified Diff: content/browser/dom_storage/dom_storage_context_impl.cc

Issue 10572015: Session restore: Store and restore persistent IDs for sessionStorage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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: content/browser/dom_storage/dom_storage_context_impl.cc
diff --git a/content/browser/dom_storage/dom_storage_context_impl.cc b/content/browser/dom_storage/dom_storage_context_impl.cc
index f953bc37e89e3a31dc2e5438a60b89725ebcc0d6..d525462ee2ab28b0ab892fc5520086d7e1ffcada 100644
--- a/content/browser/dom_storage/dom_storage_context_impl.cc
+++ b/content/browser/dom_storage/dom_storage_context_impl.cc
@@ -8,6 +8,7 @@
#include "base/bind_helpers.h"
#include "base/file_path.h"
#include "base/message_loop_proxy.h"
+#include "content/browser/dom_storage/session_storage_namespace_impl.h"
#include "content/public/browser/browser_thread.h"
#include "webkit/dom_storage/dom_storage_area.h"
#include "webkit/dom_storage/dom_storage_context.h"
@@ -84,6 +85,13 @@ void DOMStorageContextImpl::DeleteOrigin(const GURL& origin) {
base::Bind(&DomStorageContext::DeleteOrigin, context_, origin));
}
+scoped_refptr<content::SessionStorageNamespace>
+DOMStorageContextImpl::RecreateSessionStorage(
+ const std::string& persistent_id) {
+ return scoped_refptr<content::SessionStorageNamespace>(
+ new SessionStorageNamespaceImpl(this, persistent_id));
+}
+
void DOMStorageContextImpl::PurgeMemory() {
DCHECK(context_);
context_->task_runner()->PostShutdownBlockingTask(

Powered by Google App Engine
This is Rietveld 408576698