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

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

Issue 2778203003: WebView: Create UMA uploader (Closed)
Patch Set: 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_METRICS_LOG_UPLOADER_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_METRICS_LOG_UPLOADER_H_
7
8 #include <jni.h>
9 #include <string>
10
11 #include "components/metrics/simple_metrics_log_uploader.h"
12
13 namespace android_webview {
14
15 // WebView uses the platform logging mechanism instead of the normal UMA
16 // server. The platform mechanism does its own compression, so we use
17 // SimpleMetricslogUploader.
18 class AwMetricsLogUploader : public ::metrics::SimpleMetricsLogUploader {
19 public:
20 explicit AwMetricsLogUploader(
21 const base::Callback<void(int)>& on_upload_complete);
Alexei Svitkine (slow) 2017/03/29 17:32:23 Nit: Add an explicit dtor and leave an empty line
paulmiller 2017/03/29 18:33:28 Will do. What's the reason for the explicit destru
22 void UploadLog(const std::string& uncompressed_log_data) override;
23
24 private:
25 const base::Callback<void(int)> on_upload_complete_;
michaelbai 2017/03/29 01:29:55 add DISALLOW_COPY_AND_ASSIGN()?
paulmiller 2017/03/29 18:33:28 Will do.
26 };
27
28 bool RegisterAwMetricsLogUploader(JNIEnv* env);
29
30 } // namespace android_webview
31
32 #endif // ANDROID_WEBVIEW_NATIVE_AW_METRICS_LOG_UPLOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698