| 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_PLATFORM_METRICS_PROVIDERS_H_ | 5 #ifndef CHROMECAST_BROWSER_METRICS_PLATFORM_METRICS_PROVIDERS_H_ |
| 6 #define CHROMECAST_BROWSER_METRICS_PLATFORM_METRICS_PROVIDERS_H_ | 6 #define CHROMECAST_BROWSER_METRICS_PLATFORM_METRICS_PROVIDERS_H_ |
| 7 | 7 |
| 8 #include "components/metrics/proto/system_profile.pb.h" | |
| 9 | |
| 10 namespace metrics { | 8 namespace metrics { |
| 11 class MetricsService; | 9 class MetricsService; |
| 12 } | 10 } |
| 13 | 11 |
| 14 namespace chromecast { | 12 namespace chromecast { |
| 15 | 13 |
| 16 class CastService; | 14 class CastService; |
| 17 | 15 |
| 18 namespace metrics { | 16 namespace metrics { |
| 19 | 17 |
| 20 // Build-level hook for different platforms to provide data to MetricsService. | 18 // Build-level hook for different platforms to provide data to MetricsService. |
| 21 void RegisterPlatformMetricsProviders( | 19 void RegisterPlatformMetricsProviders( |
| 22 ::metrics::MetricsService* metrics_service, | 20 ::metrics::MetricsService* metrics_service, |
| 23 CastService* cast_servce); | 21 CastService* cast_servce); |
| 24 | 22 |
| 25 // Returns UMA client ID persisted in the platform. | |
| 26 const std::string GetPlatformClientID(CastService* cast_servce); | |
| 27 | |
| 28 // Called when the UMA client ID has been set. | |
| 29 void PlatformSetClientID(CastService* cast_servce, | |
| 30 const std::string& client_id); | |
| 31 | |
| 32 } // namespace metrics | 23 } // namespace metrics |
| 33 } // namespace chromecast | 24 } // namespace chromecast |
| 34 | 25 |
| 35 #endif // CHROMECAST_BROWSER_METRICS_PLATFORM_METRICS_PROVIDERS_H_ | 26 #endif // CHROMECAST_BROWSER_METRICS_PLATFORM_METRICS_PROVIDERS_H_ |
| OLD | NEW |