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

Unified Diff: content/child/scheduler/webthread_impl_for_worker_scheduler.h

Issue 1088053003: Patch 1/3 to get WebScheduler via WebThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 5 years, 8 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
Index: content/child/scheduler/webthread_impl_for_worker_scheduler.h
diff --git a/content/child/scheduler/webthread_impl_for_worker_scheduler.h b/content/child/scheduler/webthread_impl_for_worker_scheduler.h
index 25362d78ce87ba527b25d552242b374d33b3601e..da570001b7c29519d3e32f2f40ef353b51df7043 100644
--- a/content/child/scheduler/webthread_impl_for_worker_scheduler.h
+++ b/content/child/scheduler/webthread_impl_for_worker_scheduler.h
@@ -12,10 +12,15 @@ namespace base {
class WaitableEvent;
};
+namespace blink {
+class WebScheduler;
+};
+
namespace content {
class SingleThreadIdleTaskRunner;
class WorkerScheduler;
+class WorkerWebSchedulerImpl;
class CONTENT_EXPORT WebThreadImplForWorkerScheduler : public WebThreadBase {
public:
@@ -23,6 +28,8 @@ class CONTENT_EXPORT WebThreadImplForWorkerScheduler : public WebThreadBase {
virtual ~WebThreadImplForWorkerScheduler();
// blink::WebThread implementation.
+ // TODO(alexclarke): mark this as override when blink patch lands
Sami 2015/04/15 12:37:13 We should still keep this as non-override even aft
alex clarke (OOO till 29th) 2015/04/15 14:25:46 Done.
+ virtual blink::WebScheduler* scheduler() const;
blink::PlatformThreadId threadId() const override;
// WebThreadBase implementation.
@@ -41,6 +48,7 @@ class CONTENT_EXPORT WebThreadImplForWorkerScheduler : public WebThreadBase {
scoped_ptr<base::Thread> thread_;
scoped_ptr<WorkerScheduler> worker_scheduler_;
+ scoped_ptr<WorkerWebSchedulerImpl> web_scheduler_;
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_;
};

Powered by Google App Engine
This is Rietveld 408576698