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

Unified Diff: webkit/dom_storage/dom_storage_map.h

Issue 9594038: Relax strict quota limit checks when reading pre-existing DomStorage database files. The other chec… (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_map.h
===================================================================
--- webkit/dom_storage/dom_storage_map.h (revision 125211)
+++ webkit/dom_storage/dom_storage_map.h (working copy)
@@ -30,10 +30,13 @@
NullableString16* old_value);
bool RemoveItem(const string16& key, string16* old_value);
- // Replaces values_ with |map|. Returns true on success, false
- // if the swap was prevented because |map| would exceed this
- // DomStorageMap's quota_.
- bool SwapValues(ValuesMap* map);
+ // Swaps this instances values_ with |map|.
+ // Note: to grandfather in pre-existing files that are overbudget,
+ // this method does not do quota checking.
+ void SwapValues(ValuesMap* map);
+
+ // Creates a new instance of DomStorageMap containing
+ // a deep copy of values_.
DomStorageMap* DeepCopy() const;
size_t bytes_used() const { return bytes_used_; }
« no previous file with comments | « no previous file | webkit/dom_storage/dom_storage_map.cc » ('j') | webkit/dom_storage/dom_storage_map_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698