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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 ::metrics::SystemProfileProto::Channel GetChannel() override; | 76 ::metrics::SystemProfileProto::Channel GetChannel() override; |
77 std::string GetVersionString() override; | 77 std::string GetVersionString() 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::string GetMetricsServerUrl() override; |
82 std::unique_ptr<::metrics::MetricsLogUploader> CreateUploader( | 82 std::unique_ptr<::metrics::MetricsLogUploader> CreateUploader( |
83 base::StringPiece server_url, | 83 base::StringPiece server_url, |
84 base::StringPiece mime_type, | 84 base::StringPiece mime_type, |
85 ::metrics::MetricsLogUploader::MetricServiceType service_type, | 85 ::metrics::MetricsLogUploader::MetricServiceType service_type, |
86 const base::Callback<void(int)>& on_upload_complete) override; | 86 const ::metrics::MetricsLogUploader::UploadCallback& on_upload_complete) |
| 87 override; |
87 base::TimeDelta GetStandardUploadInterval() override; | 88 base::TimeDelta GetStandardUploadInterval() override; |
88 | 89 |
89 // ::metrics::EnabledStateProvider: | 90 // ::metrics::EnabledStateProvider: |
90 bool IsConsentGiven() override; | 91 bool IsConsentGiven() override; |
91 | 92 |
92 // Starts/stops the metrics service. | 93 // Starts/stops the metrics service. |
93 void EnableMetricsService(bool enabled); | 94 void EnableMetricsService(bool enabled); |
94 | 95 |
95 std::string client_id() const { return client_id_; } | 96 std::string client_id() const { return client_id_; } |
96 | 97 |
(...skipping 22 matching lines...) Expand all Loading... |
119 std::unique_ptr<::metrics::EnabledStateProvider> enabled_state_provider_; | 120 std::unique_ptr<::metrics::EnabledStateProvider> enabled_state_provider_; |
120 net::URLRequestContextGetter* const request_context_; | 121 net::URLRequestContextGetter* const request_context_; |
121 | 122 |
122 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); | 123 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); |
123 }; | 124 }; |
124 | 125 |
125 } // namespace metrics | 126 } // namespace metrics |
126 } // namespace chromecast | 127 } // namespace chromecast |
127 | 128 |
128 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ | 129 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ |
OLD | NEW |