OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_DELEGATE_H_ | 5 #ifndef COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_DELEGATE_H_ |
6 #define COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_DELEGATE_H_ | 6 #define COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_DELEGATE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 | 8 |
10 namespace metrics { | 9 namespace metrics { |
11 | 10 |
12 class TrackingSynchronizer; | 11 class TrackingSynchronizer; |
13 | 12 |
14 // An abstraction of TrackingSynchronizer-related operations that depend on the | 13 // An abstraction of TrackingSynchronizer-related operations that depend on the |
15 // platform. | 14 // platform. |
16 class TrackingSynchronizerDelegate { | 15 class TrackingSynchronizerDelegate { |
17 public: | 16 public: |
18 virtual ~TrackingSynchronizerDelegate() {} | 17 virtual ~TrackingSynchronizerDelegate() {} |
19 | 18 |
20 // Should perform the platform-specific action that is needed to start | 19 // Should perform the platform-specific action that is needed to start |
21 // gathering profiler data for all relevant child processes. | 20 // gathering profiler data for all relevant child processes. |
22 virtual void GetProfilerDataForChildProcesses( | 21 virtual void GetProfilerDataForChildProcesses( |
23 int sequence_number, | 22 int sequence_number, |
24 int current_profiling_phase) = 0; | 23 int current_profiling_phase) = 0; |
25 | 24 |
26 // Called when |profiling_phase| has completed. | 25 // Called when |profiling_phase| has completed. |
27 virtual void OnProfilingPhaseCompleted(int profiling_phase) = 0; | 26 virtual void OnProfilingPhaseCompleted(int profiling_phase) = 0; |
28 }; | 27 }; |
29 | 28 |
30 } // namespace metrics | 29 } // namespace metrics |
31 | 30 |
32 #endif // COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_DELEGATE_H_ | 31 #endif // COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_DELEGATE_H_ |
OLD | NEW |