Chromium Code Reviews| Index: remoting/jingle_glue/chromium_port_allocator.h |
| diff --git a/remoting/host/host_port_allocator.h b/remoting/jingle_glue/chromium_port_allocator.h |
| similarity index 77% |
| rename from remoting/host/host_port_allocator.h |
| rename to remoting/jingle_glue/chromium_port_allocator.h |
| index 47d08935fab6f5589c786aad771dd722cda7e76a..74b8eaf8781fc6b533553c6eac7a488afa55e5e9 100644 |
| --- a/remoting/host/host_port_allocator.h |
| +++ b/remoting/jingle_glue/chromium_port_allocator.h |
| @@ -2,8 +2,8 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef REMOTING_HOST_HOST_PORT_ALLOCATOR_H_ |
| -#define REMOTING_HOST_HOST_PORT_ALLOCATOR_H_ |
| +#ifndef REMOTING_JINGLE_GLUE_CHROMIUM_PORT_ALLOCATOR_H_ |
| +#define REMOTING_JINGLE_GLUE_CHROMIUM_PORT_ALLOCATOR_H_ |
| #include <set> |
| @@ -19,18 +19,17 @@ namespace remoting { |
| struct NetworkSettings; |
| -// An implementation of cricket::PortAllocator for libjingle that is |
| -// used by the remoting host. The main difference from |
| -// cricket::HttpPortAllocator is that it uses Chromium's HTTP stack |
| +// An implementation of cricket::PortAllocator for libjingle that |
| +// uses Chromium's network stack and configures itself according to |
| // when creating relay sessions. It also configures itself according |
|
Sergey Ulanov
2013/06/21 02:05:28
I think you want to remove this line and 'to' from
|
| // to the specified NetworkSettings. |
| -class HostPortAllocator : public cricket::HttpPortAllocatorBase { |
| +class ChromiumPortAllocator : public cricket::HttpPortAllocatorBase { |
| public: |
| - static scoped_ptr<HostPortAllocator> Create( |
| + static scoped_ptr<ChromiumPortAllocator> Create( |
| const scoped_refptr<net::URLRequestContextGetter>& url_context, |
| const NetworkSettings& network_settings); |
| - virtual ~HostPortAllocator(); |
| + virtual ~ChromiumPortAllocator(); |
| // cricket::HttpPortAllocatorBase overrides. |
| virtual cricket::PortAllocatorSession* CreateSessionInternal( |
| @@ -40,7 +39,7 @@ class HostPortAllocator : public cricket::HttpPortAllocatorBase { |
| const std::string& ice_password) OVERRIDE; |
| private: |
| - HostPortAllocator( |
| + ChromiumPortAllocator( |
| const scoped_refptr<net::URLRequestContextGetter>& url_context, |
| scoped_ptr<talk_base::NetworkManager> network_manager, |
| scoped_ptr<talk_base::PacketSocketFactory> socket_factory); |
| @@ -49,7 +48,7 @@ class HostPortAllocator : public cricket::HttpPortAllocatorBase { |
| scoped_ptr<talk_base::NetworkManager> network_manager_; |
| scoped_ptr<talk_base::PacketSocketFactory> socket_factory_; |
| - DISALLOW_COPY_AND_ASSIGN(HostPortAllocator); |
| + DISALLOW_COPY_AND_ASSIGN(ChromiumPortAllocator); |
| }; |
| } // namespace remoting |