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_); |