Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_PUBLIC_PLATFORM_SCHEDULER_BASE_TASK_TIME_OBSERVER_H_ | 5 #ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_BASE_TASK_TIME_OBSERVER_H_ |
| 6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_BASE_TASK_TIME_OBSERVER_H_ | 6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_BASE_TASK_TIME_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "public/platform/WebCommon.h" | 9 #include "public/platform/WebCommon.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 namespace scheduler { | 12 namespace scheduler { |
| 13 | 13 |
| 14 class TaskQueue; | |
| 15 | |
| 14 class BLINK_PLATFORM_EXPORT TaskTimeObserver { | 16 class BLINK_PLATFORM_EXPORT TaskTimeObserver { |
|
alex clarke (OOO till 29th)
2016/09/12 17:45:27
We're trying to add some top level comments to sch
altimin
2016/09/14 11:23:19
Done.
| |
| 15 public: | 17 public: |
| 16 TaskTimeObserver() {} | 18 TaskTimeObserver() {} |
| 17 virtual ~TaskTimeObserver() {} | 19 virtual ~TaskTimeObserver() {} |
| 18 | 20 |
| 19 virtual void ReportTaskTime(double startTime, double endTime) = 0; | 21 virtual void ReportTaskTime(TaskQueue* task_queue, |
|
alex clarke (OOO till 29th)
2016/09/12 17:45:27
Please add a comment explaining what the members a
altimin
2016/09/14 11:23:19
Done.
| |
| 22 double start_time, | |
| 23 double end_time) = 0; | |
| 20 | 24 |
| 21 private: | 25 private: |
| 22 DISALLOW_COPY_AND_ASSIGN(TaskTimeObserver); | 26 DISALLOW_COPY_AND_ASSIGN(TaskTimeObserver); |
| 23 }; | 27 }; |
| 24 | 28 |
| 25 } // namespace scheduler | 29 } // namespace scheduler |
| 26 } // namespace blink | 30 } // namespace blink |
| 27 | 31 |
| 28 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_BASE_TASK_TIME_OBSERVER_ H_ | 32 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_BASE_TASK_TIME_OBSERVER_ H_ |
| OLD | NEW |