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

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: Set media engine on voice channel 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 {
24 public: 24 public:
25 RawTransport(rtc::Thread* signaling_thread, 25 RawTransport(const std::string& content_name, PortAllocator* allocator);
26 rtc::Thread* worker_thread,
27 const std::string& content_name,
28 PortAllocator* allocator);
29 virtual ~RawTransport(); 26 virtual ~RawTransport();
30 27
31 protected: 28 protected:
32 // Creates and destroys raw channels. 29 // Creates and destroys raw channels.
33 virtual TransportChannelImpl* CreateTransportChannel(int component); 30 virtual TransportChannelImpl* CreateTransportChannel(int component);
34 virtual void DestroyTransportChannel(TransportChannelImpl* channel); 31 virtual void DestroyTransportChannel(TransportChannelImpl* channel);
35 32
36 private: 33 private:
37 friend class RawTransportChannel; // For ParseAddress. 34 friend class RawTransportChannel; // For ParseAddress.
38 35
39 DISALLOW_COPY_AND_ASSIGN(RawTransport); 36 DISALLOW_COPY_AND_ASSIGN(RawTransport);
40 }; 37 };
41 38
42 } // namespace cricket 39 } // namespace cricket
43 40
44 #endif // defined(FEATURE_ENABLE_PSTN) 41 #endif // defined(FEATURE_ENABLE_PSTN)
45 42
46 #endif // WEBRTC_P2P_BASE_RAWTRANSPORT_H_ 43 #endif // WEBRTC_P2P_BASE_RAWTRANSPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698