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 ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_IMPL_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_IMPL_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_IMPL_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "android_webview/browser/aw_metrics_service_client.h" | 11 #include "android_webview/browser/aw_metrics_service_client.h" |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "components/metrics/enabled_state_provider.h" | 14 #include "components/metrics/enabled_state_provider.h" |
15 #include "components/metrics/metrics_service_client.h" | 15 #include "components/metrics/metrics_service_client.h" |
16 | 16 |
17 class PrefService; | 17 class PrefService; |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class FilePath; | 20 class FilePath; |
21 } | 21 } |
22 | 22 |
23 namespace metrics { | 23 namespace metrics { |
24 struct ClientInfo; | |
25 class MetricsStateManager; | 24 class MetricsStateManager; |
26 } | 25 } |
27 | 26 |
28 namespace net { | 27 namespace net { |
29 class URLRequestContextGetter; | 28 class URLRequestContextGetter; |
30 } | 29 } |
31 | 30 |
32 namespace android_webview { | 31 namespace android_webview { |
33 | 32 |
34 // This singleton manages metrics for an app using any number of WebViews. The | 33 // This singleton manages metrics for an app using any number of WebViews. The |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 net::URLRequestContextGetter* request_context_; | 81 net::URLRequestContextGetter* request_context_; |
83 std::unique_ptr<metrics::MetricsStateManager> metrics_state_manager_; | 82 std::unique_ptr<metrics::MetricsStateManager> metrics_state_manager_; |
84 std::unique_ptr<metrics::MetricsService> metrics_service_; | 83 std::unique_ptr<metrics::MetricsService> metrics_service_; |
85 | 84 |
86 DISALLOW_COPY_AND_ASSIGN(AwMetricsServiceClient); | 85 DISALLOW_COPY_AND_ASSIGN(AwMetricsServiceClient); |
87 }; | 86 }; |
88 | 87 |
89 } // namespace android_webview | 88 } // namespace android_webview |
90 | 89 |
91 #endif // ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_IMPL_H_ | 90 #endif // ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_IMPL_H_ |
OLD | NEW |