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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/base/test_task_time_observer.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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TEST_TASK_TIME_OBSERVE R_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TEST_TASK_TIME_OBSERVE R_H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TEST_TASK_TIME_OBSERVE R_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TEST_TASK_TIME_OBSERVE R_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "platform/scheduler/base/task_time_observer.h" 9 #include "platform/scheduler/base/task_time_observer.h"
10 10
11 namespace blink { 11 namespace blink {
12 namespace scheduler { 12 namespace scheduler {
13 13
14 class TestTaskTimeObserver : public TaskTimeObserver { 14 class TestTaskTimeObserver : public TaskTimeObserver {
15 public: 15 public:
16 void WillProcessTask(TaskQueue* task_queue, double start_time) override {} 16 void WillProcessTask(TaskQueue* task_queue, double start_time) override {}
17 void DidProcessTask(TaskQueue* task_queue, 17 void DidProcessTask(TaskQueue* task_queue,
18 double start_time, 18 double start_time,
19 double end_time) override {} 19 double end_time) override {}
20 void OnBeginNestedMessageLoop() override {} 20 void OnBeginNestedRunLoop() override {}
21 }; 21 };
22 22
23 } // namespace scheduler 23 } // namespace scheduler
24 } // namespace blink 24 } // namespace blink
25 25
26 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TEST_TASK_TIME_OBSE RVER_H_ 26 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TEST_TASK_TIME_OBSE RVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698