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

Unified Diff: public/platform/WebThread.h

Issue 1087203002: Patch 2/3 to get WebScheduler via WebThread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.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
« public/platform/WebScheduler.h ('K') | « public/platform/WebScheduler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebThread.h
diff --git a/public/platform/WebThread.h b/public/platform/WebThread.h
index ff37d9f3378071880898df206fe7dbd1a420b653..df5476a228f199bc63243b8125b8bc4ff881fe22 100644
--- a/public/platform/WebThread.h
+++ b/public/platform/WebThread.h
@@ -33,6 +33,7 @@
#endif
namespace blink {
+class WebScheduler;
class WebTraceLocation;
// Always an integer value.
@@ -77,6 +78,9 @@ public:
virtual void addTaskObserver(TaskObserver*) { }
virtual void removeTaskObserver(TaskObserver*) { }
+ // Returns the scheduler associated with the thread.
+ virtual WebScheduler* scheduler() const = 0;
+
// enterRunLoop() processes tasks posted to this WebThread. This call does not return until some task calls exitRunLoop().
// WebThread does not support nesting, meaning that once the run loop is entered for a given WebThread it is not valid to
// call enterRunLoop() again.
« public/platform/WebScheduler.h ('K') | « public/platform/WebScheduler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698