| Index: webrtc/p2p/base/transportchannel.h
|
| diff --git a/webrtc/p2p/base/transportchannel.h b/webrtc/p2p/base/transportchannel.h
|
| index c7c3c755f3a97e193689170f7cea6ba047bf3fc8..64155453afb4400e9105e624ceb6bfc8fc6b46a2 100644
|
| --- a/webrtc/p2p/base/transportchannel.h
|
| +++ b/webrtc/p2p/base/transportchannel.h
|
| @@ -15,19 +15,20 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| -#include "webrtc/base/constructormagic.h"
|
| -#include "webrtc/p2p/base/candidate.h"
|
| -#include "webrtc/p2p/base/candidatepairinterface.h"
|
| -#include "webrtc/p2p/base/packettransportinterface.h"
|
| -#include "webrtc/p2p/base/jseptransport.h"
|
| -#include "webrtc/p2p/base/transportdescription.h"
|
| #include "webrtc/base/asyncpacketsocket.h"
|
| #include "webrtc/base/basictypes.h"
|
| +#include "webrtc/base/constructormagic.h"
|
| #include "webrtc/base/dscp.h"
|
| #include "webrtc/base/sigslot.h"
|
| #include "webrtc/base/socket.h"
|
| #include "webrtc/base/sslidentity.h"
|
| #include "webrtc/base/sslstreamadapter.h"
|
| +#include "webrtc/p2p/base/candidate.h"
|
| +#include "webrtc/p2p/base/candidatepairinterface.h"
|
| +#include "webrtc/p2p/base/jseptransport.h"
|
| +#include "webrtc/p2p/base/icetransportinternal.h"
|
| +#include "webrtc/p2p/base/packettransportinterface.h"
|
| +#include "webrtc/p2p/base/transportdescription.h"
|
|
|
| namespace cricket {
|
|
|
| @@ -40,14 +41,6 @@ enum PacketFlags {
|
| // crypto provided by the transport (e.g. DTLS)
|
| };
|
|
|
| -// Used to indicate channel's connection state.
|
| -enum TransportChannelState {
|
| - STATE_INIT,
|
| - STATE_CONNECTING, // Will enter this state once a connection is created
|
| - STATE_COMPLETED,
|
| - STATE_FAILED
|
| -};
|
| -
|
| // A TransportChannel represents one logical stream of packets that are sent
|
| // between the two sides of a session.
|
| // TODO(deadbeef): This interface currently represents the unity of an ICE
|
| @@ -63,13 +56,13 @@ class TransportChannel : public rtc::PacketTransportInterface {
|
|
|
| // TODO(guoweis) - Make this pure virtual once all subclasses of
|
| // TransportChannel have this defined.
|
| - virtual TransportChannelState GetState() const {
|
| - return TransportChannelState::STATE_CONNECTING;
|
| + virtual IceTransportState GetState() const {
|
| + return IceTransportState::STATE_CONNECTING;
|
| }
|
|
|
| const std::string& transport_name() const { return transport_name_; }
|
| int component() const { return component_; }
|
| - const std::string debug_name() const override {
|
| + std::string debug_name() const override {
|
| return transport_name() + " " + std::to_string(component());
|
| }
|
|
|
|
|