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

Unified Diff: content/browser/media/capture/desktop_capture_device_uma_types.h

Issue 252393002: Adds UMA histograms for desktop capture device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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: content/browser/media/capture/desktop_capture_device_uma_types.h
diff --git a/content/browser/media/capture/desktop_capture_device_uma_types.h b/content/browser/media/capture/desktop_capture_device_uma_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..56a5a03e6e5e2003b1c57c26938d076f560f55b2
--- /dev/null
+++ b/content/browser/media/capture/desktop_capture_device_uma_types.h
@@ -0,0 +1,29 @@
+// 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 CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_UMA_TYPES_H_
+#define CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_UMA_TYPES_H_
+
+namespace content {
+
+// This enum must be kept in-sync with DesktopCaptureCounters defined in
+// histograms.xml. New fields should be added right before
+// DESKTOP_CAPTURE_COUNTER_BOUNDARY.
+enum DesktopCaptureCounters {
+ SCREEN_CAPTURER_CREATED,
+ WINDOW_CATPTURER_CREATED,
+ FIRST_SCREEN_CAPTURE_SUCCEEDED,
+ FIRST_SCREEN_CAPTURE_FAILED,
+ FIRST_WINDOW_CAPTURE_SUCCEEDED,
+ FIRST_WINDOW_CAPTURE_FAILED,
+ DESKTOP_CAPTURE_COUNTER_BOUNDARY
+};
+
+const char kUMADesopCaptureCounters[] = "WebRTC.DesktopCaptureCounters";
Sergey Ulanov 2014/04/24 19:33:24 1. s/UMA/Uma/ 2. typo: Desop 3. for string consts
jiayl 2014/04/24 20:58:55 Done.
+const char kUMAScreenCaptureTime[] = "WebRTC.ScreenCaptureTime";
+const char kUMAWindowCaptureTime[] = "WebRTC.WindowCaptureTime";
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_UMA_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698