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

Side by Side Diff: webrtc/pc/channel.h

Issue 2648233003: Adding ability for BaseChannel to use PacketTransportInterface. (Closed)
Patch Set: Fix TSAN warning in test by starting thread after setting fake clock Created 3 years, 10 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
« no previous file with comments | « webrtc/p2p/base/transportcontroller_unittest.cc ('k') | webrtc/pc/channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 12 matching lines...) Expand all
23 #include "webrtc/base/asyncudpsocket.h" 23 #include "webrtc/base/asyncudpsocket.h"
24 #include "webrtc/base/criticalsection.h" 24 #include "webrtc/base/criticalsection.h"
25 #include "webrtc/base/network.h" 25 #include "webrtc/base/network.h"
26 #include "webrtc/base/sigslot.h" 26 #include "webrtc/base/sigslot.h"
27 #include "webrtc/base/window.h" 27 #include "webrtc/base/window.h"
28 #include "webrtc/media/base/mediachannel.h" 28 #include "webrtc/media/base/mediachannel.h"
29 #include "webrtc/media/base/mediaengine.h" 29 #include "webrtc/media/base/mediaengine.h"
30 #include "webrtc/media/base/streamparams.h" 30 #include "webrtc/media/base/streamparams.h"
31 #include "webrtc/media/base/videosinkinterface.h" 31 #include "webrtc/media/base/videosinkinterface.h"
32 #include "webrtc/media/base/videosourceinterface.h" 32 #include "webrtc/media/base/videosourceinterface.h"
33 #include "webrtc/p2p/base/dtlstransportinternal.h"
34 #include "webrtc/p2p/base/packettransportinterface.h"
33 #include "webrtc/p2p/base/transportcontroller.h" 35 #include "webrtc/p2p/base/transportcontroller.h"
34 #include "webrtc/p2p/client/socketmonitor.h" 36 #include "webrtc/p2p/client/socketmonitor.h"
35 #include "webrtc/pc/audiomonitor.h" 37 #include "webrtc/pc/audiomonitor.h"
36 #include "webrtc/pc/bundlefilter.h" 38 #include "webrtc/pc/bundlefilter.h"
37 #include "webrtc/pc/mediamonitor.h" 39 #include "webrtc/pc/mediamonitor.h"
38 #include "webrtc/pc/mediasession.h" 40 #include "webrtc/pc/mediasession.h"
39 #include "webrtc/pc/rtcpmuxfilter.h" 41 #include "webrtc/pc/rtcpmuxfilter.h"
40 #include "webrtc/pc/srtpfilter.h" 42 #include "webrtc/pc/srtpfilter.h"
41 43
42 namespace rtc {
43 class PacketTransportInterface;
44 }
45
46 namespace webrtc { 44 namespace webrtc {
47 class AudioSinkInterface; 45 class AudioSinkInterface;
48 } // namespace webrtc 46 } // namespace webrtc
49 47
50 namespace cricket { 48 namespace cricket {
51 49
52 struct CryptoParams; 50 struct CryptoParams;
53 class MediaContentDescription; 51 class MediaContentDescription;
54 52
55 // BaseChannel contains logic common to voice and video, including enable, 53 // BaseChannel contains logic common to voice and video, including enable,
(...skipping 12 matching lines...) Expand all
68 // WARNING! SUBCLASSES MUST CALL Deinit() IN THEIR DESTRUCTORS! 66 // WARNING! SUBCLASSES MUST CALL Deinit() IN THEIR DESTRUCTORS!
69 // This is required to avoid a data race between the destructor modifying the 67 // This is required to avoid a data race between the destructor modifying the
70 // vtable, and the media channel's thread using BaseChannel as the 68 // vtable, and the media channel's thread using BaseChannel as the
71 // NetworkInterface. 69 // NetworkInterface.
72 70
73 class BaseChannel 71 class BaseChannel
74 : public rtc::MessageHandler, public sigslot::has_slots<>, 72 : public rtc::MessageHandler, public sigslot::has_slots<>,
75 public MediaChannel::NetworkInterface, 73 public MediaChannel::NetworkInterface,
76 public ConnectionStatsGetter { 74 public ConnectionStatsGetter {
77 public: 75 public:
78 // |rtcp| represents whether or not this channel uses RTCP.
79 // If |srtp_required| is true, the channel will not send or receive any 76 // If |srtp_required| is true, the channel will not send or receive any
80 // RTP/RTCP packets without using SRTP (either using SDES or DTLS-SRTP). 77 // RTP/RTCP packets without using SRTP (either using SDES or DTLS-SRTP).
81 BaseChannel(rtc::Thread* worker_thread, 78 BaseChannel(rtc::Thread* worker_thread,
82 rtc::Thread* network_thread, 79 rtc::Thread* network_thread,
83 rtc::Thread* signaling_thread, 80 rtc::Thread* signaling_thread,
84 MediaChannel* channel, 81 MediaChannel* channel,
85 const std::string& content_name, 82 const std::string& content_name,
86 bool rtcp_mux_required, 83 bool rtcp_mux_required,
87 bool srtp_required); 84 bool srtp_required);
88 virtual ~BaseChannel(); 85 virtual ~BaseChannel();
89 bool Init_w(DtlsTransportInternal* rtp_dtls_transport, 86 bool Init_w(DtlsTransportInternal* rtp_dtls_transport,
90 DtlsTransportInternal* rtcp_dtls_transport); 87 DtlsTransportInternal* rtcp_dtls_transport,
88 rtc::PacketTransportInterface* rtp_packet_transport,
89 rtc::PacketTransportInterface* rtcp_packet_transport);
91 // Deinit may be called multiple times and is simply ignored if it's already 90 // Deinit may be called multiple times and is simply ignored if it's already
92 // done. 91 // done.
93 void Deinit(); 92 void Deinit();
94 93
95 rtc::Thread* worker_thread() const { return worker_thread_; } 94 rtc::Thread* worker_thread() const { return worker_thread_; }
96 rtc::Thread* network_thread() const { return network_thread_; } 95 rtc::Thread* network_thread() const { return network_thread_; }
97 const std::string& content_name() const { return content_name_; } 96 const std::string& content_name() const { return content_name_; }
97 // TODO(deadbeef): This is redundant; remove this.
98 const std::string& transport_name() const { return transport_name_; } 98 const std::string& transport_name() const { return transport_name_; }
99 bool enabled() const { return enabled_; } 99 bool enabled() const { return enabled_; }
100 100
101 // This function returns true if we are using SRTP. 101 // This function returns true if we are using SRTP.
102 bool secure() const { return srtp_filter_.IsActive(); } 102 bool secure() const { return srtp_filter_.IsActive(); }
103 // The following function returns true if we are using 103 // The following function returns true if we are using
104 // DTLS-based keying. If you turned off SRTP later, however 104 // DTLS-based keying. If you turned off SRTP later, however
105 // you could have secure() == false and dtls_secure() == true. 105 // you could have secure() == false and dtls_secure() == true.
106 bool secure_dtls() const { return dtls_keyed_; } 106 bool secure_dtls() const { return dtls_keyed_; }
107 107
108 bool writable() const { return writable_; } 108 bool writable() const { return writable_; }
109 109
110 // Set the transport(s), and update writability and "ready-to-send" state. 110 // Set the transport(s), and update writability and "ready-to-send" state.
111 // |rtp_transport| must be non-null. 111 // |rtp_transport| must be non-null.
112 // |rtcp_transport| must be supplied if NeedsRtcpTransport() is true (meaning 112 // |rtcp_transport| must be supplied if NeedsRtcpTransport() is true (meaning
113 // RTCP muxing is not fully active yet). 113 // RTCP muxing is not fully active yet).
114 // |rtp_transport| and |rtcp_transport| must share the same transport name as 114 // |rtp_transport| and |rtcp_transport| must share the same transport name as
115 // well. 115 // well.
116 // Can not start with "rtc::PacketTransportInterface" and switch to
117 // "DtlsTransportInternal", or vice-versa.
116 void SetTransports(DtlsTransportInternal* rtp_dtls_transport, 118 void SetTransports(DtlsTransportInternal* rtp_dtls_transport,
117 DtlsTransportInternal* rtcp_dtls_transport); 119 DtlsTransportInternal* rtcp_dtls_transport);
120 void SetTransports(rtc::PacketTransportInterface* rtp_packet_transport,
121 rtc::PacketTransportInterface* rtcp_packet_transport);
118 bool PushdownLocalDescription(const SessionDescription* local_desc, 122 bool PushdownLocalDescription(const SessionDescription* local_desc,
119 ContentAction action, 123 ContentAction action,
120 std::string* error_desc); 124 std::string* error_desc);
121 bool PushdownRemoteDescription(const SessionDescription* remote_desc, 125 bool PushdownRemoteDescription(const SessionDescription* remote_desc,
122 ContentAction action, 126 ContentAction action,
123 std::string* error_desc); 127 std::string* error_desc);
124 // Channel control 128 // Channel control
125 bool SetLocalContent(const MediaContentDescription* content, 129 bool SetLocalContent(const MediaContentDescription* content,
126 ContentAction action, 130 ContentAction action,
127 std::string* error_desc); 131 std::string* error_desc);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 203
200 bool SetCryptoOptions(const rtc::CryptoOptions& crypto_options); 204 bool SetCryptoOptions(const rtc::CryptoOptions& crypto_options);
201 205
202 // This function returns true if we require SRTP for call setup. 206 // This function returns true if we require SRTP for call setup.
203 bool srtp_required_for_testing() const { return srtp_required_; } 207 bool srtp_required_for_testing() const { return srtp_required_; }
204 208
205 protected: 209 protected:
206 virtual MediaChannel* media_channel() const { return media_channel_; } 210 virtual MediaChannel* media_channel() const { return media_channel_; }
207 211
208 void SetTransports_n(DtlsTransportInternal* rtp_dtls_transport, 212 void SetTransports_n(DtlsTransportInternal* rtp_dtls_transport,
209 DtlsTransportInternal* rtcp_dtls_transport); 213 DtlsTransportInternal* rtcp_dtls_transport,
214 rtc::PacketTransportInterface* rtp_packet_transport,
215 rtc::PacketTransportInterface* rtcp_packet_transport);
210 216
211 // This does not update writability or "ready-to-send" state; it just 217 // This does not update writability or "ready-to-send" state; it just
212 // disconnects from the old channel and connects to the new one. 218 // disconnects from the old channel and connects to the new one.
213 void SetTransport_n(bool rtcp, DtlsTransportInternal* new_transport); 219 void SetTransport_n(bool rtcp,
220 DtlsTransportInternal* new_dtls_transport,
221 rtc::PacketTransportInterface* new_packet_transport);
214 222
215 bool was_ever_writable() const { return was_ever_writable_; } 223 bool was_ever_writable() const { return was_ever_writable_; }
216 void set_local_content_direction(MediaContentDirection direction) { 224 void set_local_content_direction(MediaContentDirection direction) {
217 local_content_direction_ = direction; 225 local_content_direction_ = direction;
218 } 226 }
219 void set_remote_content_direction(MediaContentDirection direction) { 227 void set_remote_content_direction(MediaContentDirection direction) {
220 remote_content_direction_ = direction; 228 remote_content_direction_ = direction;
221 } 229 }
222 // These methods verify that: 230 // These methods verify that:
223 // * The required content description directions have been set. 231 // * The required content description directions have been set.
224 // * The channel is enabled. 232 // * The channel is enabled.
225 // * And for sending: 233 // * And for sending:
226 // - The SRTP filter is active if it's needed. 234 // - The SRTP filter is active if it's needed.
227 // - The transport has been writable before, meaning it should be at least 235 // - The transport has been writable before, meaning it should be at least
228 // possible to succeed in sending a packet. 236 // possible to succeed in sending a packet.
229 // 237 //
230 // When any of these properties change, UpdateMediaSendRecvState_w should be 238 // When any of these properties change, UpdateMediaSendRecvState_w should be
231 // called. 239 // called.
232 bool IsReadyToReceiveMedia_w() const; 240 bool IsReadyToReceiveMedia_w() const;
233 bool IsReadyToSendMedia_w() const; 241 bool IsReadyToSendMedia_w() const;
234 rtc::Thread* signaling_thread() { return signaling_thread_; } 242 rtc::Thread* signaling_thread() { return signaling_thread_; }
235 243
236 void ConnectToTransport(DtlsTransportInternal* transport); 244 void ConnectToDtlsTransport(DtlsTransportInternal* transport);
237 void DisconnectFromTransport(DtlsTransportInternal* transport); 245 void DisconnectFromDtlsTransport(DtlsTransportInternal* transport);
246 void ConnectToPacketTransport(rtc::PacketTransportInterface* transport);
247 void DisconnectFromPacketTransport(rtc::PacketTransportInterface* transport);
238 248
239 void FlushRtcpMessages_n(); 249 void FlushRtcpMessages_n();
240 250
241 // NetworkInterface implementation, called by MediaEngine 251 // NetworkInterface implementation, called by MediaEngine
242 bool SendPacket(rtc::CopyOnWriteBuffer* packet, 252 bool SendPacket(rtc::CopyOnWriteBuffer* packet,
243 const rtc::PacketOptions& options) override; 253 const rtc::PacketOptions& options) override;
244 bool SendRtcp(rtc::CopyOnWriteBuffer* packet, 254 bool SendRtcp(rtc::CopyOnWriteBuffer* packet,
245 const rtc::PacketOptions& options) override; 255 const rtc::PacketOptions& options) override;
246 256
247 // From TransportChannel 257 // From TransportChannel
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 369
360 // Helper function for invoking bool-returning methods on the worker thread. 370 // Helper function for invoking bool-returning methods on the worker thread.
361 template <class FunctorT> 371 template <class FunctorT>
362 bool InvokeOnWorker(const rtc::Location& posted_from, 372 bool InvokeOnWorker(const rtc::Location& posted_from,
363 const FunctorT& functor) { 373 const FunctorT& functor) {
364 return worker_thread_->Invoke<bool>(posted_from, functor); 374 return worker_thread_->Invoke<bool>(posted_from, functor);
365 } 375 }
366 376
367 private: 377 private:
368 bool InitNetwork_n(DtlsTransportInternal* rtp_dtls_transport, 378 bool InitNetwork_n(DtlsTransportInternal* rtp_dtls_transport,
369 DtlsTransportInternal* rtcp_dtls_transport); 379 DtlsTransportInternal* rtcp_dtls_transport,
380 rtc::PacketTransportInterface* rtp_packet_transport,
381 rtc::PacketTransportInterface* rtcp_packet_transport);
370 void DisconnectTransportChannels_n(); 382 void DisconnectTransportChannels_n();
371 void SignalSentPacket_n(rtc::PacketTransportInterface* transport, 383 void SignalSentPacket_n(rtc::PacketTransportInterface* transport,
372 const rtc::SentPacket& sent_packet); 384 const rtc::SentPacket& sent_packet);
373 void SignalSentPacket_w(const rtc::SentPacket& sent_packet); 385 void SignalSentPacket_w(const rtc::SentPacket& sent_packet);
374 bool IsReadyToSendMedia_n() const; 386 bool IsReadyToSendMedia_n() const;
375 void CacheRtpAbsSendTimeHeaderExtension_n(int rtp_abs_sendtime_extn_id); 387 void CacheRtpAbsSendTimeHeaderExtension_n(int rtp_abs_sendtime_extn_id);
376 int GetTransportOverheadPerPacket() const; 388 int GetTransportOverheadPerPacket() const;
377 void UpdateTransportOverhead(); 389 void UpdateTransportOverhead();
378 390
379 rtc::Thread* const worker_thread_; 391 rtc::Thread* const worker_thread_;
380 rtc::Thread* const network_thread_; 392 rtc::Thread* const network_thread_;
381 rtc::Thread* const signaling_thread_; 393 rtc::Thread* const signaling_thread_;
382 rtc::AsyncInvoker invoker_; 394 rtc::AsyncInvoker invoker_;
383 395
384 const std::string content_name_; 396 const std::string content_name_;
385 std::unique_ptr<ConnectionMonitor> connection_monitor_; 397 std::unique_ptr<ConnectionMonitor> connection_monitor_;
386 398
399 // Won't be set when using raw packet transports. SDP-specific thing.
387 std::string transport_name_; 400 std::string transport_name_;
388 // True if RTCP-multiplexing is required. In other words, no standalone RTCP 401 // True if RTCP-multiplexing is required. In other words, no standalone RTCP
389 // transport will ever be used for this channel. 402 // transport will ever be used for this channel.
390 const bool rtcp_mux_required_; 403 const bool rtcp_mux_required_;
391 404
405 // Separate DTLS/non-DTLS pointers to support using BaseChannel without DTLS.
406 // Temporary measure until more refactoring is done.
407 // If non-null, "X_dtls_transport_" will always equal "X_packet_transport_".
392 DtlsTransportInternal* rtp_dtls_transport_ = nullptr; 408 DtlsTransportInternal* rtp_dtls_transport_ = nullptr;
409 DtlsTransportInternal* rtcp_dtls_transport_ = nullptr;
410 rtc::PacketTransportInterface* rtp_packet_transport_ = nullptr;
411 rtc::PacketTransportInterface* rtcp_packet_transport_ = nullptr;
393 std::vector<std::pair<rtc::Socket::Option, int> > socket_options_; 412 std::vector<std::pair<rtc::Socket::Option, int> > socket_options_;
394 DtlsTransportInternal* rtcp_dtls_transport_ = nullptr;
395 std::vector<std::pair<rtc::Socket::Option, int> > rtcp_socket_options_; 413 std::vector<std::pair<rtc::Socket::Option, int> > rtcp_socket_options_;
396 SrtpFilter srtp_filter_; 414 SrtpFilter srtp_filter_;
397 RtcpMuxFilter rtcp_mux_filter_; 415 RtcpMuxFilter rtcp_mux_filter_;
398 BundleFilter bundle_filter_; 416 BundleFilter bundle_filter_;
399 bool rtp_ready_to_send_ = false; 417 bool rtp_ready_to_send_ = false;
400 bool rtcp_ready_to_send_ = false; 418 bool rtcp_ready_to_send_ = false;
401 bool writable_ = false; 419 bool writable_ = false;
402 bool was_ever_writable_ = false; 420 bool was_ever_writable_ = false;
403 bool has_received_packet_ = false; 421 bool has_received_packet_ = false;
404 bool dtls_keyed_ = false; 422 bool dtls_keyed_ = false;
(...skipping 21 matching lines...) Expand all
426 public: 444 public:
427 VoiceChannel(rtc::Thread* worker_thread, 445 VoiceChannel(rtc::Thread* worker_thread,
428 rtc::Thread* network_thread, 446 rtc::Thread* network_thread,
429 rtc::Thread* signaling_thread, 447 rtc::Thread* signaling_thread,
430 MediaEngineInterface* media_engine, 448 MediaEngineInterface* media_engine,
431 VoiceMediaChannel* channel, 449 VoiceMediaChannel* channel,
432 const std::string& content_name, 450 const std::string& content_name,
433 bool rtcp_mux_required, 451 bool rtcp_mux_required,
434 bool srtp_required); 452 bool srtp_required);
435 ~VoiceChannel(); 453 ~VoiceChannel();
436 bool Init_w(DtlsTransportInternal* rtp_dtls_transport,
437 DtlsTransportInternal* rtcp_dtls_transport);
438 454
439 // Configure sending media on the stream with SSRC |ssrc| 455 // Configure sending media on the stream with SSRC |ssrc|
440 // If there is only one sending stream SSRC 0 can be used. 456 // If there is only one sending stream SSRC 0 can be used.
441 bool SetAudioSend(uint32_t ssrc, 457 bool SetAudioSend(uint32_t ssrc,
442 bool enable, 458 bool enable,
443 const AudioOptions* options, 459 const AudioOptions* options,
444 AudioSource* source); 460 AudioSource* source);
445 461
446 // downcasts a MediaChannel 462 // downcasts a MediaChannel
447 VoiceMediaChannel* media_channel() const override { 463 VoiceMediaChannel* media_channel() const override {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 class VideoChannel : public BaseChannel { 561 class VideoChannel : public BaseChannel {
546 public: 562 public:
547 VideoChannel(rtc::Thread* worker_thread, 563 VideoChannel(rtc::Thread* worker_thread,
548 rtc::Thread* network_thread, 564 rtc::Thread* network_thread,
549 rtc::Thread* signaling_thread, 565 rtc::Thread* signaling_thread,
550 VideoMediaChannel* channel, 566 VideoMediaChannel* channel,
551 const std::string& content_name, 567 const std::string& content_name,
552 bool rtcp_mux_required, 568 bool rtcp_mux_required,
553 bool srtp_required); 569 bool srtp_required);
554 ~VideoChannel(); 570 ~VideoChannel();
555 bool Init_w(DtlsTransportInternal* rtp_dtls_transport,
556 DtlsTransportInternal* rtcp_dtls_transport);
557 571
558 // downcasts a MediaChannel 572 // downcasts a MediaChannel
559 VideoMediaChannel* media_channel() const override { 573 VideoMediaChannel* media_channel() const override {
560 return static_cast<VideoMediaChannel*>(BaseChannel::media_channel()); 574 return static_cast<VideoMediaChannel*>(BaseChannel::media_channel());
561 } 575 }
562 576
563 bool SetSink(uint32_t ssrc, 577 bool SetSink(uint32_t ssrc,
564 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink); 578 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink);
565 // Get statistics about the current media session. 579 // Get statistics about the current media session.
566 bool GetStats(VideoMediaInfo* stats); 580 bool GetStats(VideoMediaInfo* stats);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 public: 640 public:
627 RtpDataChannel(rtc::Thread* worker_thread, 641 RtpDataChannel(rtc::Thread* worker_thread,
628 rtc::Thread* network_thread, 642 rtc::Thread* network_thread,
629 rtc::Thread* signaling_thread, 643 rtc::Thread* signaling_thread,
630 DataMediaChannel* channel, 644 DataMediaChannel* channel,
631 const std::string& content_name, 645 const std::string& content_name,
632 bool rtcp_mux_required, 646 bool rtcp_mux_required,
633 bool srtp_required); 647 bool srtp_required);
634 ~RtpDataChannel(); 648 ~RtpDataChannel();
635 bool Init_w(DtlsTransportInternal* rtp_dtls_transport, 649 bool Init_w(DtlsTransportInternal* rtp_dtls_transport,
636 DtlsTransportInternal* rtcp_dtls_transport); 650 DtlsTransportInternal* rtcp_dtls_transport,
651 rtc::PacketTransportInterface* rtp_packet_transport,
652 rtc::PacketTransportInterface* rtcp_packet_transport);
637 653
638 virtual bool SendData(const SendDataParams& params, 654 virtual bool SendData(const SendDataParams& params,
639 const rtc::CopyOnWriteBuffer& payload, 655 const rtc::CopyOnWriteBuffer& payload,
640 SendDataResult* result); 656 SendDataResult* result);
641 657
642 void StartMediaMonitor(int cms); 658 void StartMediaMonitor(int cms);
643 void StopMediaMonitor(); 659 void StopMediaMonitor();
644 660
645 // Should be called on the signaling thread only. 661 // Should be called on the signaling thread only.
646 bool ready_to_send_data() const { 662 bool ready_to_send_data() const {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 // SetSendParameters. 745 // SetSendParameters.
730 DataSendParameters last_send_params_; 746 DataSendParameters last_send_params_;
731 // Last DataRecvParameters sent down to the media_channel() via 747 // Last DataRecvParameters sent down to the media_channel() via
732 // SetRecvParameters. 748 // SetRecvParameters.
733 DataRecvParameters last_recv_params_; 749 DataRecvParameters last_recv_params_;
734 }; 750 };
735 751
736 } // namespace cricket 752 } // namespace cricket
737 753
738 #endif // WEBRTC_PC_CHANNEL_H_ 754 #endif // WEBRTC_PC_CHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/transportcontroller_unittest.cc ('k') | webrtc/pc/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698