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

Unified Diff: webkit/dom_storage/dom_storage_area.cc

Issue 10160003: DomStorage async IPC message definitions and browser-side handlers. These messages aren't called ye… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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_area.cc
===================================================================
--- webkit/dom_storage/dom_storage_area.cc (revision 133033)
+++ webkit/dom_storage/dom_storage_area.cc (working copy)
@@ -71,6 +71,16 @@
DomStorageArea::~DomStorageArea() {
}
+void DomStorageArea::ExtractValues(ValuesMap* map) {
+ if (is_shutdown_)
+ return;
+ InitialImportIfNeeded();
+ ValuesMap current_values;
+ map_->SwapValues(&current_values);
ericu 2012/04/20 23:36:00 As discussed, SwapValues leads to too much account
michaeln 2012/04/20 23:42:19 Yup, done.
+ *map = current_values;
+ map_->SwapValues(&current_values);
+}
+
unsigned DomStorageArea::Length() {
if (is_shutdown_)
return 0;

Powered by Google App Engine
This is Rietveld 408576698