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

Unified Diff: net/disk_cache/blockfile/backend_impl.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: . 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
Index: net/disk_cache/blockfile/backend_impl.h
diff --git a/net/disk_cache/blockfile/backend_impl.h b/net/disk_cache/blockfile/backend_impl.h
index d3a81ac2d1ba6767685d9832187df6218eb76e3e..3feafc1998906c6d32c6dd512d92025f6f1944fc 100644
--- a/net/disk_cache/blockfile/backend_impl.h
+++ b/net/disk_cache/blockfile/backend_impl.h
@@ -249,7 +249,7 @@ class NET_EXPORT_PRIVATE BackendImpl : public Backend {
void TrimDeletedListForTest(bool empty);
// Only intended for testing
- base::RepeatingTimer<BackendImpl>* GetTimerForTest();
+ base::RepeatingTimer* GetTimerForTest();
// Performs a simple self-check, and returns the number of dirty items
// or an error code (negative value).
@@ -395,7 +395,7 @@ class NET_EXPORT_PRIVATE BackendImpl : public Backend {
net::NetLog* net_log_;
Stats stats_; // Usage statistics.
- scoped_ptr<base::RepeatingTimer<BackendImpl> > timer_; // Usage timer.
+ scoped_ptr<base::RepeatingTimer> timer_; // Usage timer.
base::WaitableEvent done_; // Signals the end of background work.
scoped_refptr<TraceObject> trace_object_; // Initializes internal tracing.
base::WeakPtrFactory<BackendImpl> ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698