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

Issue 865483005: Creating the audio_modem component (Closed)

Created:
5 years, 10 months ago by Charlie
Modified:
5 years, 10 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, cbentzel+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pulls the audio handling out of copresence and into its own component, with no functional changes. This is part of a larger plan to make audio token exchange available directly, via a private API. rkc@ and xiyuan@ for copresence review. caitkp@ for component review. thestig@ for chrome/browser/DEPS review. jam@, avi@ for content/ DEPS review. dalecurtis@ for media/ DEPS review. andrew@webrtc for WavWriter DEPS review. BUG=455823 Committed: https://crrev.com/a9408e1449c5f950c1923ea90d75d7b00eccd753 Cr-Commit-Position: refs/heads/master@{#316639}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Renaming component to audio_modem #

Patch Set 4 : Small fixes #

Total comments: 2

Patch Set 5 : Merging to head #

Patch Set 6 : Fixing chrome/browser/DEPS #

Patch Set 7 : Merging again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+734 lines, -2703 lines) Patch
M chrome/browser/DEPS View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/copresence/chrome_whispernet_client.h View 1 2 3 4 3 chunks +21 lines, -22 lines 0 comments Download
M chrome/browser/copresence/chrome_whispernet_client.cc View 1 2 3 4 6 chunks +45 lines, -44 lines 0 comments Download
M chrome/browser/copresence/chrome_whispernet_client_browsertest.cc View 1 2 3 4 6 chunks +17 lines, -14 lines 0 comments Download
A chrome/browser/copresence/chrome_whispernet_config.h View 1 chunk +60 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/copresence/copresence_api.h View 1 2 3 4 5 6 4 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/copresence/copresence_api.cc View 1 2 3 4 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/copresence_private/copresence_private_api.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/copresence_private/copresence_private_api.cc View 1 2 3 4 4 chunks +5 lines, -6 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A components/audio_modem.gypi View 1 2 1 chunk +51 lines, -0 lines 0 comments Download
A components/audio_modem/BUILD.gn View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A components/audio_modem/DEPS View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
A + components/audio_modem/OWNERS View 1 2 1 chunk +1 line, -1 line 0 comments Download
A components/audio_modem/audio_modem_switches.h View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A components/audio_modem/audio_modem_switches.cc View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A + components/audio_modem/audio_player.h View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
A + components/audio_modem/audio_player_impl.h View 1 2 4 chunks +7 lines, -7 lines 0 comments Download
A + components/audio_modem/audio_player_impl.cc View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
A + components/audio_modem/audio_player_unittest.cc View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
A + components/audio_modem/audio_recorder.h View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
A + components/audio_modem/audio_recorder_impl.h View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
A + components/audio_modem/audio_recorder_impl.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
A + components/audio_modem/audio_recorder_unittest.cc View 1 2 4 chunks +11 lines, -8 lines 0 comments Download
A + components/audio_modem/constants.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
A + components/audio_modem/modem_impl.h View 1 2 3 4 chunks +24 lines, -28 lines 0 comments Download
A + components/audio_modem/modem_impl.cc View 1 2 3 13 chunks +62 lines, -59 lines 0 comments Download
A + components/audio_modem/modem_unittest.cc View 1 2 3 5 chunks +34 lines, -34 lines 0 comments Download
A components/audio_modem/public/audio_modem_types.h View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
A + components/audio_modem/public/modem.h View 1 2 3 2 chunks +13 lines, -11 lines 0 comments Download
A + components/audio_modem/public/whispernet_client.h View 1 2 3 3 chunks +22 lines, -17 lines 0 comments Download
A + components/audio_modem/test/random_samples.h View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
A + components/audio_modem/test/random_samples.cc View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
A + components/audio_modem/test/stub_whispernet_client.h View 1 2 4 chunks +7 lines, -9 lines 0 comments Download
A + components/audio_modem/test/stub_whispernet_client.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M components/components.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download
M components/copresence.gypi View 1 2 4 chunks +1 line, -18 lines 0 comments Download
M components/copresence/BUILD.gn View 1 2 3 chunks +1 line, -12 lines 0 comments Download
M components/copresence/DEPS View 1 2 3 4 1 chunk +3 lines, -6 lines 0 comments Download
D components/copresence/copresence_constants.cc View 1 chunk +0 lines, -16 lines 0 comments Download
M components/copresence/copresence_manager_impl.h View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M components/copresence/copresence_manager_impl.cc View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M components/copresence/copresence_state_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/copresence/copresence_switches.h View 1 chunk +0 lines, -3 lines 0 comments Download
M components/copresence/copresence_switches.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M components/copresence/handlers/audio/audio_directive_handler.h View 1 2 3 chunks +5 lines, -7 lines 0 comments Download
M components/copresence/handlers/audio/audio_directive_handler_impl.h View 1 2 3 chunks +8 lines, -6 lines 0 comments Download
M components/copresence/handlers/audio/audio_directive_handler_impl.cc View 1 2 6 chunks +35 lines, -31 lines 0 comments Download
M components/copresence/handlers/audio/audio_directive_handler_unittest.cc View 1 2 5 chunks +18 lines, -14 lines 0 comments Download
M components/copresence/handlers/directive_handler.h View 1 2 3 4 3 chunks +9 lines, -9 lines 0 comments Download
M components/copresence/handlers/directive_handler_impl.h View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M components/copresence/handlers/directive_handler_impl.cc View 1 2 2 chunks +7 lines, -5 lines 0 comments Download
M components/copresence/handlers/directive_handler_unittest.cc View 1 2 5 chunks +11 lines, -8 lines 0 comments Download
D components/copresence/mediums/audio/audio_manager.h View 1 chunk +0 lines, -43 lines 0 comments Download
D components/copresence/mediums/audio/audio_manager_impl.h View 1 chunk +0 lines, -131 lines 0 comments Download
D components/copresence/mediums/audio/audio_manager_impl.cc View 1 chunk +0 lines, -335 lines 0 comments Download
D components/copresence/mediums/audio/audio_manager_unittest.cc View 1 chunk +0 lines, -153 lines 0 comments Download
D components/copresence/mediums/audio/audio_player.h View 1 chunk +0 lines, -43 lines 0 comments Download
D components/copresence/mediums/audio/audio_player_impl.h View 1 chunk +0 lines, -88 lines 0 comments Download
D components/copresence/mediums/audio/audio_player_impl.cc View 1 chunk +0 lines, -179 lines 0 comments Download
D components/copresence/mediums/audio/audio_player_unittest.cc View 1 chunk +0 lines, -211 lines 0 comments Download
D components/copresence/mediums/audio/audio_recorder.h View 1 chunk +0 lines, -41 lines 0 comments Download
D components/copresence/mediums/audio/audio_recorder_impl.h View 1 chunk +0 lines, -115 lines 0 comments Download
D components/copresence/mediums/audio/audio_recorder_impl.cc View 1 chunk +0 lines, -255 lines 0 comments Download
D components/copresence/mediums/audio/audio_recorder_unittest.cc View 1 chunk +0 lines, -255 lines 0 comments Download
M components/copresence/public/copresence_constants.h View 1 chunk +0 lines, -104 lines 0 comments Download
M components/copresence/public/copresence_delegate.h View 1 2 3 4 2 chunks +6 lines, -3 lines 0 comments Download
D components/copresence/public/whispernet_client.h View 1 chunk +0 lines, -60 lines 0 comments Download
M components/copresence/rpc/rpc_handler.h View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M components/copresence/rpc/rpc_handler.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M components/copresence/rpc/rpc_handler_unittest.cc View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
D components/copresence/test/audio_test_support.h View 1 chunk +0 lines, -29 lines 0 comments Download
D components/copresence/test/audio_test_support.cc View 1 chunk +0 lines, -33 lines 0 comments Download
M components/copresence/test/fake_directive_handler.h View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M components/copresence/test/fake_directive_handler.cc View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
D components/copresence/test/stub_whispernet_client.h View 1 chunk +0 lines, -62 lines 0 comments Download
D components/copresence/test/stub_whispernet_client.cc View 1 chunk +0 lines, -59 lines 0 comments Download
M components/copresence/tokens.h View 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 56 (14 generated)
Charlie
Happy Weekend!
5 years, 10 months ago (2015-02-07 01:25:48 UTC) #3
rkc
Can we call the component AudioModem or something that indicates audio? This component 'uses' whispernet ...
5 years, 10 months ago (2015-02-07 01:44:36 UTC) #4
Nico
why is the bug private? why will the api be private?
5 years, 10 months ago (2015-02-07 02:00:15 UTC) #5
chromium-reviews
It depends on what you mean by "Whispernet". If whispernet is a net(work), the audio ...
5 years, 10 months ago (2015-02-07 02:00:27 UTC) #6
chromium-reviews
For the long answer, ask abunner. The short answer is that this token exchange technology ...
5 years, 10 months ago (2015-02-07 02:10:30 UTC) #7
rkc
On 2015/02/07 02:00:27, chromium-reviews wrote: > It depends on what you mean by "Whispernet". If ...
5 years, 10 months ago (2015-02-07 02:10:55 UTC) #8
chromium-reviews
Ok, I'll ask the Android side what they think. On Fri, Feb 6, 2015, 6:10 ...
5 years, 10 months ago (2015-02-07 02:12:49 UTC) #9
Nico
Another question: Are any clients of copresence left after this? Can we kill that component?
5 years, 10 months ago (2015-02-07 02:47:32 UTC) #10
chromium-reviews
There are still a few clients of the copresence API, which uses the copresence component. ...
5 years, 10 months ago (2015-02-07 04:42:33 UTC) #11
chromium-reviews
@rkc: how about calling the component whisper_modem? On Fri, Feb 6, 2015, 8:42 PM Charlie ...
5 years, 10 months ago (2015-02-07 17:11:21 UTC) #12
rkc
I would rather that we be consistent with Android. Plus the fact that we have ...
5 years, 10 months ago (2015-02-07 18:31:00 UTC) #13
Nico
On 2015/02/07 04:42:33, chromium-reviews wrote: > There are still a few clients of the copresence ...
5 years, 10 months ago (2015-02-07 19:09:42 UTC) #14
rkc
On 2015/02/07 19:09:42, Nico wrote: > On 2015/02/07 04:42:33, chromium-reviews wrote: > > There are ...
5 years, 10 months ago (2015-02-07 20:17:01 UTC) #15
chromium-reviews
@thakis: the copresence component builds to less than a MB of binary size. Additionally, this ...
5 years, 10 months ago (2015-02-09 21:10:07 UTC) #16
rkc
Its cleaner design :) There will be more use cases for the Audio Modem component ...
5 years, 10 months ago (2015-02-09 21:13:10 UTC) #17
Charlie
On 2015/02/09 21:13:10, Rahul Chaturvedi wrote: > Its cleaner design :) > > There will ...
5 years, 10 months ago (2015-02-09 23:23:03 UTC) #18
Andrew MacDonald
https://codereview.chromium.org/865483005/diff/60001/components/audio_modem/modem_impl.cc File components/audio_modem/modem_impl.cc (right): https://codereview.chromium.org/865483005/diff/60001/components/audio_modem/modem_impl.cc#newcode305 components/audio_modem/modem_impl.cc:305: void ModemImpl::DumpToken(AudioType audio_type, Did you just want me to ...
5 years, 10 months ago (2015-02-10 04:27:55 UTC) #19
Charlie
https://codereview.chromium.org/865483005/diff/60001/components/audio_modem/modem_impl.cc File components/audio_modem/modem_impl.cc (right): https://codereview.chromium.org/865483005/diff/60001/components/audio_modem/modem_impl.cc#newcode305 components/audio_modem/modem_impl.cc:305: void ModemImpl::DumpToken(AudioType audio_type, On 2015/02/10 04:27:55, andrew wrote: > ...
5 years, 10 months ago (2015-02-10 05:14:19 UTC) #20
Andrew MacDonald
lgtm on WavWriter use.
5 years, 10 months ago (2015-02-10 05:31:34 UTC) #21
DaleCurtis
Doesn't look like you've changed any audio code, so I don't think you need my ...
5 years, 10 months ago (2015-02-11 00:59:29 UTC) #22
chromium-reviews
Hi Dale, I believe your LG is required since this is getting moved into a ...
5 years, 10 months ago (2015-02-11 01:07:49 UTC) #23
DaleCurtis
I see, the DEPS lgtm then.
5 years, 10 months ago (2015-02-11 01:23:27 UTC) #24
Cait (Slow)
components/ changes LGTM.
5 years, 10 months ago (2015-02-11 22:35:57 UTC) #25
rkc
Looks like there is no functional change, just mechanical changes required to separate out the ...
5 years, 10 months ago (2015-02-12 15:40:14 UTC) #26
chromium-reviews
Yep, for simplicity, these are basically all renaming changes. thakis, jam: your LGs are still ...
5 years, 10 months ago (2015-02-12 17:23:17 UTC) #27
Charlie
+thestig for base/ and chrome/browser/DEPS review.
5 years, 10 months ago (2015-02-13 01:54:28 UTC) #29
Lei Zhang
On 2015/02/13 01:54:28, Charlie wrote: > +thestig for base/ and chrome/browser/DEPS review. lgtm, but there's ...
5 years, 10 months ago (2015-02-13 02:03:34 UTC) #30
chromium-reviews
Thanks. I guess technically "changes" is a misnomer. Many base/ usages have been moved to ...
5 years, 10 months ago (2015-02-13 05:39:50 UTC) #31
Lei Zhang
On 2015/02/13 05:39:50, chromium-reviews wrote: > Thanks. I guess technically "changes" is a misnomer. Many ...
5 years, 10 months ago (2015-02-13 05:55:32 UTC) #32
chromium-reviews
Ah, good to know, thanks. On Thu, Feb 12, 2015, 9:55 PM null <thestig@chromium.org> wrote: ...
5 years, 10 months ago (2015-02-13 06:17:44 UTC) #33
jam
there are no files in content/ so removing myself
5 years, 10 months ago (2015-02-13 16:56:16 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/865483005/60001
5 years, 10 months ago (2015-02-13 17:02:20 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/23767)
5 years, 10 months ago (2015-02-13 17:07:07 UTC) #39
chromium-reviews
@jam: I need your approval since files using content/ have been moved to a new ...
5 years, 10 months ago (2015-02-15 17:51:16 UTC) #41
Charlie
R += jam again. Please see the presubmit failure.
5 years, 10 months ago (2015-02-15 17:54:40 UTC) #43
Charlie
R += avi. DEPS approval needed for content/, since we're moving a bunch of files ...
5 years, 10 months ago (2015-02-17 17:51:11 UTC) #46
Avi (use Gerrit)
On 2015/02/17 17:51:11, Charlie wrote: > R += avi. DEPS approval needed for content/, since ...
5 years, 10 months ago (2015-02-17 18:17:46 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/865483005/120001
5 years, 10 months ago (2015-02-17 18:28:34 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/59096) linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 10 months ago (2015-02-17 18:49:59 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/865483005/140001
5 years, 10 months ago (2015-02-17 18:58:05 UTC) #54
commit-bot: I haz the power
Committed patchset #7 (id:140001)
5 years, 10 months ago (2015-02-17 20:05:32 UTC) #55
commit-bot: I haz the power
5 years, 10 months ago (2015-02-17 20:06:17 UTC) #56
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a9408e1449c5f950c1923ea90d75d7b00eccd753
Cr-Commit-Position: refs/heads/master@{#316639}

Powered by Google App Engine
This is Rietveld 408576698