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

Side by Side Diff: remoting/client/plugin/pepper_port_allocator_factory.cc

Issue 1681393006: Use UrlRequest in PortAllocator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "remoting/client/plugin/pepper_port_allocator_factory.h"
6
7 #include "remoting/client/plugin/pepper_network_manager.h"
8 #include "remoting/client/plugin/pepper_packet_socket_factory.h"
9 #include "remoting/protocol/port_allocator.h"
10 #include "remoting/protocol/transport_context.h"
11
12 namespace remoting {
13
14 PepperPortAllocatorFactory::PepperPortAllocatorFactory(
15 pp::InstanceHandle pp_instance)
16 : pp_instance_(pp_instance) {}
17
18 PepperPortAllocatorFactory::~PepperPortAllocatorFactory() {}
19
20 scoped_ptr<cricket::PortAllocator>
21 PepperPortAllocatorFactory::CreatePortAllocator(
22 scoped_refptr<protocol::TransportContext> transport_context) {
23 return make_scoped_ptr(new protocol::PortAllocator(
24 make_scoped_ptr(new PepperNetworkManager(pp_instance_)),
25 make_scoped_ptr(new PepperPacketSocketFactory(pp_instance_)),
26 transport_context));
27 }
28
29 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/plugin/pepper_port_allocator_factory.h ('k') | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698