Chromium Code Reviews| 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..8950aa2f0309fbc30a31d0c6ecd44b4769f53340 100644 |
| --- a/chrome/browser/in_process_webkit/indexed_db_context.h |
| +++ b/chrome/browser/in_process_webkit/indexed_db_context.h |
| @@ -35,8 +35,12 @@ 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, |
| - const char* url_scheme_to_be_skipped); |
| + void ClearLocalState(const FilePath& indexeddb_path, |
| + const char* url_scheme_to_be_skipped); |
| + |
| + void SetClearLocalStateOnExit(bool clear_local_state) { |
|
jochen (gone - plz use gerrit)
2010/11/29 10:45:24
should be set_clear_local_state_on_exit
pastarmovj
2010/11/29 12:50:37
Done.
|
| + clear_local_state_on_exit_ = clear_local_state; |
| + } |
| // 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_; |
| + |
| + // True if the destructor should delete its files. |
| + bool clear_local_state_on_exit_; |
| DISALLOW_COPY_AND_ASSIGN(IndexedDBContext); |
| }; |