| Index: base/timer/timer.h
|
| diff --git a/base/timer/timer.h b/base/timer/timer.h
|
| index 71a7ae8888a3afd82be5419b24e4d0df22da2955..1e662a3dea71b599b2e3719746003d28ebd60fbf 100644
|
| --- a/base/timer/timer.h
|
| +++ b/base/timer/timer.h
|
| @@ -82,7 +82,7 @@ class BASE_EXPORT Timer {
|
| virtual ~Timer();
|
|
|
| // Returns true if the timer is running (i.e., not stopped).
|
| - bool IsRunning() const {
|
| + virtual bool IsRunning() const {
|
| return is_running_;
|
| }
|
|
|
| @@ -93,17 +93,17 @@ class BASE_EXPORT Timer {
|
|
|
| // Start the timer to run at the given |delay| from now. If the timer is
|
| // already running, it will be replaced to call the given |user_task|.
|
| - void Start(const tracked_objects::Location& posted_from,
|
| + virtual void Start(const tracked_objects::Location& posted_from,
|
| TimeDelta delay,
|
| const base::Closure& user_task);
|
|
|
| // Call this method to stop and cancel the timer. It is a no-op if the timer
|
| // is not running.
|
| - void Stop();
|
| + virtual void Stop();
|
|
|
| // Call this method to reset the timer delay. The user_task_ must be set. If
|
| // the timer is not running, this will start it by posting a task.
|
| - void Reset();
|
| + virtual void Reset();
|
|
|
| const base::Closure& user_task() const { return user_task_; }
|
| const TimeTicks& desired_run_time() const { return desired_run_time_; }
|
|
|