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..2ab6f6d65366821cf1fbec4108b465942ba7d10d 100644 |
--- a/content/renderer/media/webrtc_uma_histograms.h |
+++ b/content/renderer/media/webrtc_uma_histograms.h |
@@ -12,6 +12,21 @@ |
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 before |
+// NUM_MEDIA_STREAM_REQUEST_WITH_NO_RESULT. |
+enum MediaStreamRequestState { |
+ MEDIA_STREAM_REQUEST_EXPLICITLY_CANCELLED = 0, |
+ 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. |