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

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

Issue 9817011: DomStorage data deletion and memory purging. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | webkit/dom_storage/dom_storage_area.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/dom_storage/dom_storage_context_impl_new.cc
===================================================================
--- content/browser/dom_storage/dom_storage_context_impl_new.cc (revision 127981)
+++ content/browser/dom_storage/dom_storage_context_impl_new.cc (working copy)
@@ -45,8 +45,7 @@
GURL FilePathToOrigin(const FilePath& path) {
DCHECK(path.MatchesExtension(DomStorageArea::kDatabaseFileExtension));
- return OriginIdToGURL(
- webkit_glue::FilePathToWebString(path.BaseName().RemoveExtension()));
+ return DomStorageArea::OriginFromDatabaseFileName(path);
}
void InvokeAllStorageFilesCallbackHelper(
@@ -60,7 +59,10 @@
DomStorageContext* context,
const DOMStorageContext::GetAllStorageFilesCallback& callback) {
std::vector<DomStorageContext::UsageInfo> infos;
- context->GetUsageInfo(&infos);
+ // TODO(michaeln): Actually include the file info too when the
+ // content layer api is fixed.
+ const bool kDontIncludeFileInfo = false;
+ context->GetUsageInfo(&infos, kDontIncludeFileInfo);
std::vector<FilePath> paths;
for (size_t i = 0; i < infos.size(); ++i) {
@@ -74,7 +76,7 @@
callback, paths));
}
-}
+} // namespace
DOMStorageContextImpl::DOMStorageContextImpl(
const FilePath& data_path,
« no previous file with comments | « no previous file | webkit/dom_storage/dom_storage_area.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698