| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // Called after the Plugin init task has been completed that continues the | 90 // Called after the Plugin init task has been completed that continues the |
| 91 // init task by launching a task to gather Google Update statistics. | 91 // init task by launching a task to gather Google Update statistics. |
| 92 void OnInitTaskGotPluginInfo(); | 92 void OnInitTaskGotPluginInfo(); |
| 93 | 93 |
| 94 // Called after GoogleUpdate init task has been completed that continues the | 94 // Called after GoogleUpdate init task has been completed that continues the |
| 95 // init task by loading profiler data. | 95 // init task by loading profiler data. |
| 96 void OnInitTaskGotGoogleUpdateData(); | 96 void OnInitTaskGotGoogleUpdateData(); |
| 97 | 97 |
| 98 // TrackingSynchronizerObserver: | 98 // TrackingSynchronizerObserver: |
| 99 void ReceivedProfilerData( | 99 void ReceivedProfilerData( |
| 100 const metrics::ProfilerDataAttributes& attributes, |
| 100 const tracked_objects::ProcessDataPhaseSnapshot& process_data_phase, | 101 const tracked_objects::ProcessDataPhaseSnapshot& process_data_phase, |
| 101 base::ProcessId process_id, | |
| 102 content::ProcessType process_type, | |
| 103 int profiling_phase, | |
| 104 base::TimeDelta phase_start, | |
| 105 base::TimeDelta phase_finish, | |
| 106 const metrics::ProfilerEvents& past_profiler_events) override; | 102 const metrics::ProfilerEvents& past_profiler_events) override; |
| 107 void FinishedReceivingProfilerData() override; | 103 void FinishedReceivingProfilerData() override; |
| 108 | 104 |
| 109 // Callbacks for various stages of final log info collection. Do not call | 105 // Callbacks for various stages of final log info collection. Do not call |
| 110 // these directly. | 106 // these directly. |
| 111 void OnMemoryDetailCollectionDone(); | 107 void OnMemoryDetailCollectionDone(); |
| 112 void OnHistogramSynchronizationDone(); | 108 void OnHistogramSynchronizationDone(); |
| 113 | 109 |
| 114 // Records metrics about the switches present on the command line. | 110 // Records metrics about the switches present on the command line. |
| 115 void RecordCommandLineMetrics(); | 111 void RecordCommandLineMetrics(); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 base::Closure finished_gathering_initial_metrics_callback_; | 174 base::Closure finished_gathering_initial_metrics_callback_; |
| 179 | 175 |
| 180 // The MemoryGrowthTracker instance that tracks memory usage growth in | 176 // The MemoryGrowthTracker instance that tracks memory usage growth in |
| 181 // MemoryDetails. | 177 // MemoryDetails. |
| 182 MemoryGrowthTracker memory_growth_tracker_; | 178 MemoryGrowthTracker memory_growth_tracker_; |
| 183 | 179 |
| 184 // Callback to determine whether or not a cellular network is currently being | 180 // Callback to determine whether or not a cellular network is currently being |
| 185 // used. | 181 // used. |
| 186 base::Callback<void(bool*)> cellular_callback_; | 182 base::Callback<void(bool*)> cellular_callback_; |
| 187 | 183 |
| 184 // Time of this object's creation. |
| 185 const base::TimeTicks start_time_; |
| 186 |
| 188 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; | 187 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; |
| 189 | 188 |
| 190 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); | 189 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); |
| 191 }; | 190 }; |
| 192 | 191 |
| 193 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 192 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| OLD | NEW |