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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 MemoryGrowthTracker memory_growth_tracker_; | 184 MemoryGrowthTracker memory_growth_tracker_; |
185 | 185 |
186 // Callback to determine whether or not a cellular network is currently being | 186 // Callback to determine whether or not a cellular network is currently being |
187 // used. | 187 // used. |
188 base::Callback<void(bool*)> cellular_callback_; | 188 base::Callback<void(bool*)> cellular_callback_; |
189 | 189 |
190 // Time of this object's creation. | 190 // Time of this object's creation. |
191 const base::TimeTicks start_time_; | 191 const base::TimeTicks start_time_; |
192 | 192 |
193 // Map of ProcessResourceUsage from render process host IDs. | 193 // Map of ProcessResourceUsage from render process host IDs. |
194 ScopedPtrMap<int, scoped_ptr<ProcessResourceUsage>> host_resource_usage_map_; | 194 base::ScopedPtrMap<int, scoped_ptr<ProcessResourceUsage>> |
| 195 host_resource_usage_map_; |
195 | 196 |
196 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; | 197 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; |
197 | 198 |
198 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); | 199 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); |
199 }; | 200 }; |
200 | 201 |
201 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 202 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
OLD | NEW |