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

Unified Diff: content/browser/in_process_webkit/webkit_context.cc

Issue 8929007: Restore sessionStorage when chrome restarts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix: cloning storage areas. Created 8 years, 11 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 | « content/browser/in_process_webkit/webkit_context.h ('k') | content/public/browser/notification_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/in_process_webkit/webkit_context.cc
diff --git a/content/browser/in_process_webkit/webkit_context.cc b/content/browser/in_process_webkit/webkit_context.cc
index f1cb1da7072e0272c9412fc56db3520d16b0afd4..834acd423b83039e141a05e8d54e07805e9a5d6d 100644
--- a/content/browser/in_process_webkit/webkit_context.cc
+++ b/content/browser/in_process_webkit/webkit_context.cc
@@ -92,3 +92,16 @@ void WebKitContext::SaveSessionState() {
dom_storage_context_->SaveSessionState();
indexed_db_context_->SaveSessionState();
}
+
+void WebKitContext::DeleteUnneededSessionStorages(
+ const std::set<std::string>& needed_session_storages) {
+ if (!BrowserThread::CurrentlyOn(BrowserThread::WEBKIT_DEPRECATED)) {
+ BrowserThread::PostTask(
+ BrowserThread::WEBKIT_DEPRECATED, FROM_HERE,
+ base::Bind(&WebKitContext::DeleteUnneededSessionStorages, this,
+ needed_session_storages));
+ return;
+ }
+
+ dom_storage_context_->DeleteUnneededSessionStorages(needed_session_storages);
+}
« no previous file with comments | « content/browser/in_process_webkit/webkit_context.h ('k') | content/public/browser/notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698