| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::unique_ptr<::metrics::MetricsLogUploader> CreateUploader( | 81 std::unique_ptr<::metrics::MetricsLogUploader> CreateUploader( |
| 82 const base::Callback<void(int)>& on_upload_complete) override; | 82 const base::Callback<void(int)>& on_upload_complete) override; |
| 83 base::TimeDelta GetStandardUploadInterval() override; | 83 base::TimeDelta GetStandardUploadInterval() override; |
| 84 scoped_refptr<base::SingleThreadTaskRunner> GetMainThreadTaskRunner() |
| 85 override; |
| 84 | 86 |
| 85 // Starts/stops the metrics service. | 87 // Starts/stops the metrics service. |
| 86 void EnableMetricsService(bool enabled); | 88 void EnableMetricsService(bool enabled); |
| 87 | 89 |
| 88 std::string client_id() const { return client_id_; } | 90 std::string client_id() const { return client_id_; } |
| 89 | 91 |
| 90 private: | 92 private: |
| 91 CastMetricsServiceClient(base::TaskRunner* io_task_runner, | 93 CastMetricsServiceClient(base::TaskRunner* io_task_runner, |
| 92 PrefService* pref_service, | 94 PrefService* pref_service, |
| 93 net::URLRequestContextGetter* request_context); | 95 net::URLRequestContextGetter* request_context); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 114 std::unique_ptr<::metrics::MetricsService> metrics_service_; | 116 std::unique_ptr<::metrics::MetricsService> metrics_service_; |
| 115 net::URLRequestContextGetter* const request_context_; | 117 net::URLRequestContextGetter* const request_context_; |
| 116 | 118 |
| 117 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); | 119 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); |
| 118 }; | 120 }; |
| 119 | 121 |
| 120 } // namespace metrics | 122 } // namespace metrics |
| 121 } // namespace chromecast | 123 } // namespace chromecast |
| 122 | 124 |
| 123 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ | 125 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ |
| OLD | NEW |