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

Issue 2415673003: Merge RTCConfiguration into WebRTCConfiguration (Closed)

Created:
4 years, 2 months ago by foolip
Modified:
4 years, 2 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, feature-media-reviews_chromium.org, haraken, jam, mcasas+watch+mediastream_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, tommyw+watchlist_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Merge RTCConfiguration into WebRTCConfiguration This makes WebRTCConfiguration into a data struct instead of wrapping a RTCConfiguration. The motivation for this is to introduce RTCConfiguration as an IDL dictionary, at which point the extra layer starts to look unnecessary. BUG=649343 Committed: https://crrev.com/15d04a3473cb60cba6ceb7205353df67642126f7 Cr-Commit-Position: refs/heads/master@{#426836}

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix includes #

Total comments: 2

Patch Set 3 : use WebVector(numberOfCertificates); none->all #

Total comments: 2

Patch Set 4 : std::move #

Total comments: 6

Patch Set 5 : headers, kConstants #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -416 lines) Patch
M content/renderer/media/rtc_peer_connection_handler.cc View 1 2 3 4 3 chunks +20 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h View 3 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp View 1 2 3 4 11 chunks +44 lines, -40 lines 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
D third_party/WebKit/Source/platform/exported/WebRTCConfiguration.cpp View 1 chunk +0 lines, -139 lines 0 comments Download
D third_party/WebKit/Source/platform/peerconnection/RTCConfiguration.h View 1 chunk +0 lines, -130 lines 0 comments Download
M third_party/WebKit/public/platform/WebRTCConfiguration.h View 1 2 3 4 1 chunk +17 lines, -79 lines 0 comments Download
M third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h View 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 43 (23 generated)
foolip
4 years, 2 months ago (2016-10-13 13:05:54 UTC) #4
foolip
https://codereview.chromium.org/2415673003/diff/1/third_party/WebKit/public/platform/WebRTCConfiguration.h File third_party/WebKit/public/platform/WebRTCConfiguration.h (right): https://codereview.chromium.org/2415673003/diff/1/third_party/WebKit/public/platform/WebRTCConfiguration.h#newcode60 third_party/WebKit/public/platform/WebRTCConfiguration.h:60: std::vector<std::unique_ptr<WebRTCCertificate>> certificates; jochen@, is this verboten? The basic trouble ...
4 years, 2 months ago (2016-10-13 13:10:21 UTC) #6
Guido Urdaneta
lgtm % nit, but it looks you need to update a unit test to include ...
4 years, 2 months ago (2016-10-13 13:25:48 UTC) #9
haraken
https://codereview.chromium.org/2415673003/diff/1/third_party/WebKit/public/platform/WebRTCConfiguration.h File third_party/WebKit/public/platform/WebRTCConfiguration.h (right): https://codereview.chromium.org/2415673003/diff/1/third_party/WebKit/public/platform/WebRTCConfiguration.h#newcode60 third_party/WebKit/public/platform/WebRTCConfiguration.h:60: std::vector<std::unique_ptr<WebRTCCertificate>> certificates; On 2016/10/13 13:10:21, foolip wrote: > jochen@, ...
4 years, 2 months ago (2016-10-13 13:27:28 UTC) #11
foolip
https://codereview.chromium.org/2415673003/diff/1/third_party/WebKit/public/platform/WebRTCConfiguration.h File third_party/WebKit/public/platform/WebRTCConfiguration.h (right): https://codereview.chromium.org/2415673003/diff/1/third_party/WebKit/public/platform/WebRTCConfiguration.h#newcode60 third_party/WebKit/public/platform/WebRTCConfiguration.h:60: std::vector<std::unique_ptr<WebRTCCertificate>> certificates; On 2016/10/13 13:27:28, haraken wrote: > On ...
4 years, 2 months ago (2016-10-13 13:43:33 UTC) #12
haraken
On 2016/10/13 13:43:33, foolip wrote: > https://codereview.chromium.org/2415673003/diff/1/third_party/WebKit/public/platform/WebRTCConfiguration.h > File third_party/WebKit/public/platform/WebRTCConfiguration.h (right): > > https://codereview.chromium.org/2415673003/diff/1/third_party/WebKit/public/platform/WebRTCConfiguration.h#newcode60 > ...
4 years, 2 months ago (2016-10-13 14:04:02 UTC) #16
hbos_chromium
Why are tests failing? https://codereview.chromium.org/2415673003/diff/20001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp (right): https://codereview.chromium.org/2415673003/diff/20001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp#newcode366 third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp:366: certificate->certificateShallowCopy()); I think WebVector should ...
4 years, 2 months ago (2016-10-17 21:24:54 UTC) #19
esprehn
WebVector wasn't really supposed to be resizable, but I guess we could add append(). We ...
4 years, 2 months ago (2016-10-17 21:27:31 UTC) #20
hbos_chromium
Does RTCConfiguration, once made into an IDL dictionary, and WebRTCConfiguration have to be different structs ...
4 years, 2 months ago (2016-10-17 21:30:24 UTC) #21
foolip
Tests were failing because WebRTCConfiguration::iceTransports defaulted to WebRTCIceTransports::None, should have been ::All. https://codereview.chromium.org/2415673003/diff/20001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp ...
4 years, 2 months ago (2016-10-21 12:05:46 UTC) #22
foolip
On 2016/10/17 21:30:24, hbos_chromium wrote: > Does RTCConfiguration, once made into an IDL dictionary, and ...
4 years, 2 months ago (2016-10-21 13:09:13 UTC) #25
foolip
On 2016/10/17 21:27:31, esprehn wrote: > WebVector wasn't really supposed to be resizable, but I ...
4 years, 2 months ago (2016-10-21 13:30:22 UTC) #26
Guido Urdaneta
lgtm % nit https://codereview.chromium.org/2415673003/diff/40001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp (right): https://codereview.chromium.org/2415673003/diff/40001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp#newcode370 third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp:370: rtcConfiguration.certificates.swap(certificatesCopy); nit: I think rtcConfiguration.certificates = ...
4 years, 2 months ago (2016-10-21 13:36:46 UTC) #27
foolip
https://codereview.chromium.org/2415673003/diff/40001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp (right): https://codereview.chromium.org/2415673003/diff/40001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp#newcode370 third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp:370: rtcConfiguration.certificates.swap(certificatesCopy); On 2016/10/21 13:36:46, Guido Urdaneta wrote: > nit: ...
4 years, 2 months ago (2016-10-21 14:01:00 UTC) #30
jochen (gone - plz use gerrit)
lgtm with comments https://codereview.chromium.org/2415673003/diff/60001/third_party/WebKit/public/platform/WebRTCConfiguration.h File third_party/WebKit/public/platform/WebRTCConfiguration.h (right): https://codereview.chromium.org/2415673003/diff/60001/third_party/WebKit/public/platform/WebRTCConfiguration.h#newcode39 third_party/WebKit/public/platform/WebRTCConfiguration.h:39: #include <vector> do you still use ...
4 years, 2 months ago (2016-10-21 14:55:17 UTC) #33
foolip
https://codereview.chromium.org/2415673003/diff/60001/third_party/WebKit/public/platform/WebRTCConfiguration.h File third_party/WebKit/public/platform/WebRTCConfiguration.h (right): https://codereview.chromium.org/2415673003/diff/60001/third_party/WebKit/public/platform/WebRTCConfiguration.h#newcode39 third_party/WebKit/public/platform/WebRTCConfiguration.h:39: #include <vector> On 2016/10/21 14:55:17, jochen wrote: > do ...
4 years, 2 months ago (2016-10-21 15:49:57 UTC) #36
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/2415673003/80001
4 years, 2 months ago (2016-10-21 15:51:48 UTC) #39
hbos_chromium
lgtm
4 years, 2 months ago (2016-10-21 17:27:28 UTC) #40
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-21 17:47:36 UTC) #41
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 18:06:53 UTC) #43
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/15d04a3473cb60cba6ceb7205353df67642126f7
Cr-Commit-Position: refs/heads/master@{#426836}

Powered by Google App Engine
This is Rietveld 408576698