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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <queue> | 11 #include <queue> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "chrome/browser/metrics/metrics_memory_details.h" | 19 #include "chrome/browser/metrics/metrics_memory_details.h" |
20 #include "components/metrics/metrics_service_client.h" | 20 #include "components/metrics/metrics_service_client.h" |
21 #include "components/metrics/profiler/tracking_synchronizer_observer.h" | 21 #include "components/metrics/profiler/tracking_synchronizer_observer.h" |
22 #include "components/metrics/proto/system_profile.pb.h" | 22 #include "components/metrics/proto/system_profile.pb.h" |
23 #include "components/omnibox/browser/omnibox_event_global_tracker.h" | 23 #include "components/omnibox/browser/omnibox_event_global_tracker.h" |
24 #include "content/public/browser/notification_observer.h" | 24 #include "content/public/browser/notification_observer.h" |
25 #include "content/public/browser/notification_registrar.h" | 25 #include "content/public/browser/notification_registrar.h" |
| 26 #include "ppapi/features/features.h" |
26 | 27 |
27 class AntiVirusMetricsProvider; | 28 class AntiVirusMetricsProvider; |
28 class ChromeOSMetricsProvider; | 29 class ChromeOSMetricsProvider; |
29 class GoogleUpdateMetricsProviderWin; | 30 class GoogleUpdateMetricsProviderWin; |
30 class PluginMetricsProvider; | 31 class PluginMetricsProvider; |
31 class PrefRegistrySimple; | 32 class PrefRegistrySimple; |
32 class PrefService; | 33 class PrefService; |
33 | 34 |
34 #if !defined(OS_CHROMEOS) | 35 #if !defined(OS_CHROMEOS) |
35 class SigninStatusMetricsProvider; | 36 class SigninStatusMetricsProvider; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // Indicates that collect final metrics step is running. | 171 // Indicates that collect final metrics step is running. |
171 bool waiting_for_collect_final_metrics_step_; | 172 bool waiting_for_collect_final_metrics_step_; |
172 | 173 |
173 // Number of async histogram fetch requests in progress. | 174 // Number of async histogram fetch requests in progress. |
174 int num_async_histogram_fetches_in_progress_; | 175 int num_async_histogram_fetches_in_progress_; |
175 | 176 |
176 // The ProfilerMetricsProvider instance that was registered with | 177 // The ProfilerMetricsProvider instance that was registered with |
177 // MetricsService. Has the same lifetime as |metrics_service_|. | 178 // MetricsService. Has the same lifetime as |metrics_service_|. |
178 metrics::ProfilerMetricsProvider* profiler_metrics_provider_; | 179 metrics::ProfilerMetricsProvider* profiler_metrics_provider_; |
179 | 180 |
180 #if defined(ENABLE_PLUGINS) | 181 #if BUILDFLAG(ENABLE_PLUGINS) |
181 // The PluginMetricsProvider instance that was registered with | 182 // The PluginMetricsProvider instance that was registered with |
182 // MetricsService. Has the same lifetime as |metrics_service_|. | 183 // MetricsService. Has the same lifetime as |metrics_service_|. |
183 PluginMetricsProvider* plugin_metrics_provider_; | 184 PluginMetricsProvider* plugin_metrics_provider_; |
184 #endif | 185 #endif |
185 | 186 |
186 #if defined(OS_WIN) | 187 #if defined(OS_WIN) |
187 // The GoogleUpdateMetricsProviderWin instance that was registered with | 188 // The GoogleUpdateMetricsProviderWin instance that was registered with |
188 // MetricsService. Has the same lifetime as |metrics_service_|. | 189 // MetricsService. Has the same lifetime as |metrics_service_|. |
189 GoogleUpdateMetricsProviderWin* google_update_metrics_provider_; | 190 GoogleUpdateMetricsProviderWin* google_update_metrics_provider_; |
190 | 191 |
(...skipping 29 matching lines...) Expand all Loading... |
220 // Whether this client has already uploaded profiler data during this session. | 221 // Whether this client has already uploaded profiler data during this session. |
221 // Profiler data is uploaded at most once per session. | 222 // Profiler data is uploaded at most once per session. |
222 bool has_uploaded_profiler_data_; | 223 bool has_uploaded_profiler_data_; |
223 | 224 |
224 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; | 225 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; |
225 | 226 |
226 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); | 227 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); |
227 }; | 228 }; |
228 | 229 |
229 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ | 230 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ |
OLD | NEW |