| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_OBSERVER_H_ | 5 #ifndef COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_OBSERVER_H_ |
| 6 #define COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_OBSERVER_H_ | 6 #define COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/process/process_handle.h" | 11 #include "base/process/process_handle.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h" | 13 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h" |
| 14 | 14 |
| 15 namespace base { | |
| 16 class TimeDelta; | |
| 17 } | |
| 18 | |
| 19 namespace tracked_objects { | 15 namespace tracked_objects { |
| 20 struct ProcessDataPhaseSnapshot; | 16 struct ProcessDataPhaseSnapshot; |
| 21 } | 17 } |
| 22 | 18 |
| 23 namespace metrics { | 19 namespace metrics { |
| 24 | 20 |
| 25 // Set of profiling events, in no guaranteed order. Implemented as a vector | 21 // Set of profiling events, in no guaranteed order. Implemented as a vector |
| 26 // because we don't need to have an efficient .find() on it, so vector<> is more | 22 // because we don't need to have an efficient .find() on it, so vector<> is more |
| 27 // efficient. | 23 // efficient. |
| 28 typedef std::vector<ProfilerEventProto::ProfilerEvent> ProfilerEvents; | 24 typedef std::vector<ProfilerEventProto::ProfilerEvent> ProfilerEvents; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 TrackingSynchronizerObserver() {} | 75 TrackingSynchronizerObserver() {} |
| 80 virtual ~TrackingSynchronizerObserver() {} | 76 virtual ~TrackingSynchronizerObserver() {} |
| 81 | 77 |
| 82 private: | 78 private: |
| 83 DISALLOW_COPY_AND_ASSIGN(TrackingSynchronizerObserver); | 79 DISALLOW_COPY_AND_ASSIGN(TrackingSynchronizerObserver); |
| 84 }; | 80 }; |
| 85 | 81 |
| 86 } // namespace metrics | 82 } // namespace metrics |
| 87 | 83 |
| 88 #endif // COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_OBSERVER_H_ | 84 #endif // COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_OBSERVER_H_ |
| OLD | NEW |