diff options
author | danakj <danakj@chromium.org> | 2015-09-24 00:53:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-24 07:53:38 +0000 |
commit | 8c3eb804c56b7173f00e58e040f47fe867dabda7 (patch) | |
tree | 3dee4211092c1942e4eaf24684f3255cfddd9e34 /content/browser/service_worker/service_worker_version.h | |
parent | f7033f79311149ae641bcaa3986c753f60f1db7e (diff) | |
download | chromium_src-8c3eb804c56b7173f00e58e040f47fe867dabda7.zip chromium_src-8c3eb804c56b7173f00e58e040f47fe867dabda7.tar.gz chromium_src-8c3eb804c56b7173f00e58e040f47fe867dabda7.tar.bz2 |
base: Template methods on Timer classes instead of the classes themselves.
The base class for OneShotTimer and DelayedTimer is templated but
only the Start method needs to be (which has a TODO to make it go away
entirely too).
The DelayedTimer class is also templated but only its constructor
needs to be, and the type can be inferred at the callsite, so less
typing all around.
R=thakis@chromium.org
TBR=sky,brettw
BUG=148832
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1355063004
Cr-Commit-Position: refs/heads/master@{#350496}
Diffstat (limited to 'content/browser/service_worker/service_worker_version.h')
-rw-r--r-- | content/browser/service_worker/service_worker_version.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h index 0c20444..4f83cbf 100644 --- a/content/browser/service_worker/service_worker_version.h +++ b/content/browser/service_worker/service_worker_version.h @@ -593,10 +593,10 @@ class CONTENT_EXPORT ServiceWorkerVersion base::WeakPtr<ServiceWorkerContextCore> context_; base::ObserverList<Listener> listeners_; ServiceWorkerScriptCacheMap script_cache_map_; - base::OneShotTimer<ServiceWorkerVersion> update_timer_; + base::OneShotTimer update_timer_; // Starts running in StartWorker and continues until the worker is stopped. - base::RepeatingTimer<ServiceWorkerVersion> timeout_timer_; + base::RepeatingTimer timeout_timer_; // Holds the time the worker last started being considered idle. base::TimeTicks idle_time_; // Holds the time that the outstanding StartWorker() request started. |