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 #include "remoting/protocol/ice_transport_factory.h" |
| 6 |
| 7 #include "remoting/protocol/ice_transport_session.h" |
| 8 #include "remoting/protocol/libjingle_transport_factory.h" |
| 9 #include "third_party/webrtc/p2p/client/httpportallocator.h" |
| 10 |
| 11 namespace remoting { |
| 12 namespace protocol { |
| 13 |
| 14 IceTransportFactory::IceTransportFactory( |
| 15 SignalStrategy* signal_strategy, |
| 16 scoped_ptr<cricket::HttpPortAllocatorBase> port_allocator, |
| 17 const NetworkSettings& network_settings, |
| 18 TransportRole role) |
| 19 : libjingle_transport_factory_( |
| 20 new LibjingleTransportFactory(signal_strategy, |
| 21 port_allocator.Pass(), |
| 22 network_settings, |
| 23 role)) {} |
| 24 IceTransportFactory::~IceTransportFactory() {} |
| 25 |
| 26 void IceTransportFactory::PrepareTokens() { |
| 27 libjingle_transport_factory_->PrepareTokens(); |
| 28 } |
| 29 |
| 30 scoped_ptr<TransportSession> |
| 31 IceTransportFactory::CreateTransportSession() { |
| 32 return make_scoped_ptr( |
| 33 new IceTransportSession(libjingle_transport_factory_.get())); |
| 34 } |
| 35 |
| 36 } // namespace protocol |
| 37 } // namespace remoting |
OLD | NEW |