OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2010 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_P2P_BASE_FAKEPORTALLOCATOR_H_ | 11 #ifndef WEBRTC_P2P_BASE_FAKEPORTALLOCATOR_H_ |
12 #define WEBRTC_P2P_BASE_FAKEPORTALLOCATOR_H_ | 12 #define WEBRTC_P2P_BASE_FAKEPORTALLOCATOR_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "webrtc/p2p/base/basicpacketsocketfactory.h" | 18 #include "webrtc/p2p/base/basicpacketsocketfactory.h" |
19 #include "webrtc/p2p/base/portallocator.h" | 19 #include "webrtc/p2p/base/portallocator.h" |
20 #include "webrtc/p2p/base/udpport.h" | 20 #include "webrtc/p2p/base/udpport.h" |
21 #include "webrtc/base/scoped_ptr.h" | |
22 | 21 |
23 namespace rtc { | 22 namespace rtc { |
24 class SocketFactory; | 23 class SocketFactory; |
25 class Thread; | 24 class Thread; |
26 } | 25 } |
27 | 26 |
28 namespace cricket { | 27 namespace cricket { |
29 | 28 |
30 class TestUDPPort : public UDPPort { | 29 class TestUDPPort : public UDPPort { |
31 public: | 30 public: |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 210 |
212 private: | 211 private: |
213 rtc::Thread* worker_thread_; | 212 rtc::Thread* worker_thread_; |
214 rtc::PacketSocketFactory* factory_; | 213 rtc::PacketSocketFactory* factory_; |
215 std::unique_ptr<rtc::BasicPacketSocketFactory> owned_factory_; | 214 std::unique_ptr<rtc::BasicPacketSocketFactory> owned_factory_; |
216 }; | 215 }; |
217 | 216 |
218 } // namespace cricket | 217 } // namespace cricket |
219 | 218 |
220 #endif // WEBRTC_P2P_BASE_FAKEPORTALLOCATOR_H_ | 219 #endif // WEBRTC_P2P_BASE_FAKEPORTALLOCATOR_H_ |
OLD | NEW |