| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef REMOTING_PROTOCOL_ICE_TRANSPORT_FACTORY_H_ | |
| 6 #define REMOTING_PROTOCOL_ICE_TRANSPORT_FACTORY_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "remoting/protocol/network_settings.h" | |
| 10 #include "remoting/protocol/transport.h" | |
| 11 | |
| 12 namespace cricket { | |
| 13 class HttpPortAllocatorBase; | |
| 14 } // namespace cricket | |
| 15 | |
| 16 namespace remoting { | |
| 17 | |
| 18 class SignalStrategy; | |
| 19 | |
| 20 namespace protocol { | |
| 21 | |
| 22 class LibjingleTransportFactory; | |
| 23 | |
| 24 class IceTransportFactory : public TransportFactory { | |
| 25 public: | |
| 26 IceTransportFactory( | |
| 27 SignalStrategy* signal_strategy, | |
| 28 scoped_ptr<cricket::HttpPortAllocatorBase> port_allocator, | |
| 29 const NetworkSettings& network_settings, | |
| 30 TransportRole role); | |
| 31 ~IceTransportFactory() override; | |
| 32 | |
| 33 // TransportFactory interface. | |
| 34 void PrepareTokens() override; | |
| 35 scoped_ptr<TransportSession> CreateTransportSession() override; | |
| 36 | |
| 37 private: | |
| 38 scoped_ptr<LibjingleTransportFactory> libjingle_transport_factory_; | |
| 39 | |
| 40 DISALLOW_COPY_AND_ASSIGN(IceTransportFactory); | |
| 41 }; | |
| 42 | |
| 43 } // namespace protocol | |
| 44 } // namespace remoting | |
| 45 | |
| 46 #endif // REMOTING_PROTOCOL_ICE_TRANSPORT_FACTORY_H_ | |
| OLD | NEW |