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

Unified Diff: content/renderer/dom_storage/webstoragearea_impl.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 | « content/renderer/dom_storage/webstoragearea_impl.h ('k') | webkit/dom_storage/dom_storage_cached_area.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/dom_storage/webstoragearea_impl.cc
diff --git a/content/renderer/dom_storage/webstoragearea_impl.cc b/content/renderer/dom_storage/webstoragearea_impl.cc
index 633f7a37d55ec9ca0d2108c1e2964e1ce7486969..1b16cfc896de00c82d5b8e66dbf73031cfe4dff9 100644
--- a/content/renderer/dom_storage/webstoragearea_impl.cc
+++ b/content/renderer/dom_storage/webstoragearea_impl.cc
@@ -76,3 +76,7 @@ void WebStorageAreaImpl::removeItem(
void WebStorageAreaImpl::clear(const WebURL& page_url) {
cached_area_->Clear(connection_id_, page_url);
}
+
+size_t WebStorageAreaImpl::memoryBytesUsedByCache() const {
+ return cached_area_->MemoryBytesUsedByCache();
+}
« no previous file with comments | « content/renderer/dom_storage/webstoragearea_impl.h ('k') | webkit/dom_storage/dom_storage_cached_area.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698