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

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

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: fixed build error and commments Created 3 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: third_party/WebKit/Source/platform/WebTaskRunner.h
diff --git a/third_party/WebKit/Source/platform/WebTaskRunner.h b/third_party/WebKit/Source/platform/WebTaskRunner.h
index 0379899b186e192c5be66de3c3d9a5a623eeb37e..2e87fd3196a744a9f492abf6a3a015891d473a0a 100644
--- a/third_party/WebKit/Source/platform/WebTaskRunner.h
+++ b/third_party/WebKit/Source/platform/WebTaskRunner.h
@@ -65,9 +65,13 @@ class BLINK_PLATFORM_EXPORT WebTaskRunner
base::OnceClosure,
double delay_ms) = 0;
- // Returns true if the current thread is a thread on which a task may be run.
- // Can be called from any thread.
- virtual bool RunsTasksOnCurrentThread() = 0;
+ // Drepecated: favor RunsTasksInCurrentSequence().
+ // TODO(http://crbug.com/665062): mass redirect callers and remove this.
+ bool RunsTasksOnCurrentThread();
+
+ // Returns true if tasks posted to this TaskRunner are sequenced
+ // with this call.
+ virtual bool RunsTasksInCurrentSequence() = 0;
// ---

Powered by Google App Engine
This is Rietveld 408576698