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

Unified Diff: components/scheduler/child/web_scheduler_impl.h

Issue 1308183005: Introduce WebTaskRunner Patch 2/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final tweaks 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
« no previous file with comments | « no previous file | components/scheduler/child/web_scheduler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/child/web_scheduler_impl.h
diff --git a/components/scheduler/child/web_scheduler_impl.h b/components/scheduler/child/web_scheduler_impl.h
index c05ce90aa2103850639d5f6bcf9e84692963b8e7..923432d1a087a676a1dfcf434f1653143cd0991b 100644
--- a/components/scheduler/child/web_scheduler_impl.h
+++ b/components/scheduler/child/web_scheduler_impl.h
@@ -21,6 +21,7 @@ namespace scheduler {
class ChildScheduler;
class SingleThreadIdleTaskRunner;
class TaskQueue;
+class WebTaskRunnerImpl;
class SCHEDULER_EXPORT WebSchedulerImpl : public blink::WebScheduler {
public:
@@ -41,16 +42,25 @@ class SCHEDULER_EXPORT WebSchedulerImpl : public blink::WebScheduler {
blink::WebThread::IdleTask* task);
virtual void postIdleTaskAfterWakeup(const blink::WebTraceLocation& location,
blink::WebThread::IdleTask* task);
+ // TODO(alexclarke): Remove this.
virtual void postLoadingTask(const blink::WebTraceLocation& location,
blink::WebThread::Task* task);
+ virtual blink::WebTaskRunner* loadingTaskRunner();
+ virtual blink::WebTaskRunner* timerTaskRunner();
+
// TODO(alexclarke): Remove when possible.
virtual void postTimerTaskAt(const blink::WebTraceLocation& location,
blink::WebThread::Task* task,
double monotonicTime);
+ // TODO(alexclarke): Remove when possible.
+ virtual void postTimerTaskAt(const blink::WebTraceLocation& location,
+ blink::WebTaskRunner::Task* task,
+ double monotonicTime);
+ // TODO(alexclarke): Remove this.
virtual void postTimerTask(const blink::WebTraceLocation& location,
blink::WebThread::Task* task,
double delaySecs);
- // TODO(alexclarke): Remove once the Blink side patch lands.
+ // TODO(alexclarke): Remove this.
virtual void postTimerTask(const blink::WebTraceLocation& location,
blink::WebThread::Task* task,
long long delayMs);
@@ -64,6 +74,8 @@ class SCHEDULER_EXPORT WebSchedulerImpl : public blink::WebScheduler {
scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_;
scoped_refptr<base::SingleThreadTaskRunner> loading_task_runner_;
scoped_refptr<TaskQueue> timer_task_runner_;
+ scoped_ptr<WebTaskRunnerImpl> loading_web_task_runner_;
+ scoped_ptr<WebTaskRunnerImpl> timer_web_task_runner_;
};
} // namespace scheduler
« no previous file with comments | « no previous file | components/scheduler/child/web_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698