Index: content/renderer/media/webrtc_uma_histograms.h |
diff --git a/content/renderer/media/webrtc_uma_histograms.h b/content/renderer/media/webrtc_uma_histograms.h |
index aee1f348740983ad5f0ef3e71957c0baebf0f1f6..4d5fb311374619863c0ebdfb27e6a4b0db4b3f9c 100644 |
--- a/content/renderer/media/webrtc_uma_histograms.h |
+++ b/content/renderer/media/webrtc_uma_histograms.h |
@@ -12,6 +12,20 @@ |
namespace content { |
+// Used to investigate where UserMediaRequests end up. |
+// Only UserMediaRequests that do not log with LogUserMediaRequestResult |
+// should call LogUserMediaRequestWithNoResult. |
+// |
+// Elements in this enum should not be deleted or rearranged; the only permitted |
+// operation is to add new elements to the end. |
tommi (sloooow) - chröme
2014/08/06 11:42:21
to the end or before NUM_MEDIA_STREAM_REQUEST_WITH
andresp-chromium
2014/08/06 11:59:14
NUM_MEDIA_STREAM_REQUEST_WITH_NO_RESULT
|
+enum MediaStreamRequestState { |
+ MEDIA_STREAM_REQUEST_EXPLICITLY_CANCELLED = 0, |
tommi (sloooow) - chröme
2014/08/06 11:42:21
too much indent
andresp-chromium
2014/08/06 11:59:14
Done.
|
+ MEDIA_STREAM_REQUEST_NOT_GENERATED = 1, |
+ MEDIA_STREAM_REQUEST_PENDING_MEDIA_TRACKS = 2, |
+ NUM_MEDIA_STREAM_REQUEST_WITH_NO_RESULT |
+}; |
+ |
+void LogUserMediaRequestWithNoResult(MediaStreamRequestState state); |
void LogUserMediaRequestResult(MediaStreamRequestResult result); |
// Helper enum used for histogramming calls to WebRTC APIs from JavaScript. |