OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 | 303 |
304 cricket::DataChannelType data_channel_type() const; | 304 cricket::DataChannelType data_channel_type() const; |
305 | 305 |
306 bool IceRestartPending(const std::string& content_name) const; | 306 bool IceRestartPending(const std::string& content_name) const; |
307 | 307 |
308 // Called when an RTCCertificate is generated or retrieved by | 308 // Called when an RTCCertificate is generated or retrieved by |
309 // WebRTCSessionDescriptionFactory. Should happen before setLocalDescription. | 309 // WebRTCSessionDescriptionFactory. Should happen before setLocalDescription. |
310 void OnCertificateReady( | 310 void OnCertificateReady( |
311 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); | 311 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); |
312 void OnDtlsSetupFailure(cricket::BaseChannel*, bool rtcp); | 312 void OnDtlsSetupFailure(cricket::BaseChannel*, bool rtcp); |
| 313 // Called when the channel received the first packet. |
| 314 void OnChannelFirstPacketReceived(cricket::BaseChannel*); |
313 | 315 |
314 // For unit test. | 316 // For unit test. |
315 bool waiting_for_certificate_for_testing() const; | 317 bool waiting_for_certificate_for_testing() const; |
316 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate_for_testing(); | 318 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate_for_testing(); |
317 | 319 |
318 void set_metrics_observer( | 320 void set_metrics_observer( |
319 webrtc::MetricsObserverInterface* metrics_observer) { | 321 webrtc::MetricsObserverInterface* metrics_observer) { |
320 metrics_observer_ = metrics_observer; | 322 metrics_observer_ = metrics_observer; |
321 } | 323 } |
322 | 324 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 cricket::AudioOptions audio_options_; | 522 cricket::AudioOptions audio_options_; |
521 cricket::VideoOptions video_options_; | 523 cricket::VideoOptions video_options_; |
522 MetricsObserverInterface* metrics_observer_; | 524 MetricsObserverInterface* metrics_observer_; |
523 | 525 |
524 // Declares the bundle policy for the WebRTCSession. | 526 // Declares the bundle policy for the WebRTCSession. |
525 PeerConnectionInterface::BundlePolicy bundle_policy_; | 527 PeerConnectionInterface::BundlePolicy bundle_policy_; |
526 | 528 |
527 // Declares the RTCP mux policy for the WebRTCSession. | 529 // Declares the RTCP mux policy for the WebRTCSession. |
528 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; | 530 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; |
529 | 531 |
| 532 bool received_first_video_packet_ = false; |
| 533 bool received_first_audio_packet_ = false; |
| 534 |
530 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); | 535 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); |
531 }; | 536 }; |
532 } // namespace webrtc | 537 } // namespace webrtc |
533 | 538 |
534 #endif // WEBRTC_API_WEBRTCSESSION_H_ | 539 #endif // WEBRTC_API_WEBRTCSESSION_H_ |
OLD | NEW |