| OLD | NEW |
| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 } | 85 } |
| 86 | 86 |
| 87 bool operator!=(const RtpTransceiverDirection& o) const { | 87 bool operator!=(const RtpTransceiverDirection& o) const { |
| 88 return !(*this == o); | 88 return !(*this == o); |
| 89 } | 89 } |
| 90 | 90 |
| 91 static RtpTransceiverDirection FromMediaContentDirection( | 91 static RtpTransceiverDirection FromMediaContentDirection( |
| 92 MediaContentDirection md); | 92 MediaContentDirection md); |
| 93 | 93 |
| 94 MediaContentDirection ToMediaContentDirection() const; | 94 MediaContentDirection ToMediaContentDirection() const; |
| 95 |
| 96 RtpTransceiverDirection MakeReversed() const { |
| 97 return RtpTransceiverDirection(recv, send); |
| 98 } |
| 95 }; | 99 }; |
| 96 | 100 |
| 97 RtpTransceiverDirection | 101 RtpTransceiverDirection |
| 98 NegotiateRtpTransceiverDirection(RtpTransceiverDirection offer, | 102 NegotiateRtpTransceiverDirection(RtpTransceiverDirection offer, |
| 99 RtpTransceiverDirection wants); | 103 RtpTransceiverDirection wants); |
| 100 | 104 |
| 101 struct MediaSessionOptions { | 105 struct MediaSessionOptions { |
| 102 MediaSessionOptions() | 106 MediaSessionOptions() |
| 103 : recv_audio(true), | 107 : recv_audio(true), |
| 104 recv_video(false), | 108 recv_video(false), |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 void GetSupportedVideoCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, | 606 void GetSupportedVideoCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, |
| 603 std::vector<std::string>* crypto_suite_names); | 607 std::vector<std::string>* crypto_suite_names); |
| 604 void GetSupportedDataCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, | 608 void GetSupportedDataCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, |
| 605 std::vector<std::string>* crypto_suite_names); | 609 std::vector<std::string>* crypto_suite_names); |
| 606 void GetDefaultSrtpCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, | 610 void GetDefaultSrtpCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, |
| 607 std::vector<std::string>* crypto_suite_names); | 611 std::vector<std::string>* crypto_suite_names); |
| 608 | 612 |
| 609 } // namespace cricket | 613 } // namespace cricket |
| 610 | 614 |
| 611 #endif // WEBRTC_PC_MEDIASESSION_H_ | 615 #endif // WEBRTC_PC_MEDIASESSION_H_ |
| OLD | NEW |