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

Issue 1246283003: Split out audio debug recording from RenderProcessHostImpl.

Created:
5 years, 5 months ago by Anand Mistry (off Chromium)
Modified:
4 years, 5 months ago
CC:
Aaron Boodman, abarth-chromium, avayvod+watch_chromium.org, ben+mojo_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, hclam+watch_chromium.org, hguihot+watch_chromium.org, hubbe+watch_chromium.org, imcheng+watch_chromium.org, jam, jasonroberts+watch_google.com, mcasas+watch_chromium.org, miu+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, wjia+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This removes almost all code related to webrtc's audio debug recording from RenderProcessHostImpl. Splitting the code out makes RenderProcessHostImpl smaller and more readable. At the same time, switch the IPC code to use Mojo instead of message filters at each end. Mojo presents a function-call-style, instead of handling and routing individual messages. BUG=542828

Patch Set 1 #

Patch Set 2 : Cleanup. #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase and clean up. #

Patch Set 5 : Fix content_unittests #

Patch Set 6 : Try again to fix test. #

Patch Set 7 : Rebase and lint fixes #

Patch Set 8 : Rebase. #

Total comments: 32

Patch Set 9 : Address some comments. #

Patch Set 10 : Another test. #

Patch Set 11 : Linter fix. #

Patch Set 12 : Rebase and move test build rule. #

Total comments: 4

Patch Set 13 : Address comments and hopefully fix build. #

Patch Set 14 : Fix component build. #

Patch Set 15 : Rebase #

Total comments: 14

Patch Set 16 : Rebase. #

Patch Set 17 : Address review comments. #

Patch Set 18 : Rebase. #

Patch Set 19 : Fix compile. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1339 lines, -323 lines) Patch
A content/browser/media/audio_debug_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +74 lines, -0 lines 0 comments Download
A content/browser/media/audio_debug_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +90 lines, -0 lines 0 comments Download
A content/browser/media/audio_debug_recording_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +88 lines, -0 lines 0 comments Download
A content/browser/media/audio_debug_recording_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +214 lines, -0 lines 0 comments Download
A content/browser/media/audio_debug_recording_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +221 lines, -0 lines 0 comments Download
M content/browser/media/webrtc_internals.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +4 lines, -11 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_renderer_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +5 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -9 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 14 chunks +12 lines, -111 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M content/common/media/aec_dump_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +0 lines, -18 lines 0 comments Download
A content/common/media/audio_debug_recording.mojom View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -0 lines 0 comments Download
M content/content_common_mojo_bindings.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/media/aec_dump_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +0 lines, -37 lines 0 comments Download
M content/renderer/media/aec_dump_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +0 lines, -104 lines 0 comments Download
A content/renderer/media/audio_debug_recorder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +86 lines, -0 lines 0 comments Download
A content/renderer/media/audio_debug_recorder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +151 lines, -0 lines 0 comments Download
A content/renderer/media/audio_debug_recorder_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +247 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_audio_processor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +8 lines, -8 lines 0 comments Download
M content/renderer/media/media_stream_audio_processor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +11 lines, -12 lines 0 comments Download
M content/renderer/media/media_stream_audio_processor_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +8 lines, -6 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +8 lines, -3 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -0 lines 0 comments Download
A content/test/fake_service_registry.h View 1 2 3 4 5 6 7 8 9 1 chunk +43 lines, -0 lines 0 comments Download
A content/test/fake_service_registry.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (4 generated)
Anand Mistry (off Chromium)
This removes almost all code related to webrtc's audio debug recording from RenderProcessHostImpl. Splitting the ...
5 years, 2 months ago (2015-10-13 03:12:38 UTC) #1
Anand Mistry (off Chromium)
{xhwang,grunell}@chromium.org: For all things media. rockot: For Mojoyness. Hey all. I brought this up a ...
5 years, 2 months ago (2015-10-13 06:55:58 UTC) #3
Henrik Grunell
On 2015/10/13 06:55:58, Anand Mistry wrote: > mailto:{xhwang,grunell}@chromium.org: For all things media. > rockot: For ...
5 years, 2 months ago (2015-10-13 08:16:14 UTC) #4
Anand Mistry (off Chromium)
On 2015/10/13 08:16:14, Henrik Grunell wrote: > On 2015/10/13 06:55:58, Anand Mistry wrote: > > ...
5 years, 2 months ago (2015-10-13 08:42:55 UTC) #5
Henrik Grunell
On 2015/10/13 08:42:55, Anand Mistry wrote: > On 2015/10/13 08:16:14, Henrik Grunell wrote: > > ...
5 years, 2 months ago (2015-10-14 09:01:16 UTC) #6
Anand Mistry (off Chromium)
On 2015/10/14 09:01:16, Henrik Grunell wrote: > On 2015/10/13 08:42:55, Anand Mistry wrote: > > ...
5 years, 2 months ago (2015-10-15 03:59:42 UTC) #7
Henrik Grunell
I took a first shot at this. I haven't looked at the mojo details, defer ...
5 years, 2 months ago (2015-10-15 12:17:03 UTC) #8
Henrik Grunell
Oh, and unit tests would be extremely appreciated. :D (At least it would be great ...
5 years, 2 months ago (2015-10-15 12:20:16 UTC) #9
Anand Mistry (off Chromium)
I added a couple of unit tests. I _didn't_ add a test for AudioDebugController because ...
5 years, 2 months ago (2015-10-21 03:58:24 UTC) #10
Henrik Grunell
Thanks for adding the tests. https://codereview.chromium.org/1246283003/diff/190034/content/browser/media/audio_debug_recording_impl.cc File content/browser/media/audio_debug_recording_impl.cc (right): https://codereview.chromium.org/1246283003/diff/190034/content/browser/media/audio_debug_recording_impl.cc#newcode163 content/browser/media/audio_debug_recording_impl.cc:163: if (audio_input_renderer_host_) { Inject ...
5 years, 2 months ago (2015-10-21 14:08:59 UTC) #11
Anand Mistry (off Chromium)
I'm looking into the windows build failures. Please continue reviewing while I try to fix ...
5 years, 1 month ago (2015-10-26 06:17:49 UTC) #12
Henrik Grunell
On 2015/10/26 06:17:49, Anand Mistry wrote: > I'm looking into the windows build failures. Please ...
5 years, 1 month ago (2015-10-28 14:35:55 UTC) #13
Anand Mistry (off Chromium)
Windows build is fixed :D Yes, I've tested it manually, and it appears to work.
5 years, 1 month ago (2015-10-30 00:35:07 UTC) #14
Henrik Grunell
https://codereview.chromium.org/1246283003/diff/270001/content/browser/renderer_host/media/audio_input_renderer_host.h File content/browser/renderer_host/media/audio_input_renderer_host.h (right): https://codereview.chromium.org/1246283003/diff/270001/content/browser/renderer_host/media/audio_input_renderer_host.h#newcode112 content/browser/renderer_host/media/audio_input_renderer_host.h:112: virtual void EnableDebugRecording(const base::FilePath& file); Why this change?
5 years, 1 month ago (2015-10-30 13:20:43 UTC) #15
Anand Mistry (off Chromium)
https://codereview.chromium.org/1246283003/diff/270001/content/browser/renderer_host/media/audio_input_renderer_host.h File content/browser/renderer_host/media/audio_input_renderer_host.h (right): https://codereview.chromium.org/1246283003/diff/270001/content/browser/renderer_host/media/audio_input_renderer_host.h#newcode112 content/browser/renderer_host/media/audio_input_renderer_host.h:112: virtual void EnableDebugRecording(const base::FilePath& file); On 2015/10/30 13:20:43, Henrik ...
5 years, 1 month ago (2015-11-02 23:46:46 UTC) #16
Henrik Grunell
lgtm
5 years, 1 month ago (2015-11-03 07:33:27 UTC) #17
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/1246283003/diff/270001/content/browser/media/audio_debug_controller.h File content/browser/media/audio_debug_controller.h (right): https://codereview.chromium.org/1246283003/diff/270001/content/browser/media/audio_debug_controller.h#newcode60 content/browser/media/audio_debug_controller.h:60: std::set<AudioDebugRecordingImpl*> registered_impls_; Just a thought: could you use ...
5 years, 1 month ago (2015-11-09 19:05:44 UTC) #18
Anand Mistry (off Chromium)
xhwang: Ping! For content/*/media OWNERS. pfeldman@chromium.org: Please review changes for non-media content OWNERS https://codereview.chromium.org/1246283003/diff/270001/content/browser/media/audio_debug_controller.h File ...
5 years, 1 month ago (2015-11-16 05:02:58 UTC) #20
xhwang
Sorry for the delay. However I am not familiar with webrtc code. Please replace me ...
5 years, 1 month ago (2015-11-16 19:56:40 UTC) #21
Henrik Grunell
Will this CL be landed or can it be closed?
4 years, 6 months ago (2016-06-08 12:11:06 UTC) #22
Anand Mistry (off Chromium)
On 2016/06/08 12:11:06, Henrik Grunell wrote: > Will this CL be landed or can it ...
4 years, 6 months ago (2016-06-21 01:02:04 UTC) #24
Henrik Grunell
On 2016/06/21 01:02:04, Anand Mistry wrote: > On 2016/06/08 12:11:06, Henrik Grunell wrote: > > ...
4 years, 6 months ago (2016-06-23 14:00:19 UTC) #25
Anand Mistry (off Chromium)
4 years, 5 months ago (2016-07-21 00:59:06 UTC) #26
On 2016/06/23 14:00:19, Henrik Grunell (OOO to Aug 15) wrote:
> On 2016/06/21 01:02:04, Anand Mistry wrote:
> > On 2016/06/08 12:11:06, Henrik Grunell wrote:
> > > Will this CL be landed or can it be closed?
> > 
> > Oops. Sorry I dropped this on the floor. I would like to submit it, but it
> needs
> > a media owner to approve. Also, I need to sync/rebase.
> 
> After rebasing, tommi@ should be a suitable media reviewer.

Unfortunately, I'm leaving google and won't be landing this. I've been busy on
other things and this just got left behind. Sorry.

Powered by Google App Engine
This is Rietveld 408576698