Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Unified Diff: remoting/jingle_glue/chromium_port_allocator.h

Issue 17101034: Add static Create method to LibjingleTransportFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/session_manager_factory.cc ('k') | remoting/jingle_glue/chromium_port_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 73%
rename from remoting/host/host_port_allocator.h
rename to remoting/jingle_glue/chromium_port_allocator.h
index 47d08935fab6f5589c786aad771dd722cda7e76a..a9216b15f6afe16786e060ff4bdab769307dda60 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,16 @@ 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
-// when creating relay sessions. It also configures itself according
+// An implementation of cricket::PortAllocator for libjingle that
+// uses Chromium's network stack and configures itself according
// 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 +38,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 +47,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
« no previous file with comments | « remoting/host/session_manager_factory.cc ('k') | remoting/jingle_glue/chromium_port_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698