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

Unified Diff: content/common/dom_storage/dom_storage_map.h

Issue 896643002: [DOMStorage] Rate limiting writes to disk. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: UMA counts of LocalStorage.CommitDeferredDuringStartup Created 5 years, 10 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: content/common/dom_storage/dom_storage_map.h
diff --git a/content/common/dom_storage/dom_storage_map.h b/content/common/dom_storage/dom_storage_map.h
index 140de07817a599287617b178d4f7909cc87ef25a..7130d27a5c9edc731afda83850893d55b16b8589 100644
--- a/content/common/dom_storage/dom_storage_map.h
+++ b/content/common/dom_storage/dom_storage_map.h
@@ -46,6 +46,8 @@ class CONTENT_EXPORT DOMStorageMap
size_t quota() const { return quota_; }
void set_quota(size_t quota) { quota_ = quota; }
+ static size_t CountBytes(const DOMStorageValuesMap& values);
+
private:
friend class base::RefCountedThreadSafe<DOMStorageMap>;
~DOMStorageMap();

Powered by Google App Engine
This is Rietveld 408576698