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

Side by Side Diff: android_webview/native/aw_metrics_log_uploader.h

Issue 2774503002: Track network stack error codes from UMA and UKM (Closed)
Patch Set: Rebase on Created 3 years, 8 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/native/aw_metrics_log_uploader.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_NATIVE_AW_METRICS_LOG_UPLOADER_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_METRICS_LOG_UPLOADER_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_METRICS_LOG_UPLOADER_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_METRICS_LOG_UPLOADER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
11 #include "components/metrics/metrics_log_uploader.h" 11 #include "components/metrics/metrics_log_uploader.h"
12 12
13 namespace android_webview { 13 namespace android_webview {
14 14
15 // Uploads UMA logs for WebView using the platform logging mechanism. 15 // Uploads UMA logs for WebView using the platform logging mechanism.
16 class AwMetricsLogUploader : public ::metrics::MetricsLogUploader { 16 class AwMetricsLogUploader : public ::metrics::MetricsLogUploader {
17 public: 17 public:
18 explicit AwMetricsLogUploader( 18 explicit AwMetricsLogUploader(
19 const base::Callback<void(int)>& on_upload_complete); 19 const ::metrics::MetricsLogUploader::UploadCallback& on_upload_complete);
20 20
21 ~AwMetricsLogUploader() override; 21 ~AwMetricsLogUploader() override;
22 22
23 // ::metrics::MetricsLogUploader: 23 // ::metrics::MetricsLogUploader:
24 void UploadLog(const std::string& compressed_log_data, 24 void UploadLog(const std::string& compressed_log_data,
25 const std::string& log_hash) override; 25 const std::string& log_hash) override;
26 26
27 private: 27 private:
28 const base::Callback<void(int)> on_upload_complete_; 28 const metrics::MetricsLogUploader::UploadCallback on_upload_complete_;
29 29
30 DISALLOW_COPY_AND_ASSIGN(AwMetricsLogUploader); 30 DISALLOW_COPY_AND_ASSIGN(AwMetricsLogUploader);
31 }; 31 };
32 32
33 } // namespace android_webview 33 } // namespace android_webview
34 34
35 #endif // ANDROID_WEBVIEW_NATIVE_AW_METRICS_LOG_UPLOADER_H_ 35 #endif // ANDROID_WEBVIEW_NATIVE_AW_METRICS_LOG_UPLOADER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/native/aw_metrics_log_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698