Index: webrtc/p2p/base/dtlstransportchannel.h |
diff --git a/webrtc/p2p/base/dtlstransportchannel.h b/webrtc/p2p/base/dtlstransportchannel.h |
index 9c14314135663d58d5edc6a3109cb2bf06c56859..8195eee53a3fddd3b613c04c0db6b60f371b4cbf 100644 |
--- a/webrtc/p2p/base/dtlstransportchannel.h |
+++ b/webrtc/p2p/base/dtlstransportchannel.h |
@@ -27,7 +27,7 @@ namespace cricket { |
// the bottom and a StreamInterface on the top. |
class StreamInterfaceChannel : public rtc::StreamInterface { |
public: |
- StreamInterfaceChannel(TransportChannel* channel); |
+ explicit StreamInterfaceChannel(TransportChannel* channel); |
// Push in a packet; this gets pulled out from Read(). |
bool OnPacketReceived(const char* data, size_t size); |
@@ -191,11 +191,12 @@ class DtlsTransportChannelWrapper : public TransportChannelImpl { |
virtual void Connect(); |
- virtual void OnSignalingReady() { |
- channel_->OnSignalingReady(); |
+ virtual IceGatheringState gathering_state() const { |
+ return channel_->gathering_state(); |
} |
- virtual void OnCandidate(const Candidate& candidate) { |
- channel_->OnCandidate(candidate); |
+ |
+ virtual void AddRemoteCandidate(const Candidate& candidate) { |
+ channel_->AddRemoteCandidate(candidate); |
} |
void SetReceivingTimeout(int receiving_timeout_ms) { |
@@ -216,9 +217,8 @@ class DtlsTransportChannelWrapper : public TransportChannelImpl { |
bool SetupDtls(); |
bool MaybeStartDtls(); |
bool HandleDtlsPacket(const char* data, size_t size); |
- void OnRequestSignaling(TransportChannelImpl* channel); |
- void OnCandidateReady(TransportChannelImpl* channel, const Candidate& c); |
- void OnCandidatesAllocationDone(TransportChannelImpl* channel); |
+ void OnGatheringState(TransportChannelImpl* channel); |
+ void OnCandidateGathered(TransportChannelImpl* channel, const Candidate& c); |
void OnRoleConflict(TransportChannelImpl* channel); |
void OnRouteChange(TransportChannel* channel, const Candidate& candidate); |
void OnConnectionRemoved(TransportChannelImpl* channel); |