Index: components/scheduler/child/web_task_runner_impl.h |
diff --git a/components/scheduler/child/web_task_runner_impl.h b/components/scheduler/child/web_task_runner_impl.h |
index ed4a3f886a72d7f93eb52d995f048ed93fc14019..a0dc11832bb097072d02908a61168f38027a6320 100644 |
--- a/components/scheduler/child/web_task_runner_impl.h |
+++ b/components/scheduler/child/web_task_runner_impl.h |
@@ -8,6 +8,7 @@ |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
+#include "base/time/time.h" |
#include "components/scheduler/scheduler_export.h" |
#include "third_party/WebKit/public/platform/WebTaskRunner.h" |
@@ -26,6 +27,8 @@ class SCHEDULER_EXPORT WebTaskRunnerImpl : public blink::WebTaskRunner { |
void postDelayedTask(const blink::WebTraceLocation& web_location, |
blink::WebTaskRunner::Task* task, |
double delayMs) override; |
+ double virtualTimeSeconds() const override; |
+ double monotonicallyIncreasingVirtualTimeSeconds() const override; |
blink::WebTaskRunner* clone() override; |
// blink::WebTaskRunner::Task should be wrapped by base::Passed() when |
@@ -36,6 +39,8 @@ class SCHEDULER_EXPORT WebTaskRunnerImpl : public blink::WebTaskRunner { |
static void runTask(scoped_ptr<blink::WebTaskRunner::Task>); |
private: |
+ base::TimeTicks Now() const; |
+ |
scoped_refptr<TaskQueue> task_queue_; |
DISALLOW_COPY_AND_ASSIGN(WebTaskRunnerImpl); |