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

Unified Diff: webkit/dom_storage/dom_storage_context.h

Issue 9999021: Don't hardcode the "Local Storage" directory name in DomStorageContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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: webkit/dom_storage/dom_storage_context.h
diff --git a/webkit/dom_storage/dom_storage_context.h b/webkit/dom_storage/dom_storage_context.h
index 1370913d748fdc1d5f281d6c1051cfb4134c3f91..628d8fbe89b8a600b1678a091b4b85f784603e0f 100644
--- a/webkit/dom_storage/dom_storage_context.h
+++ b/webkit/dom_storage/dom_storage_context.h
@@ -95,6 +95,10 @@ class DomStorageContext
DomStorageTaskRunner* task_runner() const { return task_runner_; }
DomStorageNamespace* GetStorageNamespace(int64 namespace_id);
+ // Returns the directory path for localStorage, or an empty directory, if
+ // there is no backing on disk.
+ FilePath GetLocalStorageDirectory();
+
void GetUsageInfo(std::vector<UsageInfo>* infos, bool include_file_info);
void DeleteOrigin(const GURL& origin);
void DeleteDataModifiedSince(const base::Time& cutoff);
@@ -160,7 +164,7 @@ class DomStorageContext
// Collection of namespaces keyed by id.
StorageNamespaceMap namespaces_;
- // Where localstorage data is stored, maybe empty for the incognito use case.
+ // Where data is stored, maybe empty for the incognito use case.
FilePath directory_;
// Used to schedule sequenced background tasks.

Powered by Google App Engine
This is Rietveld 408576698