| Index: webrtc/p2p/base/transportchannel.h
|
| diff --git a/webrtc/p2p/base/transportchannel.h b/webrtc/p2p/base/transportchannel.h
|
| index c7c3c755f3a97e193689170f7cea6ba047bf3fc8..786987538718a9de131135ef0aff0e1947484137 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,8 +56,8 @@ 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 TransportState GetState() const {
|
| + return TransportState::STATE_CONNECTING;
|
| }
|
|
|
| const std::string& transport_name() const { return transport_name_; }
|
|
|