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

Issue 2801853005: Create a private API for controlling WebRTC's AEC3 (Closed)

Created:
3 years, 8 months ago by hlundin-chromium
Modified:
3 years, 8 months ago
CC:
arv+watch_chromium.org, asvitkine+watch_chromium.org, avayvod+watch_chromium.org, chfremer+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, imcheng+watch_chromium.org, isheriff+watch_chromium.org, jam, jasonroberts+watch_google.com, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, mnilsson, nasko+codewatch_chromium.org, posciak+watch_chromium.org, xjz+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Create a private API for controlling WebRTC's AEC3 This change opens up a new API to the Hangouts service extension. The purpose of the API is to let the application control which version of echo canceler will be used in WebRTC -- the old AEC2 or the new AEC3. The CL contains the API in Hangouts service extension, the corresponding API in webrtc_audio_private_api, and the required wiring to reach the MediaStreamAudioProcessor where WebRTC's AudioProcessing module lives. BUG=708475 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2801853005 Cr-Commit-Position: refs/heads/master@{#463971} Committed: https://chromium.googlesource.com/chromium/src/+/95829c0d06a5bcfb677bfd1d65799a43ddae4f46

Patch Set 1 #

Total comments: 29

Patch Set 2 : Changes after grunell's first round of comments #

Patch Set 3 : Remember the override in RPHI #

Total comments: 16

Patch Set 4 : After grunell's second round of comments #

Total comments: 29

Patch Set 5 : After grunell and devlin #

Total comments: 2

Patch Set 6 : Initialize has_echo_cancellation_ #

Total comments: 2

Patch Set 7 : Fix IDL comment #

Patch Set 8 : Rebase and rename a constraint #

Patch Set 9 : Fixing typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -3 lines) Patch
M chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h View 1 2 3 4 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc View 1 2 3 4 3 chunks +66 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/hangout_services/manifest.json View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/hangout_services/thunk.js View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/webrtc_audio_private.idl View 1 2 3 4 5 6 2 chunks +13 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M content/common/media/aec_dump_messages.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/browser/render_process_host.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/test/mock_render_process_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/mock_render_process_host.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/media/aec_dump_message_filter.h View 1 2 3 4 4 chunks +10 lines, -0 lines 0 comments Download
M content/renderer/media/aec_dump_message_filter.cc View 1 2 3 4 4 chunks +21 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_audio_processor.h View 1 3 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_audio_processor.cc View 1 2 3 4 5 4 chunks +23 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_audio_processor_unittest.cc View 1 2 3 4 5 6 7 2 chunks +57 lines, -0 lines 0 comments Download
M content/renderer/media/mock_constraint_factory.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/mock_constraint_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 53 (25 generated)
hlundin-chromium
Reviewers, PTAL. grunell: General sanity of all changes. chrome/browser/resources/hangout_services/thunk.js tommi: content/renderer/media/* asvitkine: content/browser/renderer_host/render_process_host_impl.* extensions/browser/extension_function_histogram_value.h tools/metrics/histograms/histograms.xml ...
3 years, 8 months ago (2017-04-06 19:09:08 UTC) #5
hlundin-chromium
Actually adding cpu@ and meacer@.
3 years, 8 months ago (2017-04-06 19:20:56 UTC) #7
hlundin-chromium
Adding jochen@ and mkwst@ Removing cpu@ and meacer@ grunell: General sanity of all changes. chrome/browser/resources/hangout_services/thunk.js ...
3 years, 8 months ago (2017-04-06 19:40:32 UTC) #10
hlundin-chromium
... aaaand changing to guidou@ for content/renderer/media/*
3 years, 8 months ago (2017-04-06 19:49:11 UTC) #12
jochen (gone - plz use gerrit)
rdevlin.cronin should review this for extensions
3 years, 8 months ago (2017-04-07 06:59:51 UTC) #14
Mike West
On 2017/04/07 at 06:59:51, jochen wrote: > rdevlin.cronin should review this for extensions Likewise, the ...
3 years, 8 months ago (2017-04-07 16:01:55 UTC) #15
hlundin-chromium
cc: mnilsson
3 years, 8 months ago (2017-04-10 06:40:47 UTC) #16
Henrik Grunell
First round. Also update the version number in the extension manifest file. https://codereview.chromium.org/2801853005/diff/20001/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc File chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc ...
3 years, 8 months ago (2017-04-10 08:13:29 UTC) #17
hlundin-chromium
Thanks for the comments! Please, see new patch set. https://codereview.chromium.org/2801853005/diff/20001/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc File chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc (right): https://codereview.chromium.org/2801853005/diff/20001/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc#newcode554 chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc:554: ...
3 years, 8 months ago (2017-04-10 10:10:17 UTC) #18
Henrik Grunell
Aaaaand the version in the manifest file. :) https://codereview.chromium.org/2801853005/diff/20001/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc File chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc (right): https://codereview.chromium.org/2801853005/diff/20001/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc#newcode565 chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc:565: host->SetEchoCanceller3(*params->audio_experiments.enable_aec3); ...
3 years, 8 months ago (2017-04-10 12:33:47 UTC) #19
hlundin-chromium
Thanks! See new patch set. https://codereview.chromium.org/2801853005/diff/60001/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc File chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc (right): https://codereview.chromium.org/2801853005/diff/60001/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc#newcode564 chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc:564: SendResponse(true); On 2017/04/10 12:33:47, ...
3 years, 8 months ago (2017-04-10 13:03:18 UTC) #20
Henrik Grunell
lgtm with nits fixed. https://codereview.chromium.org/2801853005/diff/60001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/2801853005/diff/60001/content/browser/renderer_host/render_process_host_impl.cc#newcode2350 content/browser/renderer_host/render_process_host_impl.cc:2350: // TODO(hlundin) Change name for ...
3 years, 8 months ago (2017-04-10 17:08:40 UTC) #21
Guido Urdaneta
content/renderer/media lgtm
3 years, 8 months ago (2017-04-10 17:14:19 UTC) #22
Henrik Grunell
One more thing I realized. https://codereview.chromium.org/2801853005/diff/80001/content/browser/renderer_host/render_process_host_impl.h File content/browser/renderer_host/render_process_host_impl.h (right): https://codereview.chromium.org/2801853005/diff/80001/content/browser/renderer_host/render_process_host_impl.h#newcode574 content/browser/renderer_host/render_process_host_impl.h:574: base::Optional<bool> override_aec3_; Actually, I ...
3 years, 8 months ago (2017-04-10 18:08:14 UTC) #23
mnilsson
https://codereview.chromium.org/2801853005/diff/80001/chrome/browser/resources/hangout_services/thunk.js File chrome/browser/resources/hangout_services/thunk.js (right): https://codereview.chromium.org/2801853005/diff/80001/chrome/browser/resources/hangout_services/thunk.js#newcode208 chrome/browser/resources/hangout_services/thunk.js:208: requestInfo, origin, experiments); Why not embed the doSendResponse as ...
3 years, 8 months ago (2017-04-10 19:15:45 UTC) #25
Devlin
https://codereview.chromium.org/2801853005/diff/80001/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc File chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc (right): https://codereview.chromium.org/2801853005/diff/80001/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc#newcode228 chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc:228: if (request.guest_process_id.get()) nit: no need for .get() (same for ...
3 years, 8 months ago (2017-04-10 21:34:25 UTC) #26
Henrik Grunell
https://codereview.chromium.org/2801853005/diff/80001/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc File chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc (right): https://codereview.chromium.org/2801853005/diff/80001/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc#newcode247 chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc:247: if (!contents) { On 2017/04/10 21:34:25, Devlin wrote: > ...
3 years, 8 months ago (2017-04-11 06:49:39 UTC) #27
hlundin-chromium
Fixed comments in new patch set. PTAL. https://codereview.chromium.org/2801853005/diff/80001/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc File chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc (right): https://codereview.chromium.org/2801853005/diff/80001/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc#newcode228 chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc:228: if (request.guest_process_id.get()) ...
3 years, 8 months ago (2017-04-11 09:19:37 UTC) #28
Henrik Grunell
Fix the comment, then still lgtm. https://codereview.chromium.org/2801853005/diff/100001/content/renderer/media/media_stream_audio_processor.cc File content/renderer/media/media_stream_audio_processor.cc (right): https://codereview.chromium.org/2801853005/diff/100001/content/renderer/media/media_stream_audio_processor.cc#newcode495 content/renderer/media/media_stream_audio_processor.cc:495: if (!has_echo_cancellation_) |has_echo_cancellation_| ...
3 years, 8 months ago (2017-04-11 10:12:43 UTC) #29
hlundin-chromium
https://codereview.chromium.org/2801853005/diff/100001/content/renderer/media/media_stream_audio_processor.cc File content/renderer/media/media_stream_audio_processor.cc (right): https://codereview.chromium.org/2801853005/diff/100001/content/renderer/media/media_stream_audio_processor.cc#newcode495 content/renderer/media/media_stream_audio_processor.cc:495: if (!has_echo_cancellation_) On 2017/04/11 10:12:43, Henrik Grunell wrote: > ...
3 years, 8 months ago (2017-04-11 12:40:12 UTC) #30
Alexei Svitkine (slow)
histograms.xml lgtm assuming this lg to other reviewers
3 years, 8 months ago (2017-04-11 14:54:38 UTC) #31
hlundin-chromium
On 2017/04/11 14:54:38, Alexei Svitkine (very slow) wrote: > histograms.xml lgtm assuming this lg to ...
3 years, 8 months ago (2017-04-11 15:02:44 UTC) #32
Devlin
lgtm % nits https://codereview.chromium.org/2801853005/diff/80001/chrome/common/extensions/api/webrtc_audio_private.idl File chrome/common/extensions/api/webrtc_audio_private.idl (right): https://codereview.chromium.org/2801853005/diff/80001/chrome/common/extensions/api/webrtc_audio_private.idl#newcode85 chrome/common/extensions/api/webrtc_audio_private.idl:85: static void setAudioExperiments(RequestInfo request, On 2017/04/11 ...
3 years, 8 months ago (2017-04-11 20:49:37 UTC) #33
hlundin-chromium
Thanks! Fixed the comment in the new patch set. https://codereview.chromium.org/2801853005/diff/80001/chrome/common/extensions/api/webrtc_audio_private.idl File chrome/common/extensions/api/webrtc_audio_private.idl (right): https://codereview.chromium.org/2801853005/diff/80001/chrome/common/extensions/api/webrtc_audio_private.idl#newcode85 chrome/common/extensions/api/webrtc_audio_private.idl:85: ...
3 years, 8 months ago (2017-04-12 05:54:17 UTC) #34
Mike West
IPC LGTM.
3 years, 8 months ago (2017-04-12 06:24:53 UTC) #39
jochen (gone - plz use gerrit)
lgtm
3 years, 8 months ago (2017-04-12 07:35:32 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2801853005/180001
3 years, 8 months ago (2017-04-12 08:46:48 UTC) #50
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 09:09:21 UTC) #53
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/95829c0d06a5bcfb677bfd1d6579...

Powered by Google App Engine
This is Rietveld 408576698