| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_NATIVE_AW_METRICS_SERVICE_CLIENT_IMPL_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_METRICS_SERVICE_CLIENT_IMPL_H_ |
| 6 #define ANDROID_WEBVIEW_NATIVE_AW_METRICS_SERVICE_CLIENT_IMPL_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_METRICS_SERVICE_CLIENT_IMPL_H_ |
| 7 |
| 8 #include <jni.h> |
| 9 #include <memory> |
| 10 #include <string> |
| 7 | 11 |
| 8 #include "android_webview/browser/aw_metrics_service_client.h" | 12 #include "android_webview/browser/aw_metrics_service_client.h" |
| 9 | |
| 10 #include <jni.h> | |
| 11 #include <string> | |
| 12 | |
| 13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "components/metrics/metrics_log_uploader.h" | 15 #include "components/metrics/metrics_log_uploader.h" |
| 16 | 16 |
| 17 namespace metrics { | 17 namespace metrics { |
| 18 class MetricsStateManager; | 18 class MetricsStateManager; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace android_webview { | 21 namespace android_webview { |
| 22 | 22 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 std::unique_ptr<metrics::MetricsStateManager> metrics_state_manager_; | 72 std::unique_ptr<metrics::MetricsStateManager> metrics_state_manager_; |
| 73 std::unique_ptr<metrics::MetricsService> metrics_service_; | 73 std::unique_ptr<metrics::MetricsService> metrics_service_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(AwMetricsServiceClientImpl); | 75 DISALLOW_COPY_AND_ASSIGN(AwMetricsServiceClientImpl); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 bool RegisterAwMetricsServiceClient(JNIEnv* env); | 78 bool RegisterAwMetricsServiceClient(JNIEnv* env); |
| 79 | 79 |
| 80 } // namespace android_webview | 80 } // namespace android_webview |
| 81 | 81 |
| 82 #endif // ANDROID_WEBVIEW_NATIVE_AW_METRICS_SERVICE_CLIENT_IMPL_ | 82 #endif // ANDROID_WEBVIEW_NATIVE_AW_METRICS_SERVICE_CLIENT_IMPL_H_ |
| OLD | NEW |