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

Unified Diff: content/browser/dom_storage/dom_storage_namespace.cc

Issue 1900793003: Allow to clear session and local storage when not backed on disk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: content/browser/dom_storage/dom_storage_namespace.cc
diff --git a/content/browser/dom_storage/dom_storage_namespace.cc b/content/browser/dom_storage/dom_storage_namespace.cc
index a8681b6e6c2b148491689f6c47b543172dbab08d..479cf2534926d4bb1e7ecda74188f06badb3de4f 100644
--- a/content/browser/dom_storage/dom_storage_namespace.cc
+++ b/content/browser/dom_storage/dom_storage_namespace.cc
@@ -37,6 +37,12 @@ DOMStorageNamespace::DOMStorageNamespace(
DOMStorageNamespace::~DOMStorageNamespace() {
}
+void DOMStorageNamespace::ReadOrigins(std::vector<GURL>* origins) const {
+ origins->clear();
+ for (AreaMap::const_iterator it = areas_.begin(); it != areas_.end(); ++it)
michaeln 2016/05/05 00:38:23 range based for loop please for (const auto& entr
Julien Isorce Samsung 2016/05/05 11:05:04 Done.
+ origins->push_back(it->first);
+}
+
DOMStorageArea* DOMStorageNamespace::OpenStorageArea(const GURL& origin) {
if (AreaHolder* holder = GetAreaHolder(origin)) {
++(holder->open_count_);

Powered by Google App Engine
This is Rietveld 408576698