Index: webrtc/p2p/base/transportchannelimpl.h |
diff --git a/webrtc/p2p/base/transportchannelimpl.h b/webrtc/p2p/base/transportchannelimpl.h |
index 2d660f70f254834bc0f081f86393d195057a623c..2db4bbe313262cb44ad16fc14bb79d8547a0834e 100644 |
--- a/webrtc/p2p/base/transportchannelimpl.h |
+++ b/webrtc/p2p/base/transportchannelimpl.h |
@@ -32,8 +32,9 @@ enum IceProtocolType { |
// client. |
class TransportChannelImpl : public TransportChannel { |
public: |
- explicit TransportChannelImpl(const std::string& content_name, int component) |
- : TransportChannel(content_name, component) {} |
+ explicit TransportChannelImpl(const std::string& transport_name, |
+ int component) |
+ : TransportChannel(transport_name, component) {} |
// Returns the transport that created this channel. |
virtual Transport* GetTransport() = 0; |
@@ -61,13 +62,10 @@ class TransportChannelImpl : public TransportChannel { |
virtual void SetReceivingTimeout(int timeout_ms) = 0; |
// Begins the process of attempting to make a connection to the other client. |
+ // This includes starting to gather candidates. |
virtual void Connect() = 0; |
- // Allows an individual channel to request signaling and be notified when it |
- // is ready. This is useful if the individual named channels have need to |
- // send their own transport-info stanzas. |
- sigslot::signal1<TransportChannelImpl*> SignalRequestSignaling; |
- virtual void OnSignalingReady() = 0; |
+ sigslot::signal1<TransportChannelImpl*> SignalGatheringState; |
// Handles sending and receiving of candidates. The Transport |
// receives the candidates and may forward them to the relevant |
@@ -77,9 +75,11 @@ class TransportChannelImpl : public TransportChannel { |
// channel, they cannot return an error if the message is invalid. |
// It is assumed that the Transport will have checked validity |
// before forwarding. |
- sigslot::signal2<TransportChannelImpl*, |
- const Candidate&> SignalCandidateReady; |
- virtual void OnCandidate(const Candidate& candidate) = 0; |
+ sigslot::signal2<TransportChannelImpl*, const Candidate&> |
+ SignalCandidateGathered; |
+ virtual void AddRemoteCandidate(const Candidate& candidate) = 0; |
+ |
+ virtual IceGatheringState gathering_state() const = 0; |
// DTLS methods |
virtual bool SetLocalCertificate( |
@@ -92,9 +92,6 @@ class TransportChannelImpl : public TransportChannel { |
virtual bool SetSslRole(rtc::SSLRole role) = 0; |
- // TransportChannel is forwarding this signal from PortAllocatorSession. |
- sigslot::signal1<TransportChannelImpl*> SignalCandidatesAllocationDone; |
- |
// Invoked when there is conflict in the ICE role between local and remote |
// agents. |
sigslot::signal1<TransportChannelImpl*> SignalRoleConflict; |