| 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_H_ | 5 #ifndef COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_H_ |
| 6 #define COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_H_ | 6 #define COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 17 #include "base/threading/thread_checker.h" | 18 #include "base/threading/thread_checker.h" |
| 18 #include "base/time/tick_clock.h" | 19 #include "base/time/tick_clock.h" |
| 19 #include "base/time/time.h" | 20 #include "base/time/time.h" |
| 20 #include "base/tracked_objects.h" | 21 #include "base/tracked_objects.h" |
| 21 #include "components/metrics/profiler/tracking_synchronizer_delegate.h" | 22 #include "components/metrics/profiler/tracking_synchronizer_delegate.h" |
| 22 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h" | 23 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h" |
| 23 | 24 |
| 24 // This class maintains state that is used to upload profiler data from the | 25 // This class maintains state that is used to upload profiler data from the |
| 25 // various processes, into the browser process. Such transactions are usually | 26 // various processes, into the browser process. Such transactions are usually |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // NOTE: Leave this ivar last so that the delegate is torn down first at | 158 // NOTE: Leave this ivar last so that the delegate is torn down first at |
| 158 // destruction, as it has a reference to this object. | 159 // destruction, as it has a reference to this object. |
| 159 scoped_ptr<TrackingSynchronizerDelegate> delegate_; | 160 scoped_ptr<TrackingSynchronizerDelegate> delegate_; |
| 160 | 161 |
| 161 DISALLOW_COPY_AND_ASSIGN(TrackingSynchronizer); | 162 DISALLOW_COPY_AND_ASSIGN(TrackingSynchronizer); |
| 162 }; | 163 }; |
| 163 | 164 |
| 164 } // namespace metrics | 165 } // namespace metrics |
| 165 | 166 |
| 166 #endif // COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_H_ | 167 #endif // COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_H_ |
| OLD | NEW |