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

Side by Side Diff: remoting/protocol/chromium_port_allocator_factory.h

Issue 1419783013: Move ChromiumPortAllocatorFactory to remoting/protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « remoting/protocol/BUILD.gn ('k') | remoting/protocol/chromium_port_allocator_factory.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CHROMIUM_PORT_ALLOCATOR_FACTORY_H_ 5 #ifndef REMOTING_PROTOCOL_CHROMIUM_PORT_ALLOCATOR_FACTORY_H_
6 #define REMOTING_HOST_CHROMIUM_PORT_ALLOCATOR_FACTORY_H_ 6 #define REMOTING_PROTOCOL_CHROMIUM_PORT_ALLOCATOR_FACTORY_H_
7 7
8 #include "base/macros.h"
8 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "remoting/protocol/network_settings.h"
9 #include "third_party/libjingle/source/talk/app/webrtc/peerconnectioninterface.h " 11 #include "third_party/libjingle/source/talk/app/webrtc/peerconnectioninterface.h "
10 12
11 namespace net { 13 namespace net {
12 class URLRequestContextGetter; 14 class URLRequestContextGetter;
13 } // namespace net 15 } // namespace net
14 16
15 namespace remoting { 17 namespace remoting {
16
17 namespace protocol { 18 namespace protocol {
18 struct NetworkSettings;
19 } // namespace protocol
20 19
21 class ChromiumPortAllocatorFactory 20 class ChromiumPortAllocatorFactory
22 : public webrtc::PortAllocatorFactoryInterface { 21 : public webrtc::PortAllocatorFactoryInterface {
23 public: 22 public:
24 static rtc::scoped_refptr<webrtc::PortAllocatorFactoryInterface> Create( 23 static rtc::scoped_refptr<webrtc::PortAllocatorFactoryInterface> Create(
25 const protocol::NetworkSettings& network_settings, 24 const NetworkSettings& network_settings,
26 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter); 25 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter);
27 26
28 // webrtc::PortAllocatorFactoryInterface implementation. 27 // webrtc::PortAllocatorFactoryInterface implementation.
29 cricket::PortAllocator* CreatePortAllocator( 28 cricket::PortAllocator* CreatePortAllocator(
30 const std::vector<StunConfiguration>& stun_servers, 29 const std::vector<StunConfiguration>& stun_servers,
31 const std::vector<TurnConfiguration>& turn_configurations) override; 30 const std::vector<TurnConfiguration>& turn_configurations) override;
32 31
33 protected: 32 protected:
34 ChromiumPortAllocatorFactory( 33 ChromiumPortAllocatorFactory(
35 const protocol::NetworkSettings& network_settings, 34 const NetworkSettings& network_settings,
36 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter); 35 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter);
37 ~ChromiumPortAllocatorFactory() override; 36 ~ChromiumPortAllocatorFactory() override;
38 37
39 private: 38 private:
40 const protocol::NetworkSettings& network_settings_; 39 NetworkSettings network_settings_;
41 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; 40 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
42 41
43 DISALLOW_COPY_AND_ASSIGN(ChromiumPortAllocatorFactory); 42 DISALLOW_COPY_AND_ASSIGN(ChromiumPortAllocatorFactory);
44 }; 43 };
45 44
45 } // namespace protocol
46 } // namespace remoting 46 } // namespace remoting
47 47
48 #endif // REMOTING_HOST_CHROMIUM_PORT_ALLOCATOR_FACTORY_H_ 48 #endif // REMOTING_PROTOCOL_CHROMIUM_PORT_ALLOCATOR_FACTORY_H_
49 49
OLDNEW
« no previous file with comments | « remoting/protocol/BUILD.gn ('k') | remoting/protocol/chromium_port_allocator_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698