Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: chromecast/metrics/platform_metrics_providers.h

Issue 482813004: Adds CastMetricsServiceClient to Chromecast shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address asvitkine's comments Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromecast/metrics/platform_metrics_providers.h
diff --git a/chromecast/metrics/platform_metrics_providers.h b/chromecast/metrics/platform_metrics_providers.h
new file mode 100644
index 0000000000000000000000000000000000000000..d656b39f891c60bafe2d6a8879ee6a88e4ce137c
--- /dev/null
+++ b/chromecast/metrics/platform_metrics_providers.h
@@ -0,0 +1,36 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMECAST_METRICS_PLATFORM_METRICS_PROVIDERS_H_
+#define CHROMECAST_METRICS_PLATFORM_METRICS_PROVIDERS_H_
+
+#include "components/metrics/proto/system_profile.pb.h"
+
+class MetricsService;
+
+namespace chromecast {
+namespace metrics {
+
+// Build-level hook for different platforms to provide data to MetricsService.
+void RegisterPlatformMetricsProviders(MetricsService* metrics_service);
+
+// Returns the current release channel.
+::metrics::SystemProfileProto::Channel GetPlatformReleaseChannel();
+
+// Returns a string representing this build's version.
+std::string GetPlatformVersionString();
+
+// Returns whether or not metrics reporting should be on.
+bool PlatformIsReportingEnabled();
+
+// Called when the UMA client ID has been set.
+void PlatformSetClientID(const std::string& client_id);
+
+// Called when an upload has completed.
+void PlatformOnLogUploadComplete();
+
+} // namespace metrics
+} // namespace chromecast
+
+#endif // CHROMECAST_METRICS_PLATFORM_METRICS_PROVIDERS_H_
« no previous file with comments | « chromecast/metrics/cast_metrics_service_client.cc ('k') | chromecast/metrics/platform_metrics_providers_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698