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

Issue 2023373002: Separating internal and external methods of RtpSender/RtpReceiver. (Closed)

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

Description

Separating internal and external methods of RtpSender/RtpReceiver. This moves the implementation specific methods to separate classes (RtpSenderInternal/RtpReceiverInternal) so that the interface classes represent the interface that external applications can rely on. The reason this wasn't done earlier was that PeerConnection needed to store proxy pointers, but also needed to access implementation- specific methods on the underlying objects. This is now possible by using "RtpSenderProxyWithInternal<RtpSenderInternal>", which is a proxy that implements RtpSenderInterface but also provides direct access to an RtpSenderInternal. Committed: https://crrev.com/a601f5c86310c078c21161947f526f2d1e65c9cc Cr-Commit-Position: refs/heads/master@{#13056}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Giving RtpReceiver the same treatment and fixing formatting. #

Total comments: 20

Patch Set 3 : Responding to pthatcher@'s comments (renaming things) #

Patch Set 4 : Renaming "ProxyTo<X>" to "ProxyWithInternal<X>" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -196 lines) Patch
M webrtc/api/peerconnection.h View 1 2 3 3 chunks +12 lines, -7 lines 0 comments Download
M webrtc/api/peerconnection.cc View 1 2 3 19 chunks +80 lines, -57 lines 0 comments Download
M webrtc/api/peerconnectioninterface_unittest.cc View 1 3 chunks +6 lines, -4 lines 0 comments Download
M webrtc/api/proxy.h View 1 2 3 2 chunks +72 lines, -55 lines 0 comments Download
M webrtc/api/proxy_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/api/rtpreceiver.h View 1 4 chunks +14 lines, -6 lines 0 comments Download
M webrtc/api/rtpreceiver.cc View 1 4 chunks +18 lines, -18 lines 0 comments Download
M webrtc/api/rtpreceiverinterface.h View 1 2 chunks +0 lines, -3 lines 0 comments Download
M webrtc/api/rtpsender.h View 1 2 3 9 chunks +42 lines, -14 lines 0 comments Download
M webrtc/api/rtpsender.cc View 1 2 3 4 chunks +18 lines, -18 lines 0 comments Download
M webrtc/api/rtpsenderinterface.h View 4 chunks +7 lines, -14 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
Taylor Brandstetter
https://codereview.webrtc.org/2023373002/diff/1/webrtc/api/proxy.h File webrtc/api/proxy.h (right): https://codereview.webrtc.org/2023373002/diff/1/webrtc/api/proxy.h#newcode311 webrtc/api/proxy.h:311: class c##ProxyEx; \ I know that "ProxyEx" is a ...
4 years, 6 months ago (2016-06-01 20:04:26 UTC) #4
pthatcher1
https://codereview.webrtc.org/2023373002/diff/20001/webrtc/api/peerconnection.h File webrtc/api/peerconnection.h (right): https://codereview.webrtc.org/2023373002/diff/20001/webrtc/api/peerconnection.h#newcode342 webrtc/api/peerconnection.h:342: rtc::scoped_refptr<RtpReceiverProxyEx<RtpReceiverInternal>>>::iterator I think I need to chat with you ...
4 years, 6 months ago (2016-06-01 22:18:57 UTC) #5
Taylor Brandstetter
https://codereview.webrtc.org/2023373002/diff/20001/webrtc/api/peerconnection.h File webrtc/api/peerconnection.h (right): https://codereview.webrtc.org/2023373002/diff/20001/webrtc/api/peerconnection.h#newcode342 webrtc/api/peerconnection.h:342: rtc::scoped_refptr<RtpReceiverProxyEx<RtpReceiverInternal>>>::iterator On 2016/06/01 22:18:57, pthatcher1 wrote: > I think ...
4 years, 6 months ago (2016-06-01 23:13:02 UTC) #6
pthatcher1
I think I understand it and like it. I just want to change the names ...
4 years, 6 months ago (2016-06-03 00:23:50 UTC) #7
Taylor Brandstetter
https://codereview.webrtc.org/2023373002/diff/20001/webrtc/api/peerconnection.cc File webrtc/api/peerconnection.cc (right): https://codereview.webrtc.org/2023373002/diff/20001/webrtc/api/peerconnection.cc#newcode362 webrtc/api/peerconnection.cc:362: sender->get()->stream_id()); On 2016/06/03 00:23:50, pthatcher1 wrote: > would it ...
4 years, 6 months ago (2016-06-03 22:48:39 UTC) #8
pthatcher1
https://codereview.webrtc.org/2023373002/diff/20001/webrtc/api/peerconnection.h File webrtc/api/peerconnection.h (right): https://codereview.webrtc.org/2023373002/diff/20001/webrtc/api/peerconnection.h#newcode337 webrtc/api/peerconnection.h:337: RtpSenderInternal* FindSenderById(const std::string& id); On 2016/06/03 22:48:39, Taylor Brandstetter ...
4 years, 6 months ago (2016-06-03 23:05:49 UTC) #9
pthatcher1
lgtm, assuming a name of ProxyWithInternal<RtpSenderBase> On 2016/06/03 23:05:49, pthatcher1 wrote: > https://codereview.webrtc.org/2023373002/diff/20001/webrtc/api/peerconnection.h > File ...
4 years, 6 months ago (2016-06-03 23:24:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2023373002/60001
4 years, 6 months ago (2016-06-06 19:49:37 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-06 21:27:44 UTC) #16
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 21:27:53 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a601f5c86310c078c21161947f526f2d1e65c9cc
Cr-Commit-Position: refs/heads/master@{#13056}

Powered by Google App Engine
This is Rietveld 408576698