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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 const ContentInfo* GetFirstDataContent(const ContentInfos& contents); | 525 const ContentInfo* GetFirstDataContent(const ContentInfos& contents); |
526 const ContentInfo* GetFirstAudioContent(const SessionDescription* sdesc); | 526 const ContentInfo* GetFirstAudioContent(const SessionDescription* sdesc); |
527 const ContentInfo* GetFirstVideoContent(const SessionDescription* sdesc); | 527 const ContentInfo* GetFirstVideoContent(const SessionDescription* sdesc); |
528 const ContentInfo* GetFirstDataContent(const SessionDescription* sdesc); | 528 const ContentInfo* GetFirstDataContent(const SessionDescription* sdesc); |
529 const AudioContentDescription* GetFirstAudioContentDescription( | 529 const AudioContentDescription* GetFirstAudioContentDescription( |
530 const SessionDescription* sdesc); | 530 const SessionDescription* sdesc); |
531 const VideoContentDescription* GetFirstVideoContentDescription( | 531 const VideoContentDescription* GetFirstVideoContentDescription( |
532 const SessionDescription* sdesc); | 532 const SessionDescription* sdesc); |
533 const DataContentDescription* GetFirstDataContentDescription( | 533 const DataContentDescription* GetFirstDataContentDescription( |
534 const SessionDescription* sdesc); | 534 const SessionDescription* sdesc); |
| 535 // Non-const versions of the above functions. |
| 536 // Useful when modifying an existing description. |
| 537 ContentInfo* GetFirstMediaContent(ContentInfos& contents, MediaType media_type); |
| 538 ContentInfo* GetFirstAudioContent(ContentInfos& contents); |
| 539 ContentInfo* GetFirstVideoContent(ContentInfos& contents); |
| 540 ContentInfo* GetFirstDataContent(ContentInfos& contents); |
| 541 ContentInfo* GetFirstAudioContent(SessionDescription* sdesc); |
| 542 ContentInfo* GetFirstVideoContent(SessionDescription* sdesc); |
| 543 ContentInfo* GetFirstDataContent(SessionDescription* sdesc); |
| 544 AudioContentDescription* GetFirstAudioContentDescription( |
| 545 SessionDescription* sdesc); |
| 546 VideoContentDescription* GetFirstVideoContentDescription( |
| 547 SessionDescription* sdesc); |
| 548 DataContentDescription* GetFirstDataContentDescription( |
| 549 SessionDescription* sdesc); |
535 | 550 |
536 void GetSupportedAudioCryptoSuites(std::vector<int>* crypto_suites); | 551 void GetSupportedAudioCryptoSuites(std::vector<int>* crypto_suites); |
537 void GetSupportedVideoCryptoSuites(std::vector<int>* crypto_suites); | 552 void GetSupportedVideoCryptoSuites(std::vector<int>* crypto_suites); |
538 void GetSupportedDataCryptoSuites(std::vector<int>* crypto_suites); | 553 void GetSupportedDataCryptoSuites(std::vector<int>* crypto_suites); |
539 void GetDefaultSrtpCryptoSuites(std::vector<int>* crypto_suites); | 554 void GetDefaultSrtpCryptoSuites(std::vector<int>* crypto_suites); |
540 void GetSupportedAudioCryptoSuiteNames( | 555 void GetSupportedAudioCryptoSuiteNames( |
541 std::vector<std::string>* crypto_suite_names); | 556 std::vector<std::string>* crypto_suite_names); |
542 void GetSupportedVideoCryptoSuiteNames( | 557 void GetSupportedVideoCryptoSuiteNames( |
543 std::vector<std::string>* crypto_suite_names); | 558 std::vector<std::string>* crypto_suite_names); |
544 void GetSupportedDataCryptoSuiteNames( | 559 void GetSupportedDataCryptoSuiteNames( |
545 std::vector<std::string>* crypto_suite_names); | 560 std::vector<std::string>* crypto_suite_names); |
546 void GetDefaultSrtpCryptoSuiteNames( | 561 void GetDefaultSrtpCryptoSuiteNames( |
547 std::vector<std::string>* crypto_suite_names); | 562 std::vector<std::string>* crypto_suite_names); |
548 | 563 |
549 } // namespace cricket | 564 } // namespace cricket |
550 | 565 |
551 #endif // WEBRTC_PC_MEDIASESSION_H_ | 566 #endif // WEBRTC_PC_MEDIASESSION_H_ |
OLD | NEW |