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

Side by Side Diff: webrtc/p2p/base/rawtransport.h

Issue 1246913005: TransportController refactoring (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: minor cleanup Created 5 years, 4 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
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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_RAWTRANSPORT_H_ 11 #ifndef WEBRTC_P2P_BASE_RAWTRANSPORT_H_
12 #define WEBRTC_P2P_BASE_RAWTRANSPORT_H_ 12 #define WEBRTC_P2P_BASE_RAWTRANSPORT_H_
13 13
14 #include <string> 14 #include <string>
15 #include "webrtc/p2p/base/transport.h" 15 #include "webrtc/p2p/base/transport.h"
16 16
17 #if defined(FEATURE_ENABLE_PSTN) 17 #if defined(FEATURE_ENABLE_PSTN)
18 namespace cricket { 18 namespace cricket {
19 19
20 // Implements a transport that only sends raw packets, no STUN. As a result, 20 // Implements a transport that only sends raw packets, no STUN. As a result,
21 // it cannot do pings to determine connectivity, so it only uses a single port 21 // it cannot do pings to determine connectivity, so it only uses a single port
22 // that it thinks will work. 22 // that it thinks will work.
23 class RawTransport : public Transport { 23 class RawTransport : public Transport {
pthatcher1 2015/08/10 20:40:17 FYI, my CL just deletes this.
Taylor Brandstetter 2015/08/11 01:20:07 Acknowledged.
24 public: 24 public:
25 RawTransport(rtc::Thread* signaling_thread, 25 RawTransport(const std::string& content_name,
26 rtc::Thread* worker_thread,
27 const std::string& content_name,
28 PortAllocator* allocator); 26 PortAllocator* allocator);
29 virtual ~RawTransport(); 27 virtual ~RawTransport();
30 28
31 protected: 29 protected:
32 // Creates and destroys raw channels. 30 // Creates and destroys raw channels.
33 virtual TransportChannelImpl* CreateTransportChannel(int component); 31 virtual TransportChannelImpl* CreateTransportChannel(int component);
34 virtual void DestroyTransportChannel(TransportChannelImpl* channel); 32 virtual void DestroyTransportChannel(TransportChannelImpl* channel);
35 33
36 private: 34 private:
37 friend class RawTransportChannel; // For ParseAddress. 35 friend class RawTransportChannel; // For ParseAddress.
38 36
39 DISALLOW_COPY_AND_ASSIGN(RawTransport); 37 DISALLOW_COPY_AND_ASSIGN(RawTransport);
40 }; 38 };
41 39
42 } // namespace cricket 40 } // namespace cricket
43 41
44 #endif // defined(FEATURE_ENABLE_PSTN) 42 #endif // defined(FEATURE_ENABLE_PSTN)
45 43
46 #endif // WEBRTC_P2P_BASE_RAWTRANSPORT_H_ 44 #endif // WEBRTC_P2P_BASE_RAWTRANSPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698