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

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: Another GYP fix Created 4 years, 5 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 24e07e04f6d97d1974d7941775aea29b70bd24fe..1bd4bd8e6fdc28e9547beee6911b158b7c56a044 100644
--- a/third_party/WebKit/public/platform/WebTaskRunner.h
+++ b/third_party/WebKit/public/platform/WebTaskRunner.h
@@ -13,6 +13,10 @@
#include <memory>
#endif
+namespace base {
+class SingleThreadTaskRunner;
+}
+
namespace blink {
class WebTraceLocation;
@@ -57,6 +61,9 @@ public:
// real time domain.
virtual double monotonicallyIncreasingVirtualTimeSeconds() const = 0;
+ // Returns the underlying task runner object.
+ virtual scoped_refptr<base::SingleThreadTaskRunner> taskRunner() = 0;
+
#ifdef INSIDE_BLINK
// Helpers for posting bound functions as tasks.

Powered by Google App Engine
This is Rietveld 408576698