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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/base/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_TASK_TIME_OBSERVER_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_TIME_OBSERVER_H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_TIME_OBSERVER_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_TIME_OBSERVER_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "platform/PlatformExport.h" 9 #include "platform/PlatformExport.h"
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 // Callback to be called when task is completed. 27 // Callback to be called when task is completed.
28 // |task_queue| - TaskQueue on which this task was run, 28 // |task_queue| - TaskQueue on which this task was run,
29 // |start_time| - time in seconds when task started to run, 29 // |start_time| - time in seconds when task started to run,
30 // |end_time| - time in seconds when task was completed. 30 // |end_time| - time in seconds when task was completed.
31 virtual void DidProcessTask(TaskQueue* task_queue, 31 virtual void DidProcessTask(TaskQueue* task_queue,
32 double start_time, 32 double start_time,
33 double end_time) = 0; 33 double end_time) = 0;
34 34
35 // Callback to be called when we enter a nested message loop. 35 // Callback to be called when we enter a nested message loop.
36 virtual void OnBeginNestedMessageLoop() = 0; 36 virtual void OnBeginNestedRunLoop() = 0;
37 37
38 private: 38 private:
39 DISALLOW_COPY_AND_ASSIGN(TaskTimeObserver); 39 DISALLOW_COPY_AND_ASSIGN(TaskTimeObserver);
40 }; 40 };
41 41
42 } // namespace scheduler 42 } // namespace scheduler
43 } // namespace blink 43 } // namespace blink
44 44
45 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_TIME_OBSERVER_ H_ 45 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TASK_TIME_OBSERVER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698