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

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: Rebase Created 4 years, 7 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 | « content/browser/dom_storage/dom_storage_namespace.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 72fae88fcedd3743a0f2d1707a6aa4a3f087975f..6f976f0d50158c387456251c8094c0ae19f9cb81 100644
--- a/content/browser/dom_storage/dom_storage_namespace.cc
+++ b/content/browser/dom_storage/dom_storage_namespace.cc
@@ -183,6 +183,13 @@ void DOMStorageNamespace::OnMemoryDump(
it.second.area_->OnMemoryDump(pmd);
}
+void DOMStorageNamespace::GetOriginsWithAreas(
+ std::vector<GURL>* origins) const {
+ origins->clear();
+ for (const auto& entry : areas_)
+ origins->push_back(entry.first);
+}
+
DOMStorageNamespace::AreaHolder*
DOMStorageNamespace::GetAreaHolder(const GURL& origin) {
AreaMap::iterator found = areas_.find(origin);
« no previous file with comments | « content/browser/dom_storage/dom_storage_namespace.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698