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

Unified Diff: webkit/dom_storage/dom_storage_types.h

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: comment fix Created 7 years, 8 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_namespace.cc ('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_types.h
diff --git a/webkit/dom_storage/dom_storage_types.h b/webkit/dom_storage/dom_storage_types.h
index 1f663b44a36abb670172537e959af78abf50601e..e0a8509058437591511a794f75086cfeb9069e01 100644
--- a/webkit/dom_storage/dom_storage_types.h
+++ b/webkit/dom_storage/dom_storage_types.h
@@ -32,6 +32,9 @@ const int64 kLocalStorageNamespaceId = 0;
const int64 kInvalidSessionStorageNamespaceId = kLocalStorageNamespaceId;
+// Start purging memory if the number of in-memory areas exceeds this.
+const int64 kMaxInMemoryAreas = 100;
+
// Value to indicate an area that not be opened.
const int kInvalidAreaId = -1;
« no previous file with comments | « webkit/dom_storage/dom_storage_namespace.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698