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

Issue 419073002: Add the copresence DirectiveHandler. (Closed)

Created:
6 years, 5 months ago by rkc
Modified:
6 years, 4 months ago
CC:
chromium-reviews, Charlie
Project:
chromium
Visibility:
Public.

Description

This is the preliminary introduction for the code for the chrome.copresence API which enables the exchange short messages with nearby devices. This is the audio handling code of the copresence core component. We'll be open sourcing this code in phases, this is the first part. This CL includes the code for the directive handler for copresence, and all related classes. Including blundell@ for the OWNERs review to add this component. R=blundell@chromium.org, derat@chromium.org, xiyuan@chromium.org BUG=365493 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287900

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 162

Patch Set 3 : review comments #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : audio_test_support files #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : gn fix #

Total comments: 6

Patch Set 9 : #

Total comments: 71

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Total comments: 14

Patch Set 13 : #

Patch Set 14 : build fixes #

Patch Set 15 : #

Patch Set 16 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2210 lines, -2 lines) Patch
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +14 lines, -0 lines 0 comments Download
M components/copresence.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +29 lines, -2 lines 0 comments Download
M components/copresence/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +15 lines, -0 lines 0 comments Download
M components/copresence/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
A components/copresence/copresence_constants.cc View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
A components/copresence/handlers/audio/audio_directive_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +76 lines, -0 lines 0 comments Download
A components/copresence/handlers/audio/audio_directive_handler.cc View 1 2 3 4 5 6 7 8 9 1 chunk +113 lines, -0 lines 0 comments Download
A components/copresence/handlers/audio/audio_directive_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +104 lines, -0 lines 0 comments Download
A components/copresence/handlers/audio/audio_directive_list.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +121 lines, -0 lines 0 comments Download
A components/copresence/handlers/audio/audio_directive_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +144 lines, -0 lines 0 comments Download
A components/copresence/handlers/audio/audio_directive_list_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +82 lines, -0 lines 0 comments Download
A components/copresence/handlers/directive_handler.h View 1 2 3 4 5 6 7 8 9 1 chunk +42 lines, -0 lines 0 comments Download
A components/copresence/handlers/directive_handler.cc View 1 2 3 4 5 6 7 8 9 1 chunk +38 lines, -0 lines 0 comments Download
A components/copresence/mediums/audio/audio_player.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +93 lines, -0 lines 0 comments Download
A components/copresence/mediums/audio/audio_player.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +183 lines, -0 lines 0 comments Download
A components/copresence/mediums/audio/audio_player_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +189 lines, -0 lines 0 comments Download
A components/copresence/mediums/audio/audio_recorder.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +111 lines, -0 lines 0 comments Download
A components/copresence/mediums/audio/audio_recorder.cc View 1 2 3 4 5 6 7 8 9 1 chunk +250 lines, -0 lines 0 comments Download
A components/copresence/mediums/audio/audio_recorder_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +257 lines, -0 lines 0 comments Download
A components/copresence/public/copresence_constants.h View 1 2 3 4 5 6 7 8 9 1 chunk +32 lines, -0 lines 0 comments Download
A components/copresence/test/audio_test_support.h View 1 2 3 4 5 6 7 8 9 1 chunk +34 lines, -0 lines 0 comments Download
A components/copresence/test/audio_test_support.cc View 1 2 3 4 5 6 7 8 9 1 chunk +37 lines, -0 lines 0 comments Download
A components/copresence/timed_map.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +97 lines, -0 lines 0 comments Download
A components/copresence/timed_map_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +130 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (0 generated)
rkc
6 years, 5 months ago (2014-07-24 22:16:51 UTC) #1
Daniel Erat
(are you planning to break this up into smaller pieces? it sounded like it earlier.)
6 years, 5 months ago (2014-07-24 22:46:46 UTC) #2
blundell
I didn't look at the source files under //components/copresence. https://codereview.chromium.org/419073002/diff/1/components/copresence.gypi File components/copresence.gypi (right): https://codereview.chromium.org/419073002/diff/1/components/copresence.gypi#newcode8 components/copresence.gypi:8: ...
6 years, 5 months ago (2014-07-25 07:33:58 UTC) #3
rkc
@blundell, mostly need your review to verify that the component is being added correctly :) ...
6 years, 5 months ago (2014-07-25 17:03:45 UTC) #4
rkc
Adding dalecurtis@ for the audio code.
6 years, 5 months ago (2014-07-25 20:25:00 UTC) #5
DaleCurtis
lgtm % method naming. https://codereview.chromium.org/419073002/diff/20001/components/copresence/mediums/audio/audio_player.cc File components/copresence/mediums/audio/audio_player.cc (right): https://codereview.chromium.org/419073002/diff/20001/components/copresence/mediums/audio/audio_player.cc#newcode185 components/copresence/mediums/audio/audio_player.cc:185: base::RunLoop rl; This isn't allowed ...
6 years, 5 months ago (2014-07-25 20:41:30 UTC) #6
xiyuan
Mostly nits. https://codereview.chromium.org/419073002/diff/20001/components/copresence/common/copresence_constants.cc File components/copresence/common/copresence_constants.cc (right): https://codereview.chromium.org/419073002/diff/20001/components/copresence/common/copresence_constants.cc#newcode10 components/copresence/common/copresence_constants.cc:10: const float kDefaultSampleRate = 48000.0; nit: 'f' ...
6 years, 5 months ago (2014-07-25 21:02:10 UTC) #7
Daniel Erat
here are some initial comments for the first few files. i'll find out soon if ...
6 years, 5 months ago (2014-07-25 23:09:01 UTC) #8
rkc
https://codereview.chromium.org/419073002/diff/20001/components/OWNERS File components/OWNERS (right): https://codereview.chromium.org/419073002/diff/20001/components/OWNERS#newcode33 components/OWNERS:33: per-file copresence.gypi=derat@chromium.org On 2014/07/25 23:09:00, Daniel Erat wrote: > ...
6 years, 4 months ago (2014-07-28 21:02:03 UTC) #9
Daniel Erat
here are the rest of my comments on patch set 2; i'll hold off on ...
6 years, 4 months ago (2014-07-28 21:18:19 UTC) #10
xiyuan
https://codereview.chromium.org/419073002/diff/40001/components/copresence/common/timed_map_unittest.cc File components/copresence/common/timed_map_unittest.cc (right): https://codereview.chromium.org/419073002/diff/40001/components/copresence/common/timed_map_unittest.cc#newcode27 components/copresence/common/timed_map_unittest.cc:27: base::MessageLoop ml_; nit: Seems not used. If it is ...
6 years, 4 months ago (2014-07-29 00:22:26 UTC) #11
rkc
https://codereview.chromium.org/419073002/diff/20001/components/copresence/handlers/audio/audio_directive_handler_unittest.cc File components/copresence/handlers/audio/audio_directive_handler_unittest.cc (right): https://codereview.chromium.org/419073002/diff/20001/components/copresence/handlers/audio/audio_directive_handler_unittest.cc#newcode30 components/copresence/handlers/audio/audio_directive_handler_unittest.cc:30: base::TimeDelta)); On 2014/07/28 21:18:16, Daniel Erat wrote: > add ...
6 years, 4 months ago (2014-07-29 00:33:37 UTC) #12
rkc
Adding jochen@ for owners review for components since blundell is OOO.
6 years, 4 months ago (2014-07-29 00:42:25 UTC) #13
xiyuan
LGTM
6 years, 4 months ago (2014-07-29 00:58:38 UTC) #14
jochen (gone - plz use gerrit)
not lgtm this needs a tracking bug. also, please split up the CL into reviewable ...
6 years, 4 months ago (2014-07-29 09:10:58 UTC) #15
rkc
Jochen, I'll get a tracking bug attached to this CL ASAP. It is 3am here ...
6 years, 4 months ago (2014-07-29 09:57:03 UTC) #16
jochen (gone - plz use gerrit)
On 2014/07/29 at 09:57:03, rkc wrote: > Jochen, I'll get a tracking bug attached to ...
6 years, 4 months ago (2014-07-29 11:31:40 UTC) #17
rkc
On 2014/07/29 11:31:40, jochen wrote: > On 2014/07/29 at 09:57:03, rkc wrote: > > Launch ...
6 years, 4 months ago (2014-07-29 17:03:43 UTC) #18
jochen (gone - plz use gerrit)
On 2014/07/29 at 17:03:43, rkc wrote: > On 2014/07/29 11:31:40, jochen wrote: > > On ...
6 years, 4 months ago (2014-07-29 17:44:06 UTC) #19
jochen (gone - plz use gerrit)
once you rebase this CL on top of https://codereview.chromium.org/426093003/ I think we're good to go.
6 years, 4 months ago (2014-07-31 19:31:13 UTC) #20
Daniel Erat
please let me know when i should make another pass through this.
6 years, 4 months ago (2014-07-31 19:53:02 UTC) #21
rkc
Uploaded the rebased patch. Tracking off https://codereview.chromium.org/426093003/ now.
6 years, 4 months ago (2014-07-31 20:27:56 UTC) #22
jochen (gone - plz use gerrit)
lgtm for overall structure assuming it compiles on all platforms. didn't review the handler/mediums bits ...
6 years, 4 months ago (2014-07-31 20:38:49 UTC) #23
rkc
Dan, I think you should be fine with resuming the review. https://codereview.chromium.org/419073002/diff/130001/components/copresence/BUILD.gn File components/copresence/BUILD.gn (right): ...
6 years, 4 months ago (2014-07-31 20:42:43 UTC) #24
Daniel Erat
https://codereview.chromium.org/419073002/diff/150001/components/components_tests.gyp File components/components_tests.gyp (right): https://codereview.chromium.org/419073002/diff/150001/components/components_tests.gyp#newcode81 components/components_tests.gyp:81: 'copresence/timed_map_unittest.cc', fix alphabetization https://codereview.chromium.org/419073002/diff/150001/components/copresence.gypi File components/copresence.gypi (right): https://codereview.chromium.org/419073002/diff/150001/components/copresence.gypi#newcode24 components/copresence.gypi:24: ...
6 years, 4 months ago (2014-07-31 22:31:17 UTC) #25
rkc
https://codereview.chromium.org/419073002/diff/150001/components/components_tests.gyp File components/components_tests.gyp (right): https://codereview.chromium.org/419073002/diff/150001/components/components_tests.gyp#newcode81 components/components_tests.gyp:81: 'copresence/timed_map_unittest.cc', On 2014/07/31 22:31:14, Daniel Erat wrote: > fix ...
6 years, 4 months ago (2014-08-01 21:08:58 UTC) #26
Daniel Erat
sorry, i didn't get to this tonight. i'll try to do it tomorrow morning if ...
6 years, 4 months ago (2014-08-05 05:19:51 UTC) #27
Daniel Erat
https://codereview.chromium.org/419073002/diff/210001/components/copresence/BUILD.gn File components/copresence/BUILD.gn (right): https://codereview.chromium.org/419073002/diff/210001/components/copresence/BUILD.gn#newcode30 components/copresence/BUILD.gn:30: "//content", nit: fix sorting https://codereview.chromium.org/419073002/diff/210001/components/copresence/handlers/audio/audio_directive_handler.h File components/copresence/handlers/audio/audio_directive_handler.h (right): https://codereview.chromium.org/419073002/diff/210001/components/copresence/handlers/audio/audio_directive_handler.h#newcode38 ...
6 years, 4 months ago (2014-08-05 16:38:52 UTC) #28
rkc
https://codereview.chromium.org/419073002/diff/210001/components/copresence/BUILD.gn File components/copresence/BUILD.gn (right): https://codereview.chromium.org/419073002/diff/210001/components/copresence/BUILD.gn#newcode30 components/copresence/BUILD.gn:30: "//content", On 2014/08/05 16:38:51, Daniel Erat wrote: > nit: ...
6 years, 4 months ago (2014-08-05 18:00:35 UTC) #29
rkc
Uploaded patch for realz this time.
6 years, 4 months ago (2014-08-05 19:19:03 UTC) #30
Daniel Erat
lgtm
6 years, 4 months ago (2014-08-05 23:07:31 UTC) #31
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 4 months ago (2014-08-05 23:10:47 UTC) #32
rkc
The CQ bit was unchecked by rkc@chromium.org
6 years, 4 months ago (2014-08-05 23:11:28 UTC) #33
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 4 months ago (2014-08-05 23:11:56 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/419073002/230001
6 years, 4 months ago (2014-08-05 23:14:41 UTC) #35
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 4 months ago (2014-08-06 00:04:03 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/419073002/250001
6 years, 4 months ago (2014-08-06 00:06:20 UTC) #37
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-06 06:10:22 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-06 07:57:14 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel/builds/3607)
6 years, 4 months ago (2014-08-06 07:57:15 UTC) #40
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 4 months ago (2014-08-06 09:43:47 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/419073002/250001
6 years, 4 months ago (2014-08-06 09:44:23 UTC) #42
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-06 14:58:44 UTC) #43
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-06 16:55:21 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel/builds/3711)
6 years, 4 months ago (2014-08-06 16:55:23 UTC) #45
blundell
On 2014/08/06 16:55:23, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 4 months ago (2014-08-06 17:32:30 UTC) #46
rkc
On 2014/08/06 17:32:30, blundell wrote: > On 2014/08/06 16:55:23, I haz the power (commit-bot) wrote: ...
6 years, 4 months ago (2014-08-06 21:07:12 UTC) #47
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 4 months ago (2014-08-06 21:07:48 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/419073002/270001
6 years, 4 months ago (2014-08-06 21:09:56 UTC) #49
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 4 months ago (2014-08-06 21:13:00 UTC) #50
commit-bot: I haz the power
6 years, 4 months ago (2014-08-06 21:15:26 UTC) #51

Powered by Google App Engine
This is Rietveld 408576698