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

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

Issue 1500663003: Removing references to webrtc::PortAllocatorFactoryInterface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-adding PortAllocatorFactoryInterface, for use with WebrtcTransport. Created 5 years 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 2015 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 #ifndef REMOTING_PROTOCOL_PORT_ALLOCATOR_FACTORY_INTERFACE_H_
6 #define REMOTING_PROTOCOL_PORT_ALLOCATOR_FACTORY_INTERFACE_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "third_party/webrtc/p2p/base/portallocator.h"
10
11 // Factory class used for creating cricket::PortAllocator that is used
12 // for ICE negotiation.
13 class PortAllocatorFactoryInterface
Sergey Ulanov 2015/12/08 16:59:43 Please put this in remoting::protocol namespace. A
Taylor_Brandstetter 2015/12/08 21:02:59 Done.
14 : public base::RefCounted<PortAllocatorFactoryInterface> {
Sergey Ulanov 2015/12/08 16:59:43 I don't think we need it to be ref-counted. Just p
Taylor_Brandstetter 2015/12/08 21:02:59 But won't every WebrtcTransport (as well as the We
Sergey Ulanov 2015/12/09 20:55:22 Yes, TransportFactory is required to outlive all T
15 public:
16 virtual cricket::PortAllocator* CreatePortAllocator() = 0;
17
18 protected:
19 PortAllocatorFactoryInterface() {}
20 virtual ~PortAllocatorFactoryInterface() {}
21
22 friend class base::RefCounted<PortAllocatorFactoryInterface>;
23 };
24
25 #endif // REMOTING_PROTOCOL_PORT_ALLOCATOR_FACTORY_INTERFACE_H_
OLDNEW
« no previous file with comments | « remoting/protocol/chromium_port_allocator_factory.cc ('k') | remoting/protocol/webrtc_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698