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

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: Fixed style violations 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
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 82%
rename from remoting/host/host_port_allocator.h
rename to remoting/jingle_glue/chromium_port_allocator.h
index 47d08935fab6f5589c786aad771dd722cda7e76a..9a4d078479ec6cba16cf76d83670484b598eda9c 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>
@@ -24,13 +24,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 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 +40,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 +49,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

Powered by Google App Engine
This is Rietveld 408576698