OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_ICE_TRANSPORT_H_ | 5 #ifndef REMOTING_PROTOCOL_ICE_TRANSPORT_H_ |
6 #define REMOTING_PROTOCOL_ICE_TRANSPORT_H_ | 6 #define REMOTING_PROTOCOL_ICE_TRANSPORT_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 ~IceTransport() override; | 34 ~IceTransport() override; |
35 | 35 |
36 // Returns a closure that must be called before transport channels start | 36 // Returns a closure that must be called before transport channels start |
37 // connecting . | 37 // connecting . |
38 base::Closure GetCanStartClosure(); | 38 base::Closure GetCanStartClosure(); |
39 | 39 |
40 // Transport interface. | 40 // Transport interface. |
41 void Start(EventHandler* event_handler, | 41 void Start(EventHandler* event_handler, |
42 Authenticator* authenticator) override; | 42 Authenticator* authenticator) override; |
43 bool ProcessTransportInfo(buzz::XmlElement* transport_info) override; | 43 bool ProcessTransportInfo(buzz::XmlElement* transport_info) override; |
44 DatagramChannelFactory* GetDatagramChannelFactory() override; | |
45 StreamChannelFactory* GetStreamChannelFactory() override; | 44 StreamChannelFactory* GetStreamChannelFactory() override; |
46 StreamChannelFactory* GetMultiplexedChannelFactory() override; | 45 StreamChannelFactory* GetMultiplexedChannelFactory() override; |
47 | 46 |
48 private: | 47 private: |
49 typedef std::map<std::string, IceTransportChannel*> ChannelsMap; | 48 typedef std::map<std::string, IceTransportChannel*> ChannelsMap; |
50 | 49 |
51 void OnCanStart(); | 50 void OnCanStart(); |
52 | 51 |
53 // DatagramChannelFactory interface. | 52 // DatagramChannelFactory interface. |
54 void CreateChannel(const std::string& name, | 53 void CreateChannel(const std::string& name, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 base::WeakPtrFactory<IceTransport> weak_factory_; | 100 base::WeakPtrFactory<IceTransport> weak_factory_; |
102 | 101 |
103 DISALLOW_COPY_AND_ASSIGN(IceTransport); | 102 DISALLOW_COPY_AND_ASSIGN(IceTransport); |
104 }; | 103 }; |
105 | 104 |
106 } // namespace protocol | 105 } // namespace protocol |
107 } // namespace remoting | 106 } // namespace remoting |
108 | 107 |
109 #endif // REMOTING_PROTOCOL_ICE_TRANSPORT_H_ | 108 #endif // REMOTING_PROTOCOL_ICE_TRANSPORT_H_ |
110 | 109 |
OLD | NEW |