Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1647)

Unified Diff: content/renderer/media/media_stream_dispatcher.cc

Issue 2763743002: Android: not to pause screen capture when Chrome is put to background (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/media_stream_dispatcher.cc
diff --git a/content/renderer/media/media_stream_dispatcher.cc b/content/renderer/media/media_stream_dispatcher.cc
index 2ce2c83aa7c6caa362be84862407bac86d792100..081fd9ed96c1dda2cefdd09fea27839cf6446752 100644
--- a/content/renderer/media/media_stream_dispatcher.cc
+++ b/content/renderer/media/media_stream_dispatcher.cc
@@ -175,6 +175,16 @@ void MediaStreamDispatcher::OnStreamStarted(const std::string& label) {
Send(new MediaStreamHostMsg_StreamStarted(label));
}
+void MediaStreamDispatcher::GetVideoCaptureDevices(
+ StreamDeviceInfoArray& video_array) {
tommi (sloooow) - chröme 2017/03/21 09:21:17 see comment in header for style issue
braveyao 2017/03/22 00:45:32 Done.
+ for (const auto& stream_it : label_stream_map_) {
+ for (const auto& device_it : stream_it.second.video_array) {
tommi (sloooow) - chröme 2017/03/21 09:21:17 |device_it| is misleading, since the variable is n
braveyao 2017/03/22 00:45:32 Done.
+ if (device_it.device.type == MEDIA_DEVICE_VIDEO_CAPTURE)
+ video_array.push_back(device_it);
+ }
+ }
+}
+
void MediaStreamDispatcher::OnDestruct() {
// Do not self-destruct. UserMediaClientImpl owns |this|.
}

Powered by Google App Engine
This is Rietveld 408576698