| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // events in the file before shutdown. This function is safe to call from any | 62 // events in the file before shutdown. This function is safe to call from any |
| 63 // thread. | 63 // thread. |
| 64 void ProcessExternalEvents(const base::Closure& cb); | 64 void ProcessExternalEvents(const base::Closure& cb); |
| 65 | 65 |
| 66 void Initialize(CastService* cast_service); | 66 void Initialize(CastService* cast_service); |
| 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 void OnRecordingDisabled() override; | |
| 73 bool IsOffTheRecordSessionActive() override; | 72 bool IsOffTheRecordSessionActive() override; |
| 74 int32_t GetProduct() override; | 73 int32_t GetProduct() override; |
| 75 std::string GetApplicationLocale() override; | 74 std::string GetApplicationLocale() override; |
| 76 bool GetBrand(std::string* brand_code) override; | 75 bool GetBrand(std::string* brand_code) override; |
| 77 ::metrics::SystemProfileProto::Channel GetChannel() override; | 76 ::metrics::SystemProfileProto::Channel GetChannel() override; |
| 78 std::string GetVersionString() override; | 77 std::string GetVersionString() override; |
| 79 void OnLogUploadComplete() override; | 78 void OnLogUploadComplete() override; |
| 80 void InitializeSystemProfileMetrics( | 79 void InitializeSystemProfileMetrics( |
| 81 const base::Closure& done_callback) override; | 80 const base::Closure& done_callback) override; |
| 82 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; | 81 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 std::unique_ptr<::metrics::EnabledStateProvider> enabled_state_provider_; | 116 std::unique_ptr<::metrics::EnabledStateProvider> enabled_state_provider_; |
| 118 net::URLRequestContextGetter* const request_context_; | 117 net::URLRequestContextGetter* const request_context_; |
| 119 | 118 |
| 120 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); | 119 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); |
| 121 }; | 120 }; |
| 122 | 121 |
| 123 } // namespace metrics | 122 } // namespace metrics |
| 124 } // namespace chromecast | 123 } // namespace chromecast |
| 125 | 124 |
| 126 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ | 125 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ |
| OLD | NEW |