OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 bool add_legacy_; | 529 bool add_legacy_; |
530 std::string lang_; | 530 std::string lang_; |
531 const TransportDescriptionFactory* transport_desc_factory_; | 531 const TransportDescriptionFactory* transport_desc_factory_; |
532 }; | 532 }; |
533 | 533 |
534 // Convenience functions. | 534 // Convenience functions. |
535 bool IsMediaContent(const ContentInfo* content); | 535 bool IsMediaContent(const ContentInfo* content); |
536 bool IsAudioContent(const ContentInfo* content); | 536 bool IsAudioContent(const ContentInfo* content); |
537 bool IsVideoContent(const ContentInfo* content); | 537 bool IsVideoContent(const ContentInfo* content); |
538 bool IsDataContent(const ContentInfo* content); | 538 bool IsDataContent(const ContentInfo* content); |
| 539 const ContentInfo* GetFirstMediaContent(const ContentInfos& contents, |
| 540 MediaType media_type); |
539 const ContentInfo* GetFirstAudioContent(const ContentInfos& contents); | 541 const ContentInfo* GetFirstAudioContent(const ContentInfos& contents); |
540 const ContentInfo* GetFirstVideoContent(const ContentInfos& contents); | 542 const ContentInfo* GetFirstVideoContent(const ContentInfos& contents); |
541 const ContentInfo* GetFirstDataContent(const ContentInfos& contents); | 543 const ContentInfo* GetFirstDataContent(const ContentInfos& contents); |
542 const ContentInfo* GetFirstAudioContent(const SessionDescription* sdesc); | 544 const ContentInfo* GetFirstAudioContent(const SessionDescription* sdesc); |
543 const ContentInfo* GetFirstVideoContent(const SessionDescription* sdesc); | 545 const ContentInfo* GetFirstVideoContent(const SessionDescription* sdesc); |
544 const ContentInfo* GetFirstDataContent(const SessionDescription* sdesc); | 546 const ContentInfo* GetFirstDataContent(const SessionDescription* sdesc); |
545 const AudioContentDescription* GetFirstAudioContentDescription( | 547 const AudioContentDescription* GetFirstAudioContentDescription( |
546 const SessionDescription* sdesc); | 548 const SessionDescription* sdesc); |
547 const VideoContentDescription* GetFirstVideoContentDescription( | 549 const VideoContentDescription* GetFirstVideoContentDescription( |
548 const SessionDescription* sdesc); | 550 const SessionDescription* sdesc); |
549 const DataContentDescription* GetFirstDataContentDescription( | 551 const DataContentDescription* GetFirstDataContentDescription( |
550 const SessionDescription* sdesc); | 552 const SessionDescription* sdesc); |
551 | 553 |
552 void GetSupportedAudioCryptoSuites(std::vector<int>* crypto_suites); | 554 void GetSupportedAudioCryptoSuites(std::vector<int>* crypto_suites); |
553 void GetSupportedVideoCryptoSuites(std::vector<int>* crypto_suites); | 555 void GetSupportedVideoCryptoSuites(std::vector<int>* crypto_suites); |
554 void GetSupportedDataCryptoSuites(std::vector<int>* crypto_suites); | 556 void GetSupportedDataCryptoSuites(std::vector<int>* crypto_suites); |
555 void GetDefaultSrtpCryptoSuites(std::vector<int>* crypto_suites); | 557 void GetDefaultSrtpCryptoSuites(std::vector<int>* crypto_suites); |
556 void GetSupportedAudioCryptoSuiteNames( | 558 void GetSupportedAudioCryptoSuiteNames( |
557 std::vector<std::string>* crypto_suite_names); | 559 std::vector<std::string>* crypto_suite_names); |
558 void GetSupportedVideoCryptoSuiteNames( | 560 void GetSupportedVideoCryptoSuiteNames( |
559 std::vector<std::string>* crypto_suite_names); | 561 std::vector<std::string>* crypto_suite_names); |
560 void GetSupportedDataCryptoSuiteNames( | 562 void GetSupportedDataCryptoSuiteNames( |
561 std::vector<std::string>* crypto_suite_names); | 563 std::vector<std::string>* crypto_suite_names); |
562 void GetDefaultSrtpCryptoSuiteNames( | 564 void GetDefaultSrtpCryptoSuiteNames( |
563 std::vector<std::string>* crypto_suite_names); | 565 std::vector<std::string>* crypto_suite_names); |
564 | 566 |
565 } // namespace cricket | 567 } // namespace cricket |
566 | 568 |
567 #endif // TALK_SESSION_MEDIA_MEDIASESSION_H_ | 569 #endif // TALK_SESSION_MEDIA_MEDIASESSION_H_ |
OLD | NEW |