OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROMIUM_PORT_ALLOCATOR_H_ | 5 #ifndef REMOTING_PROTOCOL_CHROMIUM_PORT_ALLOCATOR_H_ |
6 #define REMOTING_PROTOCOL_CHROMIUM_PORT_ALLOCATOR_H_ | 6 #define REMOTING_PROTOCOL_CHROMIUM_PORT_ALLOCATOR_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 // cricket::HttpPortAllocatorBase overrides. | 34 // cricket::HttpPortAllocatorBase overrides. |
35 virtual cricket::PortAllocatorSession* CreateSessionInternal( | 35 virtual cricket::PortAllocatorSession* CreateSessionInternal( |
36 const std::string& content_name, | 36 const std::string& content_name, |
37 int component, | 37 int component, |
38 const std::string& ice_username_fragment, | 38 const std::string& ice_username_fragment, |
39 const std::string& ice_password) OVERRIDE; | 39 const std::string& ice_password) OVERRIDE; |
40 | 40 |
41 private: | 41 private: |
42 ChromiumPortAllocator( | 42 ChromiumPortAllocator( |
43 const scoped_refptr<net::URLRequestContextGetter>& url_context, | 43 const scoped_refptr<net::URLRequestContextGetter>& url_context, |
44 scoped_ptr<talk_base::NetworkManager> network_manager, | 44 scoped_ptr<rtc::NetworkManager> network_manager, |
45 scoped_ptr<talk_base::PacketSocketFactory> socket_factory); | 45 scoped_ptr<rtc::PacketSocketFactory> socket_factory); |
46 | 46 |
47 scoped_refptr<net::URLRequestContextGetter> url_context_; | 47 scoped_refptr<net::URLRequestContextGetter> url_context_; |
48 scoped_ptr<talk_base::NetworkManager> network_manager_; | 48 scoped_ptr<rtc::NetworkManager> network_manager_; |
49 scoped_ptr<talk_base::PacketSocketFactory> socket_factory_; | 49 scoped_ptr<rtc::PacketSocketFactory> socket_factory_; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(ChromiumPortAllocator); | 51 DISALLOW_COPY_AND_ASSIGN(ChromiumPortAllocator); |
52 }; | 52 }; |
53 | 53 |
54 } // namespace protocol | 54 } // namespace protocol |
55 } // namespace remoting | 55 } // namespace remoting |
56 | 56 |
57 #endif // REMOTING_HOST_HOST_PORT_ALLOCATOR_H_ | 57 #endif // REMOTING_HOST_HOST_PORT_ALLOCATOR_H_ |
OLD | NEW |