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

Unified Diff: webrtc/api/peerconnectioninterface.h

Issue 2748253003: Pass ownership of candidate to PeerConnection::OnIceCandidate (Closed)
Patch Set: Remove old "OnIceCandidate" and "using" workarounds. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/jsepicecandidate.h ('k') | webrtc/examples/peerconnection/client/conductor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/peerconnectioninterface.h
diff --git a/webrtc/api/peerconnectioninterface.h b/webrtc/api/peerconnectioninterface.h
index b346783bb37048699b95e256026b8bf1a92bb08e..bd9d93ce837fc5e82c434c7edab98d5a81bff6f5 100644
--- a/webrtc/api/peerconnectioninterface.h
+++ b/webrtc/api/peerconnectioninterface.h
@@ -801,7 +801,8 @@ class PeerConnectionObserver {
PeerConnectionInterface::IceGatheringState new_state) = 0;
// A new ICE candidate has been gathered.
- virtual void OnIceCandidate(const IceCandidateInterface* candidate) = 0;
+ virtual void OnIceCandidate(
joachim 2017/03/19 22:32:22 The better solution would be to keep the old versi
+ rtc::scoped_refptr<IceCandidateInterface> candidate) = 0;
// Ice candidates have been removed.
// TODO(honghaiz): Make this a pure virtual method when all its subclasses
« no previous file with comments | « webrtc/api/jsepicecandidate.h ('k') | webrtc/examples/peerconnection/client/conductor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698