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

Issue 1972793003: Use scoped_refptr for On(Add|Remove)Stream and OnDataChannel. (Closed)

Created:
4 years, 7 months ago by Taylor Brandstetter
Modified:
4 years, 6 months ago
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

Use scoped_refptr for On(Add|Remove)Stream and OnDataChannel. This will make it much less likely for application developers to not realize the object is reference counted. It also fixes a bug in the Java PeerConnection binding, by allowing a reference to be transferred in the OnRemoveStream call via std::move. BUG=webrtc:5128 R=pthatcher@webrtc.org, tkchin@webrtc.org Committed: https://crrev.com/98cde26c7875497273f6bdde4b4dcb3e719386f2 Cr-Commit-Position: refs/heads/master@{#12976}

Patch Set 1 #

Patch Set 2 : Adding "deprecated" comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -51 lines) Patch
M webrtc/api/androidtests/src/org/webrtc/PeerConnectionTest.java View 2 chunks +57 lines, -6 lines 0 comments Download
M webrtc/api/java/jni/peerconnection_jni.cc View 3 chunks +10 lines, -5 lines 0 comments Download
M webrtc/api/peerconnection.cc View 4 chunks +19 lines, -6 lines 0 comments Download
M webrtc/api/peerconnection_unittest.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M webrtc/api/peerconnectionfactory_unittest.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M webrtc/api/peerconnectioninterface.h View 1 1 chunk +21 lines, -8 lines 0 comments Download
M webrtc/api/peerconnectioninterface_unittest.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M webrtc/api/test/peerconnectiontestwrapper.h View 1 chunk +6 lines, -3 lines 0 comments Download
M webrtc/api/test/peerconnectiontestwrapper.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/base/scoped_ref_ptr.h View 1 chunk +6 lines, -0 lines 0 comments Download
M webrtc/examples/peerconnection/client/conductor.h View 1 chunk +6 lines, -3 lines 0 comments Download
M webrtc/examples/peerconnection/client/conductor.cc View 1 chunk +6 lines, -9 lines 2 comments Download

Messages

Total messages: 12 (5 generated)
Taylor Brandstetter
Peter: Please take a look. This is something I've been wanting to do for a ...
4 years, 7 months ago (2016-05-12 17:41:14 UTC) #2
tkchin_webrtc
lgtm for conductor stuff fwiw I didn't actually write any of that, but it seems ...
4 years, 7 months ago (2016-05-12 17:50:23 UTC) #3
Taylor Brandstetter
https://codereview.webrtc.org/1972793003/diff/20001/webrtc/examples/peerconnection/client/conductor.cc File webrtc/examples/peerconnection/client/conductor.cc (right): https://codereview.webrtc.org/1972793003/diff/20001/webrtc/examples/peerconnection/client/conductor.cc#newcode162 webrtc/examples/peerconnection/client/conductor.cc:162: main_wnd_->QueueUIThreadCallback(NEW_STREAM_ADDED, stream.release()); On 2016/05/12 17:50:22, tkchin_webrtc wrote: > I ...
4 years, 7 months ago (2016-05-12 17:52:34 UTC) #4
pthatcher1
lgtm
4 years, 6 months ago (2016-05-27 22:22:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1972793003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1972793003/20001
4 years, 6 months ago (2016-05-31 16:32:09 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/13765)
4 years, 6 months ago (2016-05-31 18:13:24 UTC) #9
Taylor Brandstetter
4 years, 6 months ago (2016-05-31 20:02:37 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
98cde26c7875497273f6bdde4b4dcb3e719386f2 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698