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..6312358f53fe1cd28ab1b0792b576a8c9b6c7d50 100644 |
--- a/content/renderer/media/media_stream_dispatcher.h |
+++ b/content/renderer/media/media_stream_dispatcher.h |
@@ -75,6 +75,11 @@ 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. This is the set |
+ // of devices that should be suspended when the content frame is no longer |
+ // being shown to the user. |
+ void GetNonScreenCaptureDevices(StreamDeviceInfoArray* video_array); |
tommi (sloooow) - chröme
2017/03/29 07:25:10
I would still prefer to have this function return
braveyao
2017/03/29 19:37:28
Done.
|
+ |
// 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 +95,8 @@ 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, |
+ GetNonScreenCaptureDevices); |
struct Request; |