Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_SCHEDULER_CHILD_WEB_TASK_RUNNER_H_ | 5 #ifndef COMPONENTS_SCHEDULER_CHILD_WEB_TASK_RUNNER_H_ |
| 6 #define COMPONENTS_SCHEDULER_CHILD_WEB_TASK_RUNNER_H_ | 6 #define COMPONENTS_SCHEDULER_CHILD_WEB_TASK_RUNNER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 31 // blink::WebTaskRunner implementation: | 31 // blink::WebTaskRunner implementation: |
| 32 void postTask(const blink::WebTraceLocation& web_location, | 32 void postTask(const blink::WebTraceLocation& web_location, |
| 33 blink::WebTaskRunner::Task* task) override; | 33 blink::WebTaskRunner::Task* task) override; |
| 34 // TODO(alexclarke): Remove this when possible. | 34 // TODO(alexclarke): Remove this when possible. |
| 35 void postDelayedTask(const blink::WebTraceLocation& web_location, | 35 void postDelayedTask(const blink::WebTraceLocation& web_location, |
| 36 blink::WebTaskRunner::Task* task, | 36 blink::WebTaskRunner::Task* task, |
| 37 long long delayMs) override; | 37 long long delayMs) override; |
| 38 void postDelayedTask(const blink::WebTraceLocation& web_location, | 38 void postDelayedTask(const blink::WebTraceLocation& web_location, |
| 39 blink::WebTaskRunner::Task* task, | 39 blink::WebTaskRunner::Task* task, |
| 40 double delayMs) override; | 40 double delayMs) override; |
| 41 blink::WebTaskRunner* clone() override; | |
| 41 | 42 |
| 42 private: | 43 private: |
| 43 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 44 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 44 | |
| 45 DISALLOW_COPY_AND_ASSIGN(WebTaskRunnerImpl); | |
|
Sami
2015/09/29 11:22:46
We can still keep this, right?
alex clarke (OOO till 29th)
2015/09/29 16:10:36
Done.
| |
| 46 }; | 45 }; |
| 47 | 46 |
| 48 } // namespace scheduler | 47 } // namespace scheduler |
| 49 | 48 |
| 50 #endif // COMPONENTS_SCHEDULER_CHILD_WEB_TASK_RUNNER_H_ | 49 #endif // COMPONENTS_SCHEDULER_CHILD_WEB_TASK_RUNNER_H_ |
| OLD | NEW |