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

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

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: rebase & remove inline keyword Created 3 years, 7 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 0a79fecd3bd257cd6d1a46b07c4038b566ebb598..c5c19f8c9943bf1be027f7182d6a2c8b2cbe0373 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;
// ---
« no previous file with comments | « remoting/client/plugin/pepper_main_thread_task_runner.cc ('k') | third_party/WebKit/Source/platform/WebTaskRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698