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

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

Issue 2812243005: Move ready to send logic from BaseChannel to RtpTransport. (Closed)
Patch Set: Created 3 years, 8 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
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 bool SendRtcp(rtc::CopyOnWriteBuffer* packet, 256 bool SendRtcp(rtc::CopyOnWriteBuffer* packet,
257 const rtc::PacketOptions& options) override; 257 const rtc::PacketOptions& options) override;
258 258
259 // From TransportChannel 259 // From TransportChannel
260 void OnWritableState(rtc::PacketTransportInternal* transport); 260 void OnWritableState(rtc::PacketTransportInternal* transport);
261 virtual void OnPacketRead(rtc::PacketTransportInternal* transport, 261 virtual void OnPacketRead(rtc::PacketTransportInternal* transport,
262 const char* data, 262 const char* data,
263 size_t len, 263 size_t len,
264 const rtc::PacketTime& packet_time, 264 const rtc::PacketTime& packet_time,
265 int flags); 265 int flags);
266 void OnReadyToSend(rtc::PacketTransportInternal* transport); 266 void OnTransportReadyToSend(bool ready);
Taylor Brandstetter 2017/04/14 18:05:33 Could you add an "// From RtpTransport." comment a
Zach Stein 2017/04/18 23:39:29 Done.
267 267
268 void OnDtlsState(DtlsTransportInternal* transport, DtlsTransportState state); 268 void OnDtlsState(DtlsTransportInternal* transport, DtlsTransportState state);
269 269
270 void OnSelectedCandidatePairChanged( 270 void OnSelectedCandidatePairChanged(
271 IceTransportInternal* ice_transport, 271 IceTransportInternal* ice_transport,
272 CandidatePairInterface* selected_candidate_pair, 272 CandidatePairInterface* selected_candidate_pair,
273 int last_sent_packet_id, 273 int last_sent_packet_id,
274 bool ready_to_send); 274 bool ready_to_send);
275 275
276 bool PacketIsRtcp(const rtc::PacketTransportInternal* transport, 276 bool PacketIsRtcp(const rtc::PacketTransportInternal* transport,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 // Temporary measure until more refactoring is done. 405 // Temporary measure until more refactoring is done.
406 // If non-null, "X_dtls_transport_" will always equal "X_packet_transport_". 406 // If non-null, "X_dtls_transport_" will always equal "X_packet_transport_".
407 DtlsTransportInternal* rtp_dtls_transport_ = nullptr; 407 DtlsTransportInternal* rtp_dtls_transport_ = nullptr;
408 DtlsTransportInternal* rtcp_dtls_transport_ = nullptr; 408 DtlsTransportInternal* rtcp_dtls_transport_ = nullptr;
409 webrtc::RtpTransport rtp_transport_; 409 webrtc::RtpTransport rtp_transport_;
410 std::vector<std::pair<rtc::Socket::Option, int> > socket_options_; 410 std::vector<std::pair<rtc::Socket::Option, int> > socket_options_;
411 std::vector<std::pair<rtc::Socket::Option, int> > rtcp_socket_options_; 411 std::vector<std::pair<rtc::Socket::Option, int> > rtcp_socket_options_;
412 SrtpFilter srtp_filter_; 412 SrtpFilter srtp_filter_;
413 RtcpMuxFilter rtcp_mux_filter_; 413 RtcpMuxFilter rtcp_mux_filter_;
414 BundleFilter bundle_filter_; 414 BundleFilter bundle_filter_;
415 bool rtp_ready_to_send_ = false;
416 bool rtcp_ready_to_send_ = false;
417 bool writable_ = false; 415 bool writable_ = false;
418 bool was_ever_writable_ = false; 416 bool was_ever_writable_ = false;
419 bool has_received_packet_ = false; 417 bool has_received_packet_ = false;
420 bool dtls_keyed_ = false; 418 bool dtls_keyed_ = false;
421 const bool srtp_required_ = true; 419 const bool srtp_required_ = true;
422 rtc::CryptoOptions crypto_options_; 420 rtc::CryptoOptions crypto_options_;
423 int rtp_abs_sendtime_extn_id_ = -1; 421 int rtp_abs_sendtime_extn_id_ = -1;
424 422
425 // MediaChannel related members that should be accessed from the worker 423 // MediaChannel related members that should be accessed from the worker
426 // thread. 424 // thread.
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 // SetSendParameters. 742 // SetSendParameters.
745 DataSendParameters last_send_params_; 743 DataSendParameters last_send_params_;
746 // Last DataRecvParameters sent down to the media_channel() via 744 // Last DataRecvParameters sent down to the media_channel() via
747 // SetRecvParameters. 745 // SetRecvParameters.
748 DataRecvParameters last_recv_params_; 746 DataRecvParameters last_recv_params_;
749 }; 747 };
750 748
751 } // namespace cricket 749 } // namespace cricket
752 750
753 #endif // WEBRTC_PC_CHANNEL_H_ 751 #endif // WEBRTC_PC_CHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/pc/BUILD.gn ('k') | webrtc/pc/channel.cc » ('j') | webrtc/pc/channel.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698