Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: android_webview/browser/aw_metrics_service_client.h

Issue 2879703002: WebView: Add channel info for UMA (Closed)
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | android_webview/browser/aw_metrics_service_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_BROWSER_AW_METRICS_SERVICE_CLIENT_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 11
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_log_uploader.h" 15 #include "components/metrics/metrics_log_uploader.h"
16 #include "components/metrics/metrics_service_client.h" 16 #include "components/metrics/metrics_service_client.h"
17 #include "components/version_info/channel.h"
17 18
18 class PrefService; 19 class PrefService;
19 20
20 namespace base { 21 namespace base {
21 class FilePath; 22 class FilePath;
22 } 23 }
23 24
24 namespace net { 25 namespace net {
25 class URLRequestContextGetter; 26 class URLRequestContextGetter;
26 } 27 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 AwMetricsServiceClient(); 79 AwMetricsServiceClient();
79 ~AwMetricsServiceClient() override; 80 ~AwMetricsServiceClient() override;
80 81
81 void InitializeWithGUID(std::string* guid); 82 void InitializeWithGUID(std::string* guid);
82 83
83 bool is_enabled_; 84 bool is_enabled_;
84 PrefService* pref_service_; 85 PrefService* pref_service_;
85 net::URLRequestContextGetter* request_context_; 86 net::URLRequestContextGetter* request_context_;
86 std::unique_ptr<metrics::MetricsStateManager> metrics_state_manager_; 87 std::unique_ptr<metrics::MetricsStateManager> metrics_state_manager_;
87 std::unique_ptr<metrics::MetricsService> metrics_service_; 88 std::unique_ptr<metrics::MetricsService> metrics_service_;
89 version_info::Channel channel_;
88 90
89 DISALLOW_COPY_AND_ASSIGN(AwMetricsServiceClient); 91 DISALLOW_COPY_AND_ASSIGN(AwMetricsServiceClient);
90 }; 92 };
91 93
92 bool RegisterAwMetricsServiceClient(JNIEnv* env); 94 bool RegisterAwMetricsServiceClient(JNIEnv* env);
93 95
94 } // namespace android_webview 96 } // namespace android_webview
95 97
96 #endif // ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_H_ 98 #endif // ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698