OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ | 5 #ifndef CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ |
6 #define CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ | 6 #define CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 void SetMetricsClientId(const std::string& client_id) override; | 71 void SetMetricsClientId(const std::string& client_id) override; |
72 int32_t GetProduct() override; | 72 int32_t GetProduct() override; |
73 std::string GetApplicationLocale() override; | 73 std::string GetApplicationLocale() override; |
74 bool GetBrand(std::string* brand_code) override; | 74 bool GetBrand(std::string* brand_code) override; |
75 ::metrics::SystemProfileProto::Channel GetChannel() override; | 75 ::metrics::SystemProfileProto::Channel GetChannel() override; |
76 std::string GetVersionString() override; | 76 std::string GetVersionString() override; |
77 void OnLogUploadComplete() override; | 77 void OnLogUploadComplete() override; |
78 void InitializeSystemProfileMetrics( | 78 void InitializeSystemProfileMetrics( |
79 const base::Closure& done_callback) override; | 79 const base::Closure& done_callback) override; |
80 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; | 80 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; |
| 81 std::string GetMetricsServerUrl() override; |
81 std::unique_ptr<::metrics::MetricsLogUploader> CreateUploader( | 82 std::unique_ptr<::metrics::MetricsLogUploader> CreateUploader( |
| 83 const std::string& server_url, |
| 84 const std::string& mime_type, |
82 const base::Callback<void(int)>& on_upload_complete) override; | 85 const base::Callback<void(int)>& on_upload_complete) override; |
83 base::TimeDelta GetStandardUploadInterval() override; | 86 base::TimeDelta GetStandardUploadInterval() override; |
84 | 87 |
85 // ::metrics::EnabledStateProvider: | 88 // ::metrics::EnabledStateProvider: |
86 bool IsConsentGiven() override; | 89 bool IsConsentGiven() override; |
87 | 90 |
88 // Starts/stops the metrics service. | 91 // Starts/stops the metrics service. |
89 void EnableMetricsService(bool enabled); | 92 void EnableMetricsService(bool enabled); |
90 | 93 |
91 std::string client_id() const { return client_id_; } | 94 std::string client_id() const { return client_id_; } |
(...skipping 23 matching lines...) Expand all Loading... |
115 std::unique_ptr<::metrics::EnabledStateProvider> enabled_state_provider_; | 118 std::unique_ptr<::metrics::EnabledStateProvider> enabled_state_provider_; |
116 net::URLRequestContextGetter* const request_context_; | 119 net::URLRequestContextGetter* const request_context_; |
117 | 120 |
118 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); | 121 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); |
119 }; | 122 }; |
120 | 123 |
121 } // namespace metrics | 124 } // namespace metrics |
122 } // namespace chromecast | 125 } // namespace chromecast |
123 | 126 |
124 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ | 127 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ |
OLD | NEW |