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

Issue 2946663003: content::RTCRtpSenders/Receivers using track adapter references. (Closed)

Created:
3 years, 6 months ago by hbos_chromium
Modified:
3 years, 6 months ago
Reviewers:
Guido Urdaneta
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

content::RTCRtpSenders/Receivers using track adapter references. Because senders and receivers can live independently of streams, they should have their own track adapter references to ensure the glue between blink and webrtc tracks holds for as long as they are alive. In this CL, senders and receivers are still bound to tracks that are part of streams, but with this change there is nothing that prevents a sender or receiver to have a track that is not bound to any stream. This will unblock addTrack, removeTrack and replaceTrack work. Additionally, RTCPeerConnection's maps of senders and receivers is changed to use WeakMember. This simplifies things, the maps are cleaned up by themselves and we don't need to concern ourselves with for what duration a sender or receiver is considered "active". This will unblock having transceivers and allows the possibility for senders and receivers to be re-used after becoming "inactive" as they should according to spec. BUG=700916, 705901 Review-Url: https://codereview.chromium.org/2946663003 Cr-Commit-Position: refs/heads/master@{#480800} Committed: https://chromium.googlesource.com/chromium/src/+/ea1bc97d4c563ab5383913096697b679f0a37b63

Patch Set 1 #

Total comments: 9

Patch Set 2 : const scoped_refptr<> ref #

Patch Set 3 : Rebase #

Patch Set 4 : scoped_refptr and std::move #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -156 lines) Patch
M content/renderer/media/rtc_peer_connection_handler.h View 1 chunk +0 lines, -7 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler.cc View 4 chunks +13 lines, -72 lines 0 comments Download
M content/renderer/media/webrtc/rtc_rtp_receiver.h View 1 2 3 3 chunks +9 lines, -3 lines 0 comments Download
M content/renderer/media/webrtc/rtc_rtp_receiver.cc View 1 2 3 3 chunks +11 lines, -21 lines 0 comments Download
M content/renderer/media/webrtc/rtc_rtp_sender.h View 1 2 3 3 chunks +8 lines, -3 lines 0 comments Download
M content/renderer/media/webrtc/rtc_rtp_sender.cc View 1 2 3 3 chunks +13 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h View 1 2 2 chunks +2 lines, -8 lines 3 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp View 1 2 3 chunks +0 lines, -32 lines 0 comments Download

Messages

Total messages: 31 (18 generated)
hbos_chromium
Please take a look, guidou.
3 years, 6 months ago (2017-06-19 14:25:11 UTC) #6
Guido Urdaneta
Quick comments: 1. Add a BUG= section to the description. 2. Does this CL not ...
3 years, 6 months ago (2017-06-19 15:22:56 UTC) #7
hbos_chromium
On 2017/06/19 15:22:56, Guido Urdaneta wrote: > Quick comments: > 1. Add a BUG= section ...
3 years, 6 months ago (2017-06-19 15:38:53 UTC) #9
Guido Urdaneta
https://codereview.chromium.org/2946663003/diff/20001/content/renderer/media/webrtc/rtc_rtp_receiver.h File content/renderer/media/webrtc/rtc_rtp_receiver.h (right): https://codereview.chromium.org/2946663003/diff/20001/content/renderer/media/webrtc/rtc_rtp_receiver.h#newcode26 content/renderer/media/webrtc/rtc_rtp_receiver.h:26: RTCRtpReceiver(webrtc::RtpReceiverInterface* webrtc_rtp_receiver, Update raw pointer to scoped_refptr by value. ...
3 years, 6 months ago (2017-06-19 16:10:52 UTC) #12
hbos_chromium
PTAL guidou. https://codereview.chromium.org/2946663003/diff/20001/content/renderer/media/webrtc/rtc_rtp_receiver.h File content/renderer/media/webrtc/rtc_rtp_receiver.h (right): https://codereview.chromium.org/2946663003/diff/20001/content/renderer/media/webrtc/rtc_rtp_receiver.h#newcode26 content/renderer/media/webrtc/rtc_rtp_receiver.h:26: RTCRtpReceiver(webrtc::RtpReceiverInterface* webrtc_rtp_receiver, On 2017/06/19 16:10:51, Guido Urdaneta ...
3 years, 6 months ago (2017-06-19 16:45:39 UTC) #13
Guido Urdaneta
https://codereview.chromium.org/2946663003/diff/20001/content/renderer/media/webrtc/rtc_rtp_receiver.h File content/renderer/media/webrtc/rtc_rtp_receiver.h (right): https://codereview.chromium.org/2946663003/diff/20001/content/renderer/media/webrtc/rtc_rtp_receiver.h#newcode26 content/renderer/media/webrtc/rtc_rtp_receiver.h:26: RTCRtpReceiver(webrtc::RtpReceiverInterface* webrtc_rtp_receiver, On 2017/06/19 16:45:39, hbos_chromium wrote: > On ...
3 years, 6 months ago (2017-06-20 11:26:16 UTC) #20
hbos_chromium
PTAL guidou - changed to scoped_refptr and std::move.
3 years, 6 months ago (2017-06-20 11:26:54 UTC) #21
Guido Urdaneta
lgtm
3 years, 6 months ago (2017-06-20 11:29:35 UTC) #22
Guido Urdaneta
https://codereview.chromium.org/2946663003/diff/80001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h (right): https://codereview.chromium.org/2946663003/diff/80001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h#newcode214 third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h:214: friend class RTCPeerConnectionTest; Maybe I missed this on another ...
3 years, 6 months ago (2017-06-20 11:32:16 UTC) #23
Guido Urdaneta
https://codereview.chromium.org/2946663003/diff/80001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h (right): https://codereview.chromium.org/2946663003/diff/80001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h#newcode214 third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h:214: friend class RTCPeerConnectionTest; On 2017/06/20 11:32:16, Guido Urdaneta wrote: ...
3 years, 6 months ago (2017-06-20 11:47:42 UTC) #24
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/2946663003/80001
3 years, 6 months ago (2017-06-20 11:51:20 UTC) #27
hbos_chromium
https://codereview.chromium.org/2946663003/diff/80001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h (right): https://codereview.chromium.org/2946663003/diff/80001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h#newcode214 third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h:214: friend class RTCPeerConnectionTest; On 2017/06/20 11:47:42, Guido Urdaneta wrote: ...
3 years, 6 months ago (2017-06-20 12:05:49 UTC) #28
commit-bot: I haz the power
3 years, 6 months ago (2017-06-20 13:05:03 UTC) #31
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/ea1bc97d4c563ab5383913096697...

Powered by Google App Engine
This is Rietveld 408576698