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

Unified Diff: webkit/dom_storage/dom_storage_context.cc

Issue 9718029: DomStorage commit task sequencing. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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.cc
===================================================================
--- webkit/dom_storage/dom_storage_context.cc (revision 127613)
+++ webkit/dom_storage/dom_storage_context.cc (working copy)
@@ -89,11 +89,18 @@
}
void DomStorageContext::PurgeMemory() {
- // TODO(michaeln): write me
+ // We can only purge memory from the local storage namespace
benm (inactive) 2012/03/20 13:39:16 did you mean to add these changes in this CL?
+ // which is backed by disk.
+ StorageNamespaceMap::iterator found =
+ namespaces_.find(kLocalStorageNamespaceId);
+ if (found != namespaces_.end())
+ found->second->PurgeMemory();
}
void DomStorageContext::Shutdown() {
- // TODO(michaeln): write me
+ StorageNamespaceMap::const_iterator it = namespaces_.begin();
+ for (; it != namespaces_.end(); ++it)
+ it->second->Shutdown();
}
void DomStorageContext::AddEventObserver(EventObserver* observer) {

Powered by Google App Engine
This is Rietveld 408576698