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

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

Issue 2123783002: Expose RunsTasksOnCurrentThread through WebTaskRunner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@00_fix_thread_affinity
Patch Set: 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..dd5f30c14205db3ec77ee1519705359c7b8c5a5c 100644
--- a/third_party/WebKit/public/platform/WebTaskRunner.h
+++ b/third_party/WebKit/public/platform/WebTaskRunner.h
@@ -39,6 +39,10 @@ public:
// Returns a clone of the WebTaskRunner.
virtual WebTaskRunner* clone() = 0;
+ // Returns true if a posted task runs on the current thread.
+ // Can be called from any thread.
kinuko 2016/07/05 14:09:19 This description sounds like a runner is always ti
tzik 2016/07/05 15:22:40 Borrowed it from base...
+ virtual bool runsTasksOnCurrentThread() = 0;
+
// ---
// Headless Chrome virtualises time for determinism and performance (fast forwarding

Powered by Google App Engine
This is Rietveld 408576698