| Index: remoting/protocol/native_port_allocator.h
|
| diff --git a/remoting/host/host_port_allocator.h b/remoting/protocol/native_port_allocator.h
|
| similarity index 81%
|
| rename from remoting/host/host_port_allocator.h
|
| rename to remoting/protocol/native_port_allocator.h
|
| index 47d08935fab6f5589c786aad771dd722cda7e76a..71b0a6a231b3e51c0242cae391a1d7008e033d1a 100644
|
| --- a/remoting/host/host_port_allocator.h
|
| +++ b/remoting/protocol/native_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_PROTOCOL_NATIVE_PORT_ALLOCATOR_H_
|
| +#define REMOTING_PROTOCOL_NATIVE_PORT_ALLOCATOR_H_
|
|
|
| #include <set>
|
|
|
| @@ -17,6 +17,8 @@ class URLRequestContextGetter;
|
|
|
| namespace remoting {
|
|
|
| +namespace protocol {
|
| +
|
| struct NetworkSettings;
|
|
|
| // An implementation of cricket::PortAllocator for libjingle that is
|
| @@ -24,13 +26,13 @@ struct NetworkSettings;
|
| // cricket::HttpPortAllocator is that it uses Chromium's HTTP stack
|
| // when creating relay sessions. It also configures itself according
|
| // to the specified NetworkSettings.
|
| -class HostPortAllocator : public cricket::HttpPortAllocatorBase {
|
| +class NativePortAllocator : public cricket::HttpPortAllocatorBase {
|
| public:
|
| - static scoped_ptr<HostPortAllocator> Create(
|
| + static scoped_ptr<NativePortAllocator> Create(
|
| const scoped_refptr<net::URLRequestContextGetter>& url_context,
|
| const NetworkSettings& network_settings);
|
|
|
| - virtual ~HostPortAllocator();
|
| + virtual ~NativePortAllocator();
|
|
|
| // cricket::HttpPortAllocatorBase overrides.
|
| virtual cricket::PortAllocatorSession* CreateSessionInternal(
|
| @@ -40,7 +42,7 @@ class HostPortAllocator : public cricket::HttpPortAllocatorBase {
|
| const std::string& ice_password) OVERRIDE;
|
|
|
| private:
|
| - HostPortAllocator(
|
| + NativePortAllocator(
|
| const scoped_refptr<net::URLRequestContextGetter>& url_context,
|
| scoped_ptr<talk_base::NetworkManager> network_manager,
|
| scoped_ptr<talk_base::PacketSocketFactory> socket_factory);
|
| @@ -49,9 +51,11 @@ 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(NativePortAllocator);
|
| };
|
|
|
| +} // namespace protocol
|
| +
|
| } // namespace remoting
|
|
|
| #endif // REMOTING_HOST_HOST_PORT_ALLOCATOR_H_
|
|
|