|
Do not pass the string device_id via IPC message to create an audio input stream.
Using a string device_id via IPC message from the render client to open the device is not very safe since IPC message is not trusted. Instead, we should just pass an int (session_id) to the browser, and we do the lookup on AudioInputDeviceManager in the browser to re-map the session_id to the device_id.
BUG= 179597, 216952
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189342
Total comments: 18
Total comments: 6
Total comments: 9
Total comments: 8
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+217 lines, -722 lines) |
Patch |
|
M |
content/browser/renderer_host/media/audio_input_device_manager.h
|
View
|
1
2
3
4
5
|
5 chunks |
+18 lines, -21 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/media/audio_input_device_manager.cc
|
View
|
1
2
3
4
5
|
7 chunks |
+49 lines, -81 lines |
0 comments
|
Download
|
|
D |
content/browser/renderer_host/media/audio_input_device_manager_event_handler.h
|
View
|
|
1 chunk |
+0 lines, -33 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/media/audio_input_device_manager_unittest.cc
|
View
|
1
2
3
4
5
|
9 chunks |
+24 lines, -210 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/media/audio_input_renderer_host.h
|
View
|
1
2
3
4
5
|
8 chunks |
+7 lines, -49 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/media/audio_input_renderer_host.cc
|
View
|
1
2
3
4
5
|
7 chunks |
+18 lines, -79 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/media/media_stream_manager.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+12 lines, -1 line |
0 comments
|
Download
|
|
M |
content/common/media/audio_messages.h
|
View
|
1
2
|
4 chunks |
+1 line, -13 lines |
0 comments
|
Download
|
|
M |
content/content_browser.gypi
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
content/renderer/media/audio_input_message_filter.h
|
View
|
1
2
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/audio_input_message_filter.cc
|
View
|
1
2
|
4 chunks |
+3 lines, -20 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/media_stream_dependency_factory.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/media_stream_dependency_factory.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+22 lines, -11 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/media_stream_impl.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/webaudio_capturer_source.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/webaudio_capturer_source.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/renderer/media/webrtc_audio_capturer.h
|
View
|
1
2
3
4
5
|
4 chunks |
+10 lines, -18 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/webrtc_audio_capturer.cc
|
View
|
1
2
3
4
|
8 chunks |
+9 lines, -20 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/webrtc_audio_device_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
content/renderer/pepper/pepper_platform_audio_input_impl.h
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
content/renderer/pepper/pepper_platform_audio_input_impl.cc
|
View
|
1
2
3
4
|
3 chunks |
+9 lines, -39 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_input_device.h
|
View
|
1
2
|
6 chunks |
+2 lines, -18 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_input_device.cc
|
View
|
1
2
|
6 chunks |
+10 lines, -56 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_input_ipc.h
|
View
|
1
2
|
2 chunks |
+5 lines, -15 lines |
0 comments
|
Download
|
|
M |
media/base/audio_capturer_source.h
|
View
|
1
2
|
2 chunks |
+5 lines, -19 lines |
0 comments
|
Download
|
Total messages: 34 (0 generated)
|