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

Unified Diff: content/browser/indexed_db/indexed_db_backing_store.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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/download/download_file_impl.cc ('k') | content/browser/indexed_db/indexed_db_transaction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_backing_store.h
diff --git a/content/browser/indexed_db/indexed_db_backing_store.h b/content/browser/indexed_db/indexed_db_backing_store.h
index c1f1b2a9a1d050547bd1067cf35d1e5f009e930d..52344e1e970712e585dc4f5cad5175f8f035990e 100644
--- a/content/browser/indexed_db/indexed_db_backing_store.h
+++ b/content/browser/indexed_db/indexed_db_backing_store.h
@@ -358,9 +358,7 @@ class CONTENT_EXPORT IndexedDBBackingStore
const GURL& origin_url() const { return origin_url_; }
IndexedDBFactory* factory() const { return indexed_db_factory_; }
base::SequencedTaskRunner* task_runner() const { return task_runner_.get(); }
- base::OneShotTimer<IndexedDBBackingStore>* close_timer() {
- return &close_timer_;
- }
+ base::OneShotTimer* close_timer() { return &close_timer_; }
IndexedDBActiveBlobRegistry* active_blob_registry() {
return &active_blob_registry_;
}
@@ -653,14 +651,14 @@ class CONTENT_EXPORT IndexedDBBackingStore
scoped_refptr<base::SequencedTaskRunner> task_runner_;
std::set<int> child_process_ids_granted_;
BlobChangeMap incognito_blob_map_;
- base::OneShotTimer<IndexedDBBackingStore> journal_cleaning_timer_;
+ base::OneShotTimer journal_cleaning_timer_;
scoped_ptr<LevelDBDatabase> db_;
scoped_ptr<LevelDBComparator> comparator_;
// Whenever blobs are registered in active_blob_registry_, indexed_db_factory_
// will hold a reference to this backing store.
IndexedDBActiveBlobRegistry active_blob_registry_;
- base::OneShotTimer<IndexedDBBackingStore> close_timer_;
+ base::OneShotTimer close_timer_;
// Incremented whenever a transaction starts committing, decremented when
// complete. While > 0, temporary journal entries may exist so out-of-band
« no previous file with comments | « content/browser/download/download_file_impl.cc ('k') | content/browser/indexed_db/indexed_db_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698