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

Issue 1229283003: Refactor the relationship between BaseChannel and MediaChannel so that we send over all the paramet… (Closed)

Created:
5 years, 5 months ago by pthatcher1
Modified:
5 years, 4 months ago
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, rwolff_gocast.it, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Refactor the relationship between BaseChannel and MediaChannel so that we send over all the parameters in one method call rather then having them broken up into multiple method calls. This should allow future refactorings of the WebRtcVideoEngine2 to not recreate configurations so many times, and have more simple code as well. R=deadbeef@webrtc.org, pbos@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/c2ee2c86f905991a8cd05ee1f35bea105b41e4e0

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : merge and fix most tests #

Patch Set 4 : fix all the tests #

Total comments: 16

Patch Set 5 : Add ToStrings and TODOs. #

Patch Set 6 : SetRtpTransportParameters_w #

Total comments: 4

Patch Set 7 : remove duplication #

Total comments: 5

Patch Set 8 : merge #

Total comments: 8

Patch Set 9 : Address issues from code review #

Total comments: 2

Patch Set 10 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+416 lines, -272 lines) Patch
M talk/media/base/mediachannel.h View 1 2 3 4 5 6 7 9 chunks +138 lines, -3 lines 0 comments Download
M talk/media/webrtc/webrtcvideoengine2.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M talk/media/webrtc/webrtcvideoengine2.cc View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
M talk/media/webrtc/webrtcvoiceengine.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M talk/media/webrtc/webrtcvoiceengine.cc View 1 2 3 4 5 6 7 8 9 1 chunk +18 lines, -0 lines 0 comments Download
M talk/session/media/channel.h View 1 2 3 4 5 6 7 8 9 5 chunks +28 lines, -13 lines 0 comments Download
M talk/session/media/channel.cc View 1 2 3 4 5 6 7 8 9 10 chunks +212 lines, -256 lines 0 comments Download

Messages

Total messages: 21 (3 generated)
pthatcher1
5 years, 5 months ago (2015-07-10 21:38:20 UTC) #2
pbos-webrtc
On 2015/07/10 21:38:20, pthatcher1 wrote: Haven't started looking proper yet, but do we need SetSendCodecs ...
5 years, 5 months ago (2015-07-11 08:46:47 UTC) #3
pbos-webrtc
https://codereview.webrtc.org/1229283003/diff/60001/talk/media/base/mediachannel.h File talk/media/base/mediachannel.h (right): https://codereview.webrtc.org/1229283003/diff/60001/talk/media/base/mediachannel.h#newcode988 talk/media/base/mediachannel.h:988: struct AudioSendParameters { Can I has ToString() methods on ...
5 years, 5 months ago (2015-07-11 08:48:16 UTC) #4
pbos-webrtc
Change looks good, but it feels like I had to read the same diff 4 ...
5 years, 5 months ago (2015-07-12 15:56:08 UTC) #5
pthatcher1
https://codereview.webrtc.org/1229283003/diff/60001/talk/app/webrtc/webrtcsdp.cc File talk/app/webrtc/webrtcsdp.cc (left): https://codereview.webrtc.org/1229283003/diff/60001/talk/app/webrtc/webrtcsdp.cc#oldcode167 talk/app/webrtc/webrtcsdp.cc:167: static const char kAttributeXGoogleBufferLatency[] = On 2015/07/12 15:56:08, pbos-webrtc ...
5 years, 5 months ago (2015-07-13 22:58:28 UTC) #6
pthatcher1
I factor some common code into SetRtpTransportParameters_w, which helped a little. I'll see if I ...
5 years, 5 months ago (2015-07-14 07:04:44 UTC) #7
pbos-webrtc
Looks better! https://codereview.webrtc.org/1229283003/diff/100001/talk/media/base/mediachannel.h File talk/media/base/mediachannel.h (right): https://codereview.webrtc.org/1229283003/diff/100001/talk/media/base/mediachannel.h#newcode146 talk/media/base/mediachannel.h:146: ost << val.ToString() << ","; Don't add ...
5 years, 5 months ago (2015-07-14 08:25:01 UTC) #8
pthatcher1
OK, I removed much more duplication. It's getting about as small as it can be. ...
5 years, 5 months ago (2015-07-16 10:47:11 UTC) #9
pbos-webrtc
https://codereview.webrtc.org/1229283003/diff/120001/talk/media/base/mediachannel.h File talk/media/base/mediachannel.h (right): https://codereview.webrtc.org/1229283003/diff/120001/talk/media/base/mediachannel.h#newcode1010 talk/media/base/mediachannel.h:1010: struct RtpParameters { This is part of another CL ...
5 years, 5 months ago (2015-07-16 14:39:17 UTC) #10
pbos-webrtc
https://codereview.webrtc.org/1229283003/diff/120001/talk/session/media/channel.cc File talk/session/media/channel.cc (right): https://codereview.webrtc.org/1229283003/diff/120001/talk/session/media/channel.cc#newcode153 talk/session/media/channel.cc:153: // *** Remove this comment (regardless of which CL ...
5 years, 5 months ago (2015-07-16 14:39:52 UTC) #11
pbos-webrtc
never mind, got confused over which CL this one was referring to
5 years, 5 months ago (2015-07-16 14:40:39 UTC) #12
pbos-webrtc
lgtm, but I'd really like someone else to take a look. Especially at channel.cc. https://codereview.webrtc.org/1229283003/diff/120001/talk/media/base/mediachannel.h ...
5 years, 5 months ago (2015-07-16 14:46:47 UTC) #13
pthatcher1
Taylor has agreed to review the CL as well, especially to make sure I kept ...
5 years, 5 months ago (2015-07-16 22:48:00 UTC) #15
Taylor Brandstetter
Here are a few minor things I found. Aside from these, the major changes are ...
5 years, 5 months ago (2015-07-18 00:16:31 UTC) #16
pthatcher1
https://codereview.webrtc.org/1229283003/diff/140001/talk/session/media/channel.cc File talk/session/media/channel.cc (right): https://codereview.webrtc.org/1229283003/diff/140001/talk/session/media/channel.cc#newcode160 talk/session/media/channel.cc:160: if (desc->has_codecs()) { On 2015/07/18 00:16:31, Taylor Brandstetter wrote: ...
5 years, 4 months ago (2015-07-31 10:59:20 UTC) #17
Taylor Brandstetter
lgtm
5 years, 4 months ago (2015-07-31 17:49:08 UTC) #18
the sun
https://codereview.webrtc.org/1229283003/diff/160001/talk/session/media/channel.cc File talk/session/media/channel.cc (right): https://codereview.webrtc.org/1229283003/diff/160001/talk/session/media/channel.cc#newcode1484 talk/session/media/channel.cc:1484: SafeSetError("Failed to set local video description recv parameters.", s/video/audio ...
5 years, 4 months ago (2015-08-04 14:32:18 UTC) #20
pthatcher1
5 years, 4 months ago (2015-08-07 23:05:48 UTC) #21
Message was sent while issue was closed.
Committed patchset #10 (id:180001) manually as
c2ee2c86f905991a8cd05ee1f35bea105b41e4e0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698