OLD | NEW |
---|---|
(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_ | |
OLD | NEW |