| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROMECAST_BROWSER_METRICS_PLATFORM_METRICS_PROVIDERS_H_ | |
| 6 #define CHROMECAST_BROWSER_METRICS_PLATFORM_METRICS_PROVIDERS_H_ | |
| 7 | |
| 8 #include "components/metrics/proto/system_profile.pb.h" | |
| 9 | |
| 10 namespace metrics { | |
| 11 class MetricsService; | |
| 12 } | |
| 13 | |
| 14 namespace chromecast { | |
| 15 | |
| 16 class CastService; | |
| 17 | |
| 18 namespace metrics { | |
| 19 | |
| 20 // Build-level hook for different platforms to provide data to MetricsService. | |
| 21 void RegisterPlatformMetricsProviders( | |
| 22 ::metrics::MetricsService* metrics_service, | |
| 23 CastService* cast_servce); | |
| 24 | |
| 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 | |
| 33 } // namespace chromecast | |
| 34 | |
| 35 #endif // CHROMECAST_BROWSER_METRICS_PLATFORM_METRICS_PROVIDERS_H_ | |
| OLD | NEW |