|
Convert some audio code to OnceCallback.
Since PostTaskAndReply and friends are Onceified now, we can convert some code and save some refcouting. This also serves as documentation on which callbacks are only called once, which is nice.
Also took care of lint issues.
There are input code and also some general device management/permissions code which needs converting, but I feel this CL is big enough.
BUG= 714018
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Review-Url: https://codereview.chromium.org/2869733005
Cr-Commit-Position: refs/heads/master@{#472059}
Committed: https://chromium.googlesource.com/chromium/src/+/fd2012282b535b4fda0b1d581e0674f295dcd625
Total comments: 8
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+342 lines, -311 lines) |
Patch |
 |
M |
content/browser/media/media_devices_permission_checker.h
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/media_devices_permission_checker.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/audio_input_device_manager.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/audio_input_device_manager.cc
|
View
|
|
2 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/audio_output_authorization_handler.h
|
View
|
1
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/audio_output_authorization_handler.cc
|
View
|
1
2
3
4
5
|
8 chunks |
+31 lines, -26 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/audio_output_authorization_handler_unittest.cc
|
View
|
1
2
3
4
5
|
11 chunks |
+34 lines, -26 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/audio_output_delegate_impl.cc
|
View
|
1
|
3 chunks |
+11 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/audio_renderer_host.h
|
View
|
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/audio_renderer_host.cc
|
View
|
|
3 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/audio_renderer_host_unittest.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+10 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_manager.cc
|
View
|
1
2
3
4
5
|
9 chunks |
+32 lines, -32 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_ui_proxy.h
|
View
|
|
5 chunks |
+15 lines, -16 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_ui_proxy.cc
|
View
|
1
2
|
6 chunks |
+32 lines, -41 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_ui_proxy_unittest.cc
|
View
|
|
8 chunks |
+17 lines, -16 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/render_frame_audio_output_stream_factory.cc
|
View
|
1
|
3 chunks |
+16 lines, -15 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/render_frame_audio_output_stream_factory_unittest.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+20 lines, -19 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/renderer_audio_output_stream_factory_context_impl_unittest.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+8 lines, -9 lines |
0 comments
|
Download
|
 |
M |
media/audio/audio_output_controller.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/audio/audio_output_controller.cc
|
View
|
|
4 chunks |
+24 lines, -20 lines |
0 comments
|
Download
|
 |
M |
media/audio/audio_output_controller_unittest.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/audio/audio_system.h
|
View
|
|
2 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
M |
media/audio/audio_system_impl.cc
|
View
|
|
8 chunks |
+23 lines, -19 lines |
0 comments
|
Download
|
 |
M |
media/mojo/services/mojo_audio_output_stream_provider.h
|
View
|
1
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/mojo/services/mojo_audio_output_stream_provider.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+14 lines, -4 lines |
0 comments
|
Download
|
Total messages: 43 (26 generated)
|