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

Unified Diff: chrome/browser/in_process_webkit/indexed_db_context.h

Issue 5359005: Moved deleting the indexed db context to the WebKitContext destructor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved the clearing logic to the IndexedDBContext::Destructor. Created 10 years, 1 month 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 | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/in_process_webkit/indexed_db_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/in_process_webkit/indexed_db_context.h
diff --git a/chrome/browser/in_process_webkit/indexed_db_context.h b/chrome/browser/in_process_webkit/indexed_db_context.h
index 95f6536e9c15feddadefbb48a6f6550d21cd9e00..b81f1449b92d866f47fb8ec21451f1f6ac52ff31 100644
--- a/chrome/browser/in_process_webkit/indexed_db_context.h
+++ b/chrome/browser/in_process_webkit/indexed_db_context.h
@@ -35,9 +35,13 @@ class IndexedDBContext {
// Deletes all idb files except for those on the url scheme
// |url_scheme_to_be_skipped|.
- static void ClearLocalState(const FilePath& profile_path,
+ static void ClearLocalState(const FilePath& indexeddb_path,
pastarmovj 2010/11/27 20:45:15 I hope you will agree with this change. It allows
const char* url_scheme_to_be_skipped);
+ void SetClearLocalStateOnExit(bool clear_local_state) {
+ clear_local_state_on_exit_ = clear_local_state;
+ }
pastarmovj 2010/11/27 20:45:15 Do I got that correctly that really simple setters
+
// Deletes a single indexed db file.
void DeleteIndexedDBFile(const FilePath& file_path);
@@ -47,8 +51,11 @@ class IndexedDBContext {
private:
scoped_ptr<WebKit::WebIDBFactory> idb_factory_;
- // We're owned by this WebKit context.
- WebKitContext* webkit_context_;
+ // Path where the indexed db data is stored
+ FilePath data_path_;
pastarmovj 2010/11/27 20:45:15 I replaced the webkit context pointer with the pie
+
+ // True if the destructor should delete its files.
+ bool clear_local_state_on_exit_;
DISALLOW_COPY_AND_ASSIGN(IndexedDBContext);
};
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/in_process_webkit/indexed_db_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698