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

Unified Diff: webkit/dom_storage/dom_storage_cached_area.cc

Issue 10799008: Web Inspector: count DOM storage cache memory for native snapshot (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/dom_storage/dom_storage_cached_area.cc
diff --git a/webkit/dom_storage/dom_storage_cached_area.cc b/webkit/dom_storage/dom_storage_cached_area.cc
index 6dfd1e59ec503674837f3581c19755c01c7fadbb..544d1a074fc8113c60c8441b3c97d83abd446c71 100644
--- a/webkit/dom_storage/dom_storage_cached_area.cc
+++ b/webkit/dom_storage/dom_storage_cached_area.cc
@@ -131,6 +131,10 @@ void DomStorageCachedArea::ApplyMutation(
map_->set_quota(dom_storage::kPerAreaQuota);
}
+size_t DomStorageCachedArea::MemoryBytesUsedByCache() const {
+ return map_ ? map_->bytes_used() : 0;
+}
+
void DomStorageCachedArea::Prime(int connection_id) {
DCHECK(!map_);
« no previous file with comments | « webkit/dom_storage/dom_storage_cached_area.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698