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

Side by Side Diff: remoting/host/host_port_allocator.h

Issue 10382003: Changes needed to roll libjingle r141 (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/client/plugin/pepper_port_allocator.cc ('k') | remoting/host/host_port_allocator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_HOST_HOST_PORT_ALLOCATOR_H_ 5 #ifndef REMOTING_HOST_HOST_PORT_ALLOCATOR_H_
6 #define REMOTING_HOST_HOST_PORT_ALLOCATOR_H_ 6 #define REMOTING_HOST_HOST_PORT_ALLOCATOR_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 15 matching lines...) Expand all
26 // to the specified NetworkSettings. 26 // to the specified NetworkSettings.
27 class HostPortAllocator : public cricket::HttpPortAllocatorBase { 27 class HostPortAllocator : public cricket::HttpPortAllocatorBase {
28 public: 28 public:
29 static scoped_ptr<HostPortAllocator> Create( 29 static scoped_ptr<HostPortAllocator> Create(
30 const scoped_refptr<net::URLRequestContextGetter>& url_context, 30 const scoped_refptr<net::URLRequestContextGetter>& url_context,
31 const NetworkSettings& network_settings); 31 const NetworkSettings& network_settings);
32 32
33 virtual ~HostPortAllocator(); 33 virtual ~HostPortAllocator();
34 34
35 // cricket::HttpPortAllocatorBase overrides. 35 // cricket::HttpPortAllocatorBase overrides.
36 virtual cricket::PortAllocatorSession* CreateSession( 36 virtual cricket::PortAllocatorSession* CreateSessionInternal(
37 const std::string& channel_name, 37 int component,
38 int component) OVERRIDE; 38 const std::string& ice_username_fragment,
39 const std::string& ice_password) OVERRIDE;
39 40
40 private: 41 private:
41 HostPortAllocator( 42 HostPortAllocator(
42 const scoped_refptr<net::URLRequestContextGetter>& url_context, 43 const scoped_refptr<net::URLRequestContextGetter>& url_context,
43 scoped_ptr<talk_base::NetworkManager> network_manager, 44 scoped_ptr<talk_base::NetworkManager> network_manager,
44 scoped_ptr<talk_base::PacketSocketFactory> socket_factory); 45 scoped_ptr<talk_base::PacketSocketFactory> socket_factory);
45 46
46 scoped_refptr<net::URLRequestContextGetter> url_context_; 47 scoped_refptr<net::URLRequestContextGetter> url_context_;
47 scoped_ptr<talk_base::NetworkManager> network_manager_; 48 scoped_ptr<talk_base::NetworkManager> network_manager_;
48 scoped_ptr<talk_base::PacketSocketFactory> socket_factory_; 49 scoped_ptr<talk_base::PacketSocketFactory> socket_factory_;
49 50
50 DISALLOW_COPY_AND_ASSIGN(HostPortAllocator); 51 DISALLOW_COPY_AND_ASSIGN(HostPortAllocator);
51 }; 52 };
52 53
53 } // namespace remoting 54 } // namespace remoting
54 55
55 #endif // REMOTING_HOST_HOST_PORT_ALLOCATOR_H_ 56 #endif // REMOTING_HOST_HOST_PORT_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/pepper_port_allocator.cc ('k') | remoting/host/host_port_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698