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

Unified Diff: webkit/dom_storage/dom_storage_area.cc

Issue 12398008: Purge in-memory localStorage areas if the # of areas exceeds the limit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: webkit/dom_storage/dom_storage_area.cc
diff --git a/webkit/dom_storage/dom_storage_area.cc b/webkit/dom_storage/dom_storage_area.cc
index 3700238d06c64e1e295655eedb19c78058ecfa8e..bf69186b0bc08ac9baf057ca21841f31c93bd754 100644
--- a/webkit/dom_storage/dom_storage_area.cc
+++ b/webkit/dom_storage/dom_storage_area.cc
@@ -392,4 +392,8 @@ void DomStorageArea::ShutdownInCommitSequence() {
session_storage_backing_ = NULL;
}
+size_t DomStorageArea::GetMapSize() const {
+ return map_->bytes_used();
+}
+
} // namespace dom_storage

Powered by Google App Engine
This is Rietveld 408576698