Index: content/public/common/media_stream_request.h |
diff --git a/content/public/common/media_stream_request.h b/content/public/common/media_stream_request.h |
index c4c838fb6e376a216a3bbc1c979896ff95ee423e..5987e8d55652c53cdaf114eb2179fd7552806dfd 100644 |
--- a/content/public/common/media_stream_request.h |
+++ b/content/public/common/media_stream_request.h |
@@ -59,6 +59,21 @@ enum VideoFacingMode { |
NUM_MEDIA_VIDEO_FACING_MODE |
}; |
+enum MediaStreamRequestResult { |
+ MEDIA_DEVICE_OK = 0, |
+ MEDIA_DEVICE_PERMISSION_DENIED, |
+ MEDIA_DEVICE_PERMISSION_DISMISSED, |
+ MEDIA_DEVICE_INVALID_STATE, |
+ MEDIA_DEVICE_NO_HARDWARE, |
+ MEDIA_DEVICE_INVALID_SECURITY_ORIGIN, |
+ MEDIA_DEVICE_TAB_CAPTURE_FAILURE, |
+ MEDIA_DEVICE_SCREEN_CAPTURE_FAILURE, |
+ MEDIA_DEVICE_CAPTURE_FAILURE, |
+ MEDIA_DEVICE_TRACK_START_FAILURE, |
+ |
+ NUM_MEDIA_REQUEST_RESULTS |
+}; |
+ |
// Convenience predicates to determine whether the given type represents some |
// audio or some video device. |
CONTENT_EXPORT bool IsAudioMediaType(MediaStreamType type); |
@@ -225,6 +240,7 @@ class MediaStreamUI { |
// Callback used return results of media access requests. |
typedef base::Callback<void( |
const MediaStreamDevices& devices, |
+ content::MediaStreamRequestResult result, |
scoped_ptr<MediaStreamUI> ui)> MediaResponseCallback; |
} // namespace content |