| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 // Processes all events from shared file. This should be used to consume all | 56 // Processes all events from shared file. This should be used to consume all |
| 57 // events in the file before shutdown. This function is safe to call from any | 57 // events in the file before shutdown. This function is safe to call from any |
| 58 // thread. | 58 // thread. |
| 59 void ProcessExternalEvents(const base::Closure& cb); | 59 void ProcessExternalEvents(const base::Closure& cb); |
| 60 | 60 |
| 61 void Initialize(CastService* cast_service); | 61 void Initialize(CastService* cast_service); |
| 62 void Finalize(); | 62 void Finalize(); |
| 63 | 63 |
| 64 // metrics::MetricsServiceClient implementation: | 64 // metrics::MetricsServiceClient implementation: |
| 65 ::metrics::MetricsService* GetMetricsService() override; | |
| 66 void SetMetricsClientId(const std::string& client_id) override; | 65 void SetMetricsClientId(const std::string& client_id) override; |
| 67 void OnRecordingDisabled() override; | 66 void OnRecordingDisabled() override; |
| 68 bool IsOffTheRecordSessionActive() override; | 67 bool IsOffTheRecordSessionActive() override; |
| 69 int32_t GetProduct() override; | 68 int32_t GetProduct() override; |
| 70 std::string GetApplicationLocale() override; | 69 std::string GetApplicationLocale() override; |
| 71 bool GetBrand(std::string* brand_code) override; | 70 bool GetBrand(std::string* brand_code) override; |
| 72 ::metrics::SystemProfileProto::Channel GetChannel() override; | 71 ::metrics::SystemProfileProto::Channel GetChannel() override; |
| 73 std::string GetVersionString() override; | 72 std::string GetVersionString() override; |
| 74 void OnLogUploadComplete() override; | 73 void OnLogUploadComplete() override; |
| 75 void InitializeSystemProfileMetrics( | 74 void InitializeSystemProfileMetrics( |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 scoped_ptr< ::metrics::MetricsService> metrics_service_; | 110 scoped_ptr< ::metrics::MetricsService> metrics_service_; |
| 112 net::URLRequestContextGetter* const request_context_; | 111 net::URLRequestContextGetter* const request_context_; |
| 113 | 112 |
| 114 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); | 113 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); |
| 115 }; | 114 }; |
| 116 | 115 |
| 117 } // namespace metrics | 116 } // namespace metrics |
| 118 } // namespace chromecast | 117 } // namespace chromecast |
| 119 | 118 |
| 120 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ | 119 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ |
| OLD | NEW |