|
support video device enumeration from renderer process.
1. renderer process sends EnumerateDevices message to browser process, and expect DevicesEnumerated or DeivcesEnumerationFailed message.
2. renderer process sends OpenDevice message to browser process, and expect DeviceOpened or DeviceOpenFailed message.
3. after renderer process gets DeviceOpened message, it can use |label| to get the session_id which is the identifier to Start/Stop video capture.
4. renderer process re-uses StopGeneratedStream for CloseOpenedDevice.
5. simplify interface between MediaStreamManager and MediaStreamDeviceSettings by removing GetDevices function call.
The test example code is at http://codereview.chromium.org/8511074/
BUG= 41777
TEST=trybots
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=119139
Total comments: 8
Total comments: 11
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+690 lines, -79 lines) |
Patch |
 |
M |
content/browser/renderer_host/media/media_stream_device_settings.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_device_settings.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_dispatcher_host.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+17 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_dispatcher_host.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+103 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_manager.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+34 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_manager.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
7 chunks |
+161 lines, -50 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_requester.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_settings_requester.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/common/media/media_stream_messages.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/media_stream_dispatcher.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+27 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/media/media_stream_dispatcher.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+113 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/media_stream_dispatcher_eventhandler.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/media_stream_dispatcher_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+111 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/media_stream_impl.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/media_stream_impl.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/media_stream_impl_stub.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_view_impl.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|