OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CLIENT_PLUGIN_PEPPER_PORT_ALLOCATOR_H_ | 5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_PORT_ALLOCATOR_H_ |
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_PORT_ALLOCATOR_H_ | 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_PORT_ALLOCATOR_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "ppapi/cpp/instance_handle.h" | 10 #include "ppapi/cpp/instance_handle.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 // cricket::HttpPortAllocatorBase overrides. | 30 // cricket::HttpPortAllocatorBase overrides. |
31 virtual cricket::PortAllocatorSession* CreateSessionInternal( | 31 virtual cricket::PortAllocatorSession* CreateSessionInternal( |
32 const std::string& content_name, | 32 const std::string& content_name, |
33 int component, | 33 int component, |
34 const std::string& ice_username_fragment, | 34 const std::string& ice_username_fragment, |
35 const std::string& ice_password) OVERRIDE; | 35 const std::string& ice_password) OVERRIDE; |
36 | 36 |
37 private: | 37 private: |
38 PepperPortAllocator( | 38 PepperPortAllocator( |
39 const pp::InstanceHandle& instance, | 39 const pp::InstanceHandle& instance, |
40 scoped_ptr<talk_base::NetworkManager> network_manager, | 40 scoped_ptr<rtc::NetworkManager> network_manager, |
41 scoped_ptr<talk_base::PacketSocketFactory> socket_factory); | 41 scoped_ptr<rtc::PacketSocketFactory> socket_factory); |
42 | 42 |
43 pp::InstanceHandle instance_; | 43 pp::InstanceHandle instance_; |
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 DISALLOW_COPY_AND_ASSIGN(PepperPortAllocator); | 47 DISALLOW_COPY_AND_ASSIGN(PepperPortAllocator); |
48 }; | 48 }; |
49 | 49 |
50 } // namespace remoting | 50 } // namespace remoting |
51 | 51 |
52 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_PORT_ALLOCATOR_H_ | 52 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_PORT_ALLOCATOR_H_ |
OLD | NEW |