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

Unified Diff: third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.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/test/lazy_scheduler_message_loop_delegate_for_tests.h
diff --git a/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.h b/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.h
index bdbd7464f07c16e383c20d8630070bff544bcd0f..18ab82c261cf9094dc8f702b235793b5381ae7c6 100644
--- a/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.h
+++ b/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.h
@@ -9,10 +9,14 @@
#include "base/callback.h"
#include "base/macros.h"
-#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "base/time/tick_clock.h"
#include "platform/scheduler/child/scheduler_tqm_delegate.h"
+namespace base {
+class MessageLoop;
+}
+
namespace blink {
namespace scheduler {
@@ -39,10 +43,8 @@ class LazySchedulerMessageLoopDelegateForTests : public SchedulerTqmDelegate {
base::TimeDelta delay) override;
bool RunsTasksOnCurrentThread() const override;
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;
base::TimeTicks NowTicks() override;
private:
@@ -60,7 +62,7 @@ class LazySchedulerMessageLoopDelegateForTests : public SchedulerTqmDelegate {
mutable scoped_refptr<base::SingleThreadTaskRunner> original_task_runner_;
std::unique_ptr<base::TickClock> time_source_;
- base::MessageLoop::NestingObserver* pending_observer_;
+ base::RunLoop::NestingObserver* pending_observer_;
DISALLOW_COPY_AND_ASSIGN(LazySchedulerMessageLoopDelegateForTests);
};

Powered by Google App Engine
This is Rietveld 408576698