Index: webrtc/api/webrtcsession.h |
diff --git a/webrtc/api/webrtcsession.h b/webrtc/api/webrtcsession.h |
index 27472c9136ccb1d02fbfa3f10397ccce3d5deb97..9495116471e89c5215e263e1d0b945906b4ffc10 100644 |
--- a/webrtc/api/webrtcsession.h |
+++ b/webrtc/api/webrtcsession.h |
@@ -25,6 +25,7 @@ |
#include "webrtc/base/sslidentity.h" |
#include "webrtc/base/thread.h" |
#include "webrtc/media/base/mediachannel.h" |
+#include "webrtc/p2p/base/candidate.h" |
#include "webrtc/p2p/base/transportcontroller.h" |
#include "webrtc/pc/mediasession.h" |
@@ -81,6 +82,10 @@ class IceObserver { |
// New Ice candidate have been found. |
virtual void OnIceCandidate(const IceCandidateInterface* candidate) = 0; |
+ // Some local ICE candidates have been removed. |
+ virtual void OnIceCandidatesRemoved( |
+ const std::vector<cricket::Candidate>& candidates) = 0; |
+ |
// Called whenever the state changes between receiving and not receiving. |
virtual void OnIceConnectionReceivingChange(bool receiving) {} |
@@ -205,6 +210,9 @@ class WebRtcSession : public AudioProviderInterface, |
std::string* err_desc); |
bool ProcessIceMessage(const IceCandidateInterface* ice_candidate); |
+ bool RemoveRemoteIceCandidates( |
+ const std::vector<cricket::Candidate>& candidates); |
+ |
bool SetIceTransports(PeerConnectionInterface::IceTransportsType type); |
cricket::IceConfig ParseIceConfig( |
@@ -431,7 +439,9 @@ class WebRtcSession : public AudioProviderInterface, |
void OnTransportControllerGatheringState(cricket::IceGatheringState state); |
void OnTransportControllerCandidatesGathered( |
const std::string& transport_name, |
- const cricket::Candidates& candidates); |
+ const std::vector<cricket::Candidate>& candidates); |
+ void OnTransportControllerCandidatesRemoved( |
+ const std::vector<cricket::Candidate>& candidates); |
std::string GetSessionErrorMsg(); |