| 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 IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ | 5 #ifndef IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| 6 #define IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ | 6 #define IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/threading/thread_checker.h" | 16 #include "base/threading/thread_checker.h" |
| 17 #include "components/metrics/metrics_service_client.h" | 17 #include "components/metrics/metrics_service_client.h" |
| 18 #include "components/metrics/profiler/tracking_synchronizer_observer.h" | 18 #include "components/metrics/profiler/tracking_synchronizer_observer.h" |
| 19 #include "components/omnibox/browser/omnibox_event_global_tracker.h" | 19 #include "components/omnibox/browser/omnibox_event_global_tracker.h" |
| 20 #include "ios/web/public/web_state/global_web_state_observer.h" | 20 #include "ios/web/public/web_state/global_web_state_observer.h" |
| 21 | 21 |
| 22 class IOSChromeStabilityMetricsProvider; | 22 class IOSChromeStabilityMetricsProvider; |
| 23 class PrefRegistrySimple; | 23 class PrefRegistrySimple; |
| 24 class PrefService; | |
| 25 | |
| 26 namespace base { | |
| 27 class FilePath; | |
| 28 } // namespace base | |
| 29 | 24 |
| 30 namespace metrics { | 25 namespace metrics { |
| 31 class DriveMetricsProvider; | 26 class DriveMetricsProvider; |
| 32 class MetricsService; | 27 class MetricsService; |
| 33 class MetricsStateManager; | 28 class MetricsStateManager; |
| 34 class ProfilerMetricsProvider; | 29 class ProfilerMetricsProvider; |
| 35 } // namespace metrics | 30 } // namespace metrics |
| 36 | 31 |
| 37 // IOSChromeMetricsServiceClient provides an implementation of | 32 // IOSChromeMetricsServiceClient provides an implementation of |
| 38 // MetricsServiceClient that depends on //ios/chrome/. | 33 // MetricsServiceClient that depends on //ios/chrome/. |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 // Whether this client has already uploaded profiler data during this session. | 149 // Whether this client has already uploaded profiler data during this session. |
| 155 // Profiler data is uploaded at most once per session. | 150 // Profiler data is uploaded at most once per session. |
| 156 bool has_uploaded_profiler_data_; | 151 bool has_uploaded_profiler_data_; |
| 157 | 152 |
| 158 base::WeakPtrFactory<IOSChromeMetricsServiceClient> weak_ptr_factory_; | 153 base::WeakPtrFactory<IOSChromeMetricsServiceClient> weak_ptr_factory_; |
| 159 | 154 |
| 160 DISALLOW_COPY_AND_ASSIGN(IOSChromeMetricsServiceClient); | 155 DISALLOW_COPY_AND_ASSIGN(IOSChromeMetricsServiceClient); |
| 161 }; | 156 }; |
| 162 | 157 |
| 163 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ | 158 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| OLD | NEW |