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

Unified Diff: chrome/browser/android/vr_shell/vr_metrics_util.h

Issue 2865463003: Tracks GVR version crossed with headset type using UMA. (Closed)
Patch Set: Fixed comments Created 3 years, 6 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
« no previous file with comments | « chrome/browser/android/vr_shell/vr_core_info.cc ('k') | chrome/browser/android/vr_shell/vr_metrics_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_metrics_util.h
diff --git a/chrome/browser/android/vr_shell/vr_metrics_util.h b/chrome/browser/android/vr_shell/vr_metrics_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..3075b91ebd96383dac00d9d708d79074a972abc0
--- /dev/null
+++ b/chrome/browser/android/vr_shell/vr_metrics_util.h
@@ -0,0 +1,39 @@
+// Copyright 2017 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 CHROME_BROWSER_ANDROID_VR_SHELL_VR_METRICS_UTIL_H_
+#define CHROME_BROWSER_ANDROID_VR_SHELL_VR_METRICS_UTIL_H_
+
+#include "base/macros.h"
+
+#include "chrome/browser/android/vr_shell/vr_core_info.h"
+#include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/gvr.h"
+#include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/gvr_types.h"
+
+namespace vr_shell {
+
+enum class ViewerType {
+ UNKNOWN_TYPE = 0,
+ CARDBOARD = 1,
+ DAYDREAM = 2,
+ VIEWER_TYPE_MAX,
+};
+
+class VrMetricsUtil {
+ public:
+ static void LogGvrVersionForVrViewerType(gvr_context* context,
+ const VrCoreInfo& vr_core_info);
+ static void LogVrViewerType(gvr_context* context);
+
+ private:
+ static ViewerType GetVrViewerType(gvr_context* context);
+
+ static bool has_logged_vr_runtime_version_;
+
+ DISALLOW_IMPLICIT_CONSTRUCTORS(VrMetricsUtil);
+};
+
+} // namespace vr_shell
+
+#endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_METRICS_UTIL_H_
« no previous file with comments | « chrome/browser/android/vr_shell/vr_core_info.cc ('k') | chrome/browser/android/vr_shell/vr_metrics_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698