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

Unified Diff: third_party/WebKit/public/platform/WebTaskRunner.h

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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: third_party/WebKit/public/platform/WebTaskRunner.h
diff --git a/third_party/WebKit/public/platform/WebTaskRunner.h b/third_party/WebKit/public/platform/WebTaskRunner.h
index 3f4c35c6096e2752606157dda14b886425c30bed..6e2bbd8e1647d3efd65dbe8562dcb11905a83621 100644
--- a/third_party/WebKit/public/platform/WebTaskRunner.h
+++ b/third_party/WebKit/public/platform/WebTaskRunner.h
@@ -13,8 +13,14 @@
#include "wtf/Functional.h"
#endif
+namespace base {
+class SingleThreadTaskRunner;
+}
+
namespace blink {
+using SingleThreadTaskRunner = base::SingleThreadTaskRunner;
+
// The blink representation of a chromium SingleThreadTaskRunner.
class BLINK_PLATFORM_EXPORT WebTaskRunner {
public:
@@ -59,6 +65,9 @@ public:
// real time domain.
virtual double monotonicallyIncreasingVirtualTimeSeconds() const = 0;
+ // Returns the underlying task runner object.
+ virtual SingleThreadTaskRunner* taskRunner() = 0;
+
#ifdef INSIDE_BLINK
// Helpers for posting bound functions as tasks.
« no previous file with comments | « third_party/WebKit/public/platform/WebScheduler.h ('k') | third_party/WebKit/public/platform/scheduler/.clang-format » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698