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 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 int32_t GetProduct() override; | 59 int32_t GetProduct() override; |
60 std::string GetApplicationLocale() override; | 60 std::string GetApplicationLocale() override; |
61 bool GetBrand(std::string* brand_code) override; | 61 bool GetBrand(std::string* brand_code) override; |
62 metrics::SystemProfileProto::Channel GetChannel() override; | 62 metrics::SystemProfileProto::Channel GetChannel() override; |
63 std::string GetVersionString() override; | 63 std::string GetVersionString() override; |
64 void OnLogUploadComplete() override; | 64 void OnLogUploadComplete() override; |
65 void InitializeSystemProfileMetrics( | 65 void InitializeSystemProfileMetrics( |
66 const base::Closure& done_callback) override; | 66 const base::Closure& done_callback) override; |
67 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; | 67 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; |
68 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( | 68 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( |
| 69 const std::string& server_url, |
| 70 const std::string& mime_type, |
69 const base::Callback<void(int)>& on_upload_complete) override; | 71 const base::Callback<void(int)>& on_upload_complete) override; |
70 base::TimeDelta GetStandardUploadInterval() override; | 72 base::TimeDelta GetStandardUploadInterval() override; |
71 | 73 |
72 private: | 74 private: |
73 AwMetricsServiceClient(); | 75 AwMetricsServiceClient(); |
74 ~AwMetricsServiceClient() override; | 76 ~AwMetricsServiceClient() override; |
75 | 77 |
76 void InitializeWithGUID(std::string* guid); | 78 void InitializeWithGUID(std::string* guid); |
77 | 79 |
78 bool is_initialized_; | 80 bool is_initialized_; |
79 bool is_enabled_; | 81 bool is_enabled_; |
80 PrefService* pref_service_; | 82 PrefService* pref_service_; |
81 net::URLRequestContextGetter* request_context_; | 83 net::URLRequestContextGetter* request_context_; |
82 std::unique_ptr<metrics::MetricsStateManager> metrics_state_manager_; | 84 std::unique_ptr<metrics::MetricsStateManager> metrics_state_manager_; |
83 std::unique_ptr<metrics::MetricsService> metrics_service_; | 85 std::unique_ptr<metrics::MetricsService> metrics_service_; |
84 | 86 |
85 DISALLOW_COPY_AND_ASSIGN(AwMetricsServiceClient); | 87 DISALLOW_COPY_AND_ASSIGN(AwMetricsServiceClient); |
86 }; | 88 }; |
87 | 89 |
88 } // namespace android_webview | 90 } // namespace android_webview |
89 | 91 |
90 #endif // ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_IMPL_H_ | 92 #endif // ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_IMPL_H_ |
OLD | NEW |