Chromium Code Reviews| Index: content/renderer/media/media_stream_dispatcher.h |
| diff --git a/content/renderer/media/media_stream_dispatcher.h b/content/renderer/media/media_stream_dispatcher.h |
| index 18803c1277de6a49f457159d4f794c91f45b42cc..db3f3c5f06c4c3182b46607739acaa3ce24da326 100644 |
| --- a/content/renderer/media/media_stream_dispatcher.h |
| +++ b/content/renderer/media/media_stream_dispatcher.h |
| @@ -75,6 +75,9 @@ class CONTENT_EXPORT MediaStreamDispatcher |
| // This method is called when the stream is started successfully. |
| void OnStreamStarted(const std::string& label); |
| + // Get all the media devices of video capture, e.g. webcam. |
| + void GetVideoCaptureDevices(StreamDeviceInfoArray& video_array); |
|
tommi (sloooow) - chröme
2017/03/21 09:21:17
StreamDeviceInfoArray*
or change the method to re
braveyao
2017/03/22 00:45:32
Done.
I'm more comfortable to pass it in as a par
|
| + |
| // Check if the label is a valid stream. |
| virtual bool IsStream(const std::string& label); |
| // Get the video session_id given a label. The label identifies a stream. |
| @@ -90,6 +93,7 @@ class CONTENT_EXPORT MediaStreamDispatcher |
| FRIEND_TEST_ALL_PREFIXES(MediaStreamDispatcherTest, BasicVideoDevice); |
| FRIEND_TEST_ALL_PREFIXES(MediaStreamDispatcherTest, TestFailure); |
| FRIEND_TEST_ALL_PREFIXES(MediaStreamDispatcherTest, CancelGenerateStream); |
| + FRIEND_TEST_ALL_PREFIXES(MediaStreamDispatcherTest, GetVideoCaptureDevices); |
| struct Request; |