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

Unified Diff: webkit/dom_storage/dom_storage_namespace.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: Created 7 years, 9 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_namespace.h
diff --git a/webkit/dom_storage/dom_storage_namespace.h b/webkit/dom_storage/dom_storage_namespace.h
index 78ef4d77ff10b690dd39f97b569f17e4686a4632..d9521a771f0a2de18207691c24ec0c2f6c9f9d6b 100644
--- a/webkit/dom_storage/dom_storage_namespace.h
+++ b/webkit/dom_storage/dom_storage_namespace.h
@@ -59,9 +59,12 @@ class WEBKIT_STORAGE_EXPORT DomStorageNamespace
void DeleteLocalStorageOrigin(const GURL& origin);
void DeleteSessionStorageOrigin(const GURL& origin);
+ void PurgeUnopenedAreas();
void PurgeMemory();
void Shutdown();
+ unsigned int CountInMemoryAreas() const { return areas_.size(); }
michaeln 2013/04/05 23:39:23 Unfortunately, I don't think this is an accurate c
kinuko 2013/04/10 07:04:14 Good point, I changed the code to iterate over are
+
private:
friend class base::RefCountedThreadSafe<DomStorageNamespace>;

Powered by Google App Engine
This is Rietveld 408576698