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

Unified Diff: webkit/dom_storage/dom_storage_map.h

Issue 10383123: Switch to using the async DomStorage IPC messages and add a caching layer … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 138129)
+++ webkit/dom_storage/dom_storage_map.h (working copy)
@@ -21,7 +21,7 @@
class DomStorageMap
: public base::RefCountedThreadSafe<DomStorageMap> {
public:
- DomStorageMap(size_t quota);
+ explicit DomStorageMap(size_t quota);
unsigned Length() const;
NullableString16 Key(unsigned index);
@@ -43,6 +43,8 @@
DomStorageMap* DeepCopy() const;
size_t bytes_used() const { return bytes_used_; }
+ size_t quota() { return quota_; }
+ void set_quota(size_t quota) { quota_ = quota; }
private:
friend class base::RefCountedThreadSafe<DomStorageMap>;

Powered by Google App Engine
This is Rietveld 408576698