OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_PROTOCOL_TRANSPORT_H_ | 5 #ifndef REMOTING_PROTOCOL_TRANSPORT_H_ |
6 #define REMOTING_PROTOCOL_TRANSPORT_H_ | 6 #define REMOTING_PROTOCOL_TRANSPORT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
14 #include "net/base/ip_endpoint.h" | 14 #include "net/base/ip_endpoint.h" |
15 #include "remoting/protocol/errors.h" | 15 #include "remoting/protocol/errors.h" |
16 | 16 |
17 namespace buzz { | 17 namespace buzz { |
18 class XmlElement; | 18 class XmlElement; |
19 } // namespace buzz | 19 } // namespace buzz |
20 | 20 |
21 namespace webrtc { | |
22 class PeerConnectionInterface; | |
23 } // namespace webrtc | |
24 | |
25 namespace remoting { | 21 namespace remoting { |
26 namespace protocol { | 22 namespace protocol { |
27 | 23 |
28 class Authenticator; | 24 class Authenticator; |
29 class DatagramChannelFactory; | |
30 class P2PDatagramSocket; | |
31 class StreamChannelFactory; | |
32 | 25 |
33 enum class TransportRole { | 26 enum class TransportRole { |
34 SERVER, | 27 SERVER, |
35 CLIENT, | 28 CLIENT, |
36 }; | 29 }; |
37 | 30 |
38 struct TransportRoute { | 31 struct TransportRoute { |
39 enum RouteType { | 32 enum RouteType { |
40 DIRECT, | 33 DIRECT, |
41 STUN, | 34 STUN, |
(...skipping 27 matching lines...) Expand all Loading... |
69 virtual void Start( | 62 virtual void Start( |
70 Authenticator* authenticator, | 63 Authenticator* authenticator, |
71 SendTransportInfoCallback send_transport_info_callback) = 0; | 64 SendTransportInfoCallback send_transport_info_callback) = 0; |
72 virtual bool ProcessTransportInfo(buzz::XmlElement* transport_info) = 0; | 65 virtual bool ProcessTransportInfo(buzz::XmlElement* transport_info) = 0; |
73 }; | 66 }; |
74 | 67 |
75 } // namespace protocol | 68 } // namespace protocol |
76 } // namespace remoting | 69 } // namespace remoting |
77 | 70 |
78 #endif // REMOTING_PROTOCOL_TRANSPORT_H_ | 71 #endif // REMOTING_PROTOCOL_TRANSPORT_H_ |
OLD | NEW |