| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void Finalize(); | 67 void Finalize(); |
| 68 | 68 |
| 69 // ::metrics::MetricsServiceClient: | 69 // ::metrics::MetricsServiceClient: |
| 70 ::metrics::MetricsService* GetMetricsService() override; | 70 ::metrics::MetricsService* GetMetricsService() override; |
| 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; | |
| 78 void InitializeSystemProfileMetrics( | 77 void InitializeSystemProfileMetrics( |
| 79 const base::Closure& done_callback) override; | 78 const base::Closure& done_callback) override; |
| 80 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; | 79 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; |
| 81 std::string GetMetricsServerUrl() override; | 80 std::string GetMetricsServerUrl() override; |
| 82 std::unique_ptr<::metrics::MetricsLogUploader> CreateUploader( | 81 std::unique_ptr<::metrics::MetricsLogUploader> CreateUploader( |
| 83 const std::string& server_url, | 82 const std::string& server_url, |
| 84 const std::string& mime_type, | 83 const std::string& mime_type, |
| 85 const base::Callback<void(int)>& on_upload_complete) override; | 84 const base::Callback<void(int)>& on_upload_complete) override; |
| 86 base::TimeDelta GetStandardUploadInterval() override; | 85 base::TimeDelta GetStandardUploadInterval() override; |
| 87 | 86 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 118 std::unique_ptr<::metrics::EnabledStateProvider> enabled_state_provider_; | 117 std::unique_ptr<::metrics::EnabledStateProvider> enabled_state_provider_; |
| 119 net::URLRequestContextGetter* const request_context_; | 118 net::URLRequestContextGetter* const request_context_; |
| 120 | 119 |
| 121 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); | 120 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); |
| 122 }; | 121 }; |
| 123 | 122 |
| 124 } // namespace metrics | 123 } // namespace metrics |
| 125 } // namespace chromecast | 124 } // namespace chromecast |
| 126 | 125 |
| 127 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ | 126 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ |
| OLD | NEW |