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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 virtual bool GetLocalCertificate( | 271 virtual bool GetLocalCertificate( |
272 const std::string& transport_name, | 272 const std::string& transport_name, |
273 rtc::scoped_refptr<rtc::RTCCertificate>* certificate); | 273 rtc::scoped_refptr<rtc::RTCCertificate>* certificate); |
274 | 274 |
275 // Caller owns returned certificate | 275 // Caller owns returned certificate |
276 virtual std::unique_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate( | 276 virtual std::unique_ptr<rtc::SSLCertificate> GetRemoteSSLCertificate( |
277 const std::string& transport_name); | 277 const std::string& transport_name); |
278 | 278 |
279 cricket::DataChannelType data_channel_type() const; | 279 cricket::DataChannelType data_channel_type() const; |
280 | 280 |
| 281 // Returns true if there was an ICE restart initiated by the remote offer. |
281 bool IceRestartPending(const std::string& content_name) const; | 282 bool IceRestartPending(const std::string& content_name) const; |
282 | 283 |
| 284 // Set the "needs-ice-restart" flag as described in JSEP. After the flag is |
| 285 // set, offers should generate new ufrags/passwords until an ICE restart |
| 286 // occurs. |
| 287 void SetNeedsIceRestartFlag(); |
| 288 // Returns true if the ICE restart flag above was set, and no ICE restart has |
| 289 // occurred yet for this transport (by applying a local description with |
| 290 // changed ufrag/password). If the transport has been deleted as a result of |
| 291 // bundling, returns false. |
| 292 bool NeedsIceRestart(const std::string& content_name) const; |
| 293 |
283 // Called when an RTCCertificate is generated or retrieved by | 294 // Called when an RTCCertificate is generated or retrieved by |
284 // WebRTCSessionDescriptionFactory. Should happen before setLocalDescription. | 295 // WebRTCSessionDescriptionFactory. Should happen before setLocalDescription. |
285 void OnCertificateReady( | 296 void OnCertificateReady( |
286 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); | 297 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); |
287 void OnDtlsSetupFailure(cricket::BaseChannel*, bool rtcp); | 298 void OnDtlsSetupFailure(cricket::BaseChannel*, bool rtcp); |
288 | 299 |
289 // For unit test. | 300 // For unit test. |
290 bool waiting_for_certificate_for_testing() const; | 301 bool waiting_for_certificate_for_testing() const; |
291 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate_for_testing(); | 302 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate_for_testing(); |
292 | 303 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 | 531 |
521 #ifdef HAVE_QUIC | 532 #ifdef HAVE_QUIC |
522 std::unique_ptr<QuicDataTransport> quic_data_transport_; | 533 std::unique_ptr<QuicDataTransport> quic_data_transport_; |
523 #endif // HAVE_QUIC | 534 #endif // HAVE_QUIC |
524 | 535 |
525 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); | 536 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); |
526 }; | 537 }; |
527 } // namespace webrtc | 538 } // namespace webrtc |
528 | 539 |
529 #endif // WEBRTC_API_WEBRTCSESSION_H_ | 540 #endif // WEBRTC_API_WEBRTCSESSION_H_ |
OLD | NEW |