OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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/chromium_port_allocator_factory.h" |
| 6 |
| 7 #include "remoting/protocol/chromium_socket_factory.h" |
| 8 #include "remoting/protocol/port_allocator.h" |
| 9 #include "remoting/protocol/transport_context.h" |
| 10 |
| 11 namespace remoting { |
| 12 namespace protocol { |
| 13 |
| 14 ChromiumPortAllocatorFactory::ChromiumPortAllocatorFactory() {} |
| 15 ChromiumPortAllocatorFactory::~ChromiumPortAllocatorFactory() {} |
| 16 |
| 17 scoped_ptr<cricket::PortAllocator> |
| 18 ChromiumPortAllocatorFactory::CreatePortAllocator( |
| 19 scoped_refptr<TransportContext> transport_context) { |
| 20 return make_scoped_ptr(new PortAllocator( |
| 21 make_scoped_ptr(new rtc::BasicNetworkManager()), |
| 22 make_scoped_ptr(new ChromiumPacketSocketFactory()), transport_context)); |
| 23 } |
| 24 |
| 25 } // namespace protocol |
| 26 } // namespace remoting |
OLD | NEW |