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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_delegate_for_test.h

Issue 2818533003: Make nesting/running states a RunLoop rather than a MessageLoop concept. (Closed)
Patch Set: still need to check MessageLoop::current() in Mojo's RunLoopNestingObserver::GetForThread() 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/scheduler/base/task_queue_manager_delegate_for_test.h
diff --git a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_delegate_for_test.h b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_delegate_for_test.h
index 81495a487989b31432acd5c4a26d4f9a3927abcb..b666826511c9176071e9534480bb5ac2fb4515cc 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_delegate_for_test.h
+++ b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_delegate_for_test.h
@@ -21,7 +21,7 @@ class TaskQueueManagerDelegateForTest : public TaskQueueManagerDelegate {
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
std::unique_ptr<base::TickClock> time_source);
- // NestableSingleThreadTaskRunner implementation
+ // SingleThreadTaskRunner:
bool PostDelayedTask(const tracked_objects::Location& from_here,
base::OnceClosure task,
base::TimeDelta delay) override;
@@ -29,11 +29,13 @@ class TaskQueueManagerDelegateForTest : public TaskQueueManagerDelegate {
base::OnceClosure task,
base::TimeDelta delay) override;
bool RunsTasksOnCurrentThread() const override;
+
+ // TaskQueueManagerDelegate:
bool IsNested() const override;
- void AddNestingObserver(
- base::MessageLoop::NestingObserver* observer) override;
- void RemoveNestingObserver(
- base::MessageLoop::NestingObserver* observer) override;
+ void AddNestingObserver(base::RunLoop::NestingObserver* observer) override;
+ void RemoveNestingObserver(base::RunLoop::NestingObserver* observer) override;
+
+ // TickClock:
base::TimeTicks NowTicks() override;
protected:

Powered by Google App Engine
This is Rietveld 408576698