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

Unified Diff: webkit/dom_storage/dom_storage_map.h

Issue 10450009: DomStorageCachedArea + DomStorageProxy interface and unittests. These classes aren't used yet. (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
« no previous file with comments | « webkit/dom_storage/dom_storage_cached_area_unittest.cc ('k') | webkit/dom_storage/dom_storage_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/dom_storage/dom_storage_map.h
===================================================================
--- webkit/dom_storage/dom_storage_map.h (revision 138339)
+++ 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() const { return quota_; }
+ void set_quota(size_t quota) { quota_ = quota; }
private:
friend class base::RefCountedThreadSafe<DomStorageMap>;
« no previous file with comments | « webkit/dom_storage/dom_storage_cached_area_unittest.cc ('k') | webkit/dom_storage/dom_storage_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698