OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_P2P_BASE_ICETRANSPORTINTERNAL_H_ | 11 #ifndef WEBRTC_P2P_BASE_ICETRANSPORTINTERNAL_H_ |
12 #define WEBRTC_P2P_BASE_ICETRANSPORTINTERNAL_H_ | 12 #define WEBRTC_P2P_BASE_ICETRANSPORTINTERNAL_H_ |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "webrtc/p2p/base/candidate.h" | 16 #include "webrtc/p2p/base/candidate.h" |
17 #include "webrtc/p2p/base/candidatepairinterface.h" | 17 #include "webrtc/p2p/base/candidatepairinterface.h" |
18 #include "webrtc/p2p/base/jseptransport.h" | 18 #include "webrtc/p2p/base/jseptransport.h" |
19 #include "webrtc/p2p/base/packettransportinterface.h" | 19 #include "webrtc/p2p/base/packettransportinternal.h" |
20 #include "webrtc/p2p/base/transportdescription.h" | 20 #include "webrtc/p2p/base/transportdescription.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 class MetricsObserverInterface; | 23 class MetricsObserverInterface; |
24 } | 24 } |
25 | 25 |
26 namespace cricket { | 26 namespace cricket { |
27 | 27 |
28 class IceTransportInternal; | 28 class IceTransportInternal; |
29 typedef IceTransportInternal IceTransportInternal2; | 29 typedef IceTransportInternal IceTransportInternal2; |
(...skipping 10 matching lines...) Expand all Loading... |
40 // TODO(zhihuang): Remove this once it's no longer used in | 40 // TODO(zhihuang): Remove this once it's no longer used in |
41 // remoting/protocol/libjingle_transport_factory.cc | 41 // remoting/protocol/libjingle_transport_factory.cc |
42 enum IceProtocolType { | 42 enum IceProtocolType { |
43 ICEPROTO_RFC5245 // Standard RFC 5245 version of ICE. | 43 ICEPROTO_RFC5245 // Standard RFC 5245 version of ICE. |
44 }; | 44 }; |
45 | 45 |
46 // IceTransportInternal is an internal abstract class that does ICE. | 46 // IceTransportInternal is an internal abstract class that does ICE. |
47 // Once the public interface is supported, | 47 // Once the public interface is supported, |
48 // (https://www.w3.org/TR/webrtc/#rtcicetransport-interface) | 48 // (https://www.w3.org/TR/webrtc/#rtcicetransport-interface) |
49 // the IceTransportInterface will be split from this class. | 49 // the IceTransportInterface will be split from this class. |
50 class IceTransportInternal : public rtc::PacketTransportInterface { | 50 class IceTransportInternal : public rtc::PacketTransportInternal { |
51 public: | 51 public: |
52 virtual ~IceTransportInternal(){}; | 52 virtual ~IceTransportInternal(){}; |
53 | 53 |
54 virtual IceTransportState GetState() const = 0; | 54 virtual IceTransportState GetState() const = 0; |
55 | 55 |
56 virtual const std::string& transport_name() const = 0; | 56 virtual const std::string& transport_name() const = 0; |
57 | 57 |
58 virtual int component() const = 0; | 58 virtual int component() const = 0; |
59 | 59 |
60 virtual IceRole GetIceRole() const = 0; | 60 virtual IceRole GetIceRole() const = 0; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 // Debugging description of this transport. | 140 // Debugging description of this transport. |
141 std::string debug_name() const override { | 141 std::string debug_name() const override { |
142 return transport_name() + " " + std::to_string(component()); | 142 return transport_name() + " " + std::to_string(component()); |
143 } | 143 } |
144 }; | 144 }; |
145 | 145 |
146 } // namespace cricket | 146 } // namespace cricket |
147 | 147 |
148 #endif // WEBRTC_P2P_BASE_ICETRANSPORTINTERNAL_H_ | 148 #endif // WEBRTC_P2P_BASE_ICETRANSPORTINTERNAL_H_ |
OLD | NEW |