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

Issue 1717583002: Non-constraint interfaces for all constrainable interfaces (Closed)

Created:
4 years, 10 months ago by hta-webrtc
Modified:
4 years, 9 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, pthatcher1
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

This CL provides interfaces that do not use constraints for all interfaces that formerly took constraints parameters in name=value form. This is in preparation for making Chrome only use these explicit interfaces. BUG=webrtc:4906 Committed: https://crrev.com/a2a49d9d9c65cf6d080811e6c2755cba9cb52d32 Cr-Commit-Position: refs/heads/master@{#11870}

Patch Set 1 : Working APIs for all formerly constrainable APIs #

Patch Set 2 : Fix an ambiguous function #

Total comments: 32

Patch Set 3 : Some review comments addressed #

Patch Set 4 : Changed API to use rtc::Optional #

Patch Set 5 : Rebase result (no intentional change) #

Total comments: 5

Patch Set 6 : Some redesign of PeerConnection creation API #

Total comments: 6

Patch Set 7 : Removing a TODO #

Total comments: 14

Patch Set 8 : Default implementation for deprecated virtual functions #

Patch Set 9 : Rebased, moved a helper function #

Total comments: 4

Patch Set 10 : Redesigned webrtcsession_unittest #

Patch Set 11 : Renaming a function #

Total comments: 2

Patch Set 12 : Fix videosource API change #

Patch Set 13 : Work around an Android gtest issue #

Patch Set 14 : Redesign of CopyConstraintsIntoRtcConfiguration #

Total comments: 10

Patch Set 15 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+562 lines, -242 lines) Patch
M webrtc/api/api_tests.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/api/localaudiosource.h View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -3 lines 0 comments Download
M webrtc/api/localaudiosource.cc View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -1 line 0 comments Download
M webrtc/api/localaudiosource_unittest.cc View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
M webrtc/api/mediaconstraintsinterface.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +17 lines, -0 lines 0 comments Download
M webrtc/api/mediaconstraintsinterface.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +86 lines, -1 line 0 comments Download
A webrtc/api/mediaconstraintsinterface_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +62 lines, -0 lines 0 comments Download
M webrtc/api/peerconnection.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +22 lines, -2 lines 0 comments Download
M webrtc/api/peerconnection.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +53 lines, -39 lines 0 comments Download
M webrtc/api/peerconnectionfactory.h View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -0 lines 0 comments Download
M webrtc/api/peerconnectionfactory.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +52 lines, -2 lines 0 comments Download
M webrtc/api/peerconnectionfactoryproxy.h View 1 2 chunks +27 lines, -1 line 0 comments Download
M webrtc/api/peerconnectioninterface.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +37 lines, -3 lines 0 comments Download
M webrtc/api/peerconnectioninterface_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +14 lines, -14 lines 0 comments Download
M webrtc/api/peerconnectionproxy.h View 1 chunk +8 lines, -0 lines 0 comments Download
M webrtc/api/videosource.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M webrtc/api/videosource.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M webrtc/api/webrtcsession.h View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M webrtc/api/webrtcsession.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +9 lines, -45 lines 0 comments Download
M webrtc/api/webrtcsession_unittest.cc View 1 2 3 4 5 6 7 8 9 10 62 chunks +103 lines, -127 lines 0 comments Download
M webrtc/api/webrtcsessiondescriptionfactory.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/api/webrtcsessiondescriptionfactory.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 103 (43 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717583002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717583002/40001
4 years, 10 months ago (2016-02-22 14:57:07 UTC) #6
commit-bot: I haz the power
Dry run: Exceeded global retry quota
4 years, 10 months ago (2016-02-22 15:00:14 UTC) #8
commit-bot: I haz the power
Dry run: Exceeded global retry quota
4 years, 10 months ago (2016-02-22 15:00:16 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717583002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717583002/60001
4 years, 10 months ago (2016-02-22 15:09:38 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_arm64_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_arm64_dbg/builds/7632) ios_arm64_rel on ...
4 years, 10 months ago (2016-02-22 15:11:41 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717583002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717583002/60001
4 years, 10 months ago (2016-02-23 08:12:46 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios64_sim_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios64_sim_dbg/builds/5338) ios_arm64_dbg on ...
4 years, 10 months ago (2016-02-23 08:13:49 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717583002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717583002/60001
4 years, 10 months ago (2016-02-23 08:28:54 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios64_sim_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios64_sim_dbg/builds/5340) ios_arm64_dbg on ...
4 years, 10 months ago (2016-02-23 08:29:56 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717583002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717583002/60001
4 years, 10 months ago (2016-02-23 09:09:22 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-23 09:20:42 UTC) #25
perkj_webrtc
I think it would be nice to get rid of the generic constraints if they ...
4 years, 10 months ago (2016-02-23 11:40:19 UTC) #29
nisse-webrtc
https://codereview.webrtc.org/1717583002/diff/60001/webrtc/api/peerconnectionfactory.cc File webrtc/api/peerconnectionfactory.cc (right): https://codereview.webrtc.org/1717583002/diff/60001/webrtc/api/peerconnectionfactory.cc#newcode223 webrtc/api/peerconnectionfactory.cc:223: rtc::scoped_refptr<VideoSource> source( On 2016/02/23 11:40:18, perkj_webrtc wrote: > Just ...
4 years, 10 months ago (2016-02-23 13:05:32 UTC) #30
hta-webrtc
Some comments on the comments. Addressed the simplest ones. https://codereview.webrtc.org/1717583002/diff/60001/webrtc/api/localaudiosource.cc File webrtc/api/localaudiosource.cc (right): https://codereview.webrtc.org/1717583002/diff/60001/webrtc/api/localaudiosource.cc#newcode108 webrtc/api/localaudiosource.cc:108: ...
4 years, 10 months ago (2016-02-23 14:30:34 UTC) #31
nisse-webrtc
https://codereview.webrtc.org/1717583002/diff/60001/webrtc/api/localaudiosource.cc File webrtc/api/localaudiosource.cc (right): https://codereview.webrtc.org/1717583002/diff/60001/webrtc/api/localaudiosource.cc#newcode108 webrtc/api/localaudiosource.cc:108: if (!audio_options) On 2016/02/23 14:30:34, hta-webrtc wrote: > On ...
4 years, 10 months ago (2016-02-23 15:11:02 UTC) #32
hta-webrtc
Commentary about initialization code... https://codereview.webrtc.org/1717583002/diff/60001/webrtc/api/peerconnectioninterface.h File webrtc/api/peerconnectioninterface.h (right): https://codereview.webrtc.org/1717583002/diff/60001/webrtc/api/peerconnectioninterface.h#newcode250 webrtc/api/peerconnectioninterface.h:250: bool enable_dscp; On 2016/02/23 15:11:02, ...
4 years, 10 months ago (2016-02-24 12:40:38 UTC) #33
hta-webrtc
After checking with Tommi, I think it's OK to start infecting Chrome with rtc::Optional by ...
4 years, 10 months ago (2016-02-24 14:18:41 UTC) #34
nisse-webrtc
https://codereview.webrtc.org/1717583002/diff/60001/webrtc/api/peerconnectioninterface.h File webrtc/api/peerconnectioninterface.h (right): https://codereview.webrtc.org/1717583002/diff/60001/webrtc/api/peerconnectioninterface.h#newcode250 webrtc/api/peerconnectioninterface.h:250: bool enable_dscp; On 2016/02/24 12:40:38, hta-webrtc wrote: > I ...
4 years, 10 months ago (2016-02-24 15:48:19 UTC) #35
nisse-webrtc
https://codereview.webrtc.org/1717583002/diff/120001/webrtc/api/peerconnection.cc File webrtc/api/peerconnection.cc (right): https://codereview.webrtc.org/1717583002/diff/120001/webrtc/api/peerconnection.cc#newcode625 webrtc/api/peerconnection.cc:625: media_config.enable_dscp = *(configuration.enable_dscp); I agree this use of rtc::Optional ...
4 years, 10 months ago (2016-02-25 08:26:52 UTC) #36
hta-webrtc
Let's see if this is more readable. I kept the optionals (so far), but peerconnection.Initialize ...
4 years, 10 months ago (2016-02-25 14:32:42 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717583002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717583002/140001
4 years, 10 months ago (2016-02-25 14:33:04 UTC) #39
nisse-webrtc
https://codereview.webrtc.org/1717583002/diff/140001/webrtc/api/peerconnection.cc File webrtc/api/peerconnection.cc (right): https://codereview.webrtc.org/1717583002/diff/140001/webrtc/api/peerconnection.cc#newcode2143 webrtc/api/peerconnection.cc:2143: configuration->enable_dscp = ConstraintToOptionalBool( I like this version better. Have ...
4 years, 10 months ago (2016-02-25 15:25:55 UTC) #40
hta-webrtc
Pushback, I'm afraid. I don't see how to do the change you're suggesting without moving ...
4 years, 10 months ago (2016-02-25 16:06:07 UTC) #41
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) ...
4 years, 10 months ago (2016-02-25 16:33:53 UTC) #43
nisse-webrtc
On 2016/02/25 16:06:07, hta-webrtc wrote: > I don't see how to do the change you're ...
4 years, 10 months ago (2016-02-26 08:23:00 UTC) #44
nisse-webrtc
I should say that I'm still not convinced it's the right thing to have CopyConstraintsIntoRtcConfiguration ...
4 years, 10 months ago (2016-02-26 08:53:46 UTC) #45
hta-webrtc
Response to comments. On redesign of initialization: On second thoughts, I don't think moving experiment ...
4 years, 9 months ago (2016-02-29 11:09:49 UTC) #46
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717583002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717583002/180001
4 years, 9 months ago (2016-03-01 08:27:24 UTC) #48
commit-bot: I haz the power
Dry run: Exceeded global retry quota
4 years, 9 months ago (2016-03-01 08:32:23 UTC) #50
perkj_webrtc
https://codereview.webrtc.org/1717583002/diff/60001/webrtc/api/localaudiosource.cc File webrtc/api/localaudiosource.cc (right): https://codereview.webrtc.org/1717583002/diff/60001/webrtc/api/localaudiosource.cc#newcode108 webrtc/api/localaudiosource.cc:108: if (!audio_options) On 2016/02/23 14:30:34, hta-webrtc wrote: > On ...
4 years, 9 months ago (2016-03-01 08:41:26 UTC) #51
hta-webrtc
PTAL - I also added one default implementation and bug references. https://codereview.webrtc.org/1717583002/diff/60001/webrtc/api/localaudiosource.cc File webrtc/api/localaudiosource.cc (right): ...
4 years, 9 months ago (2016-03-02 09:33:40 UTC) #52
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717583002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717583002/200001
4 years, 9 months ago (2016-03-02 10:31:26 UTC) #54
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_arm64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_arm64_rel/builds/7827) ios_rel on ...
4 years, 9 months ago (2016-03-02 10:32:49 UTC) #56
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717583002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717583002/220001
4 years, 9 months ago (2016-03-02 13:11:34 UTC) #59
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-02 14:12:21 UTC) #61
perkj_webrtc
Looks good. Please fix webrtcsession_unittest as we discussed. https://codereview.webrtc.org/1717583002/diff/220001/webrtc/api/peerconnection.cc File webrtc/api/peerconnection.cc (right): https://codereview.webrtc.org/1717583002/diff/220001/webrtc/api/peerconnection.cc#newcode430 webrtc/api/peerconnection.cc:430: bool ...
4 years, 9 months ago (2016-03-02 14:46:27 UTC) #62
hta - Chromium
New try ... are we ready to go now? https://codereview.chromium.org/1717583002/diff/220001/webrtc/api/peerconnection.cc File webrtc/api/peerconnection.cc (right): https://codereview.chromium.org/1717583002/diff/220001/webrtc/api/peerconnection.cc#newcode430 webrtc/api/peerconnection.cc:430: ...
4 years, 9 months ago (2016-03-03 11:51:03 UTC) #64
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717583002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717583002/260001
4 years, 9 months ago (2016-03-03 11:51:31 UTC) #66
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. CQ run can only be started ...
4 years, 9 months ago (2016-03-03 11:51:34 UTC) #68
nisse-webrtc
https://codereview.webrtc.org/1717583002/diff/260001/webrtc/api/mediaconstraintsinterface_unittest.cc File webrtc/api/mediaconstraintsinterface_unittest.cc (right): https://codereview.webrtc.org/1717583002/diff/260001/webrtc/api/mediaconstraintsinterface_unittest.cc#newcode49 webrtc/api/mediaconstraintsinterface_unittest.cc:49: // but leave other fields alone. I don't understand ...
4 years, 9 months ago (2016-03-03 12:09:39 UTC) #69
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717583002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717583002/260001
4 years, 9 months ago (2016-03-03 12:10:19 UTC) #71
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_compile_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_compile_dbg/builds/3539) mac_gn_dbg on ...
4 years, 9 months ago (2016-03-03 12:12:30 UTC) #73
hta-webrtc
Responding to the "why", but not doing anything about it yet. https://codereview.webrtc.org/1717583002/diff/260001/webrtc/api/mediaconstraintsinterface_unittest.cc File webrtc/api/mediaconstraintsinterface_unittest.cc (right): ...
4 years, 9 months ago (2016-03-03 12:32:38 UTC) #74
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717583002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717583002/280001
4 years, 9 months ago (2016-03-03 12:52:16 UTC) #76
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios64_sim_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios64_sim_dbg/builds/5633) linux_compile_dbg on ...
4 years, 9 months ago (2016-03-03 12:54:55 UTC) #78
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717583002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717583002/300001
4 years, 9 months ago (2016-03-03 13:06:14 UTC) #81
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_x64_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_compile_x64_dbg/builds/2145)
4 years, 9 months ago (2016-03-03 13:16:50 UTC) #83
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717583002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717583002/320001
4 years, 9 months ago (2016-03-03 14:02:21 UTC) #85
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) ...
4 years, 9 months ago (2016-03-03 16:02:54 UTC) #87
hta-webrtc
Updated according to nisse's comments. Yes, this looks better.
4 years, 9 months ago (2016-03-03 17:04:03 UTC) #88
pthatcher1
lgtm Although, if you have time to make the Optional vs. not consistent, I would ...
4 years, 9 months ago (2016-03-03 17:51:17 UTC) #90
hta-webrtc
There's *some* logic to the optional usage.... thanks for the quick turnaround! Will give Nisse ...
4 years, 9 months ago (2016-03-03 17:57:50 UTC) #91
nisse-webrtc
lgtm https://codereview.webrtc.org/1717583002/diff/340001/webrtc/api/peerconnectioninterface.h File webrtc/api/peerconnectioninterface.h (right): https://codereview.webrtc.org/1717583002/diff/340001/webrtc/api/peerconnectioninterface.h#newcode251 webrtc/api/peerconnectioninterface.h:251: bool enable_rtp_data_channel; On 2016/03/03 17:51:17, pthatcher1 wrote: > ...
4 years, 9 months ago (2016-03-04 08:23:30 UTC) #92
perkj_webrtc
lgtm https://codereview.webrtc.org/1717583002/diff/340001/webrtc/api/mediaconstraintsinterface.cc File webrtc/api/mediaconstraintsinterface.cc (right): https://codereview.webrtc.org/1717583002/diff/340001/webrtc/api/mediaconstraintsinterface.cc#newcode154 webrtc/api/mediaconstraintsinterface.cc:154: void ConstraintToOptionalBool(const MediaConstraintsInterface* constraints, nit: move to anonymous ...
4 years, 9 months ago (2016-03-04 08:44:37 UTC) #93
perkj_webrtc
lgtm
4 years, 9 months ago (2016-03-04 08:44:38 UTC) #94
hta-webrtc
On 2016/03/04 08:23:30, nisse-webrtc wrote: > lgtm > > https://codereview.webrtc.org/1717583002/diff/340001/webrtc/api/peerconnectioninterface.h > File webrtc/api/peerconnectioninterface.h (right): > ...
4 years, 9 months ago (2016-03-04 09:45:53 UTC) #95
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717583002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717583002/360001
4 years, 9 months ago (2016-03-04 09:54:09 UTC) #98
hta-webrtc
And with that, I think we're ready. Addressed the last style comments; leaving the parameter ...
4 years, 9 months ago (2016-03-04 09:54:47 UTC) #99
commit-bot: I haz the power
Committed patchset #15 (id:360001)
4 years, 9 months ago (2016-03-04 10:51:45 UTC) #101
commit-bot: I haz the power
4 years, 9 months ago (2016-03-04 10:51:52 UTC) #103
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/a2a49d9d9c65cf6d080811e6c2755cba9cb52d32
Cr-Commit-Position: refs/heads/master@{#11870}

Powered by Google App Engine
This is Rietveld 408576698