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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 const DataCodecs& data_codecs() const { return data_codecs_; } | 468 const DataCodecs& data_codecs() const { return data_codecs_; } |
469 void set_data_codecs(const DataCodecs& codecs) { data_codecs_ = codecs; } | 469 void set_data_codecs(const DataCodecs& codecs) { data_codecs_ = codecs; } |
470 SecurePolicy secure() const { return secure_; } | 470 SecurePolicy secure() const { return secure_; } |
471 void set_secure(SecurePolicy s) { secure_ = s; } | 471 void set_secure(SecurePolicy s) { secure_ = s; } |
472 // Decides if a StreamParams shall be added to the audio and video media | 472 // Decides if a StreamParams shall be added to the audio and video media |
473 // content in SessionDescription when CreateOffer and CreateAnswer is called | 473 // content in SessionDescription when CreateOffer and CreateAnswer is called |
474 // even if |options| don't include a Stream. This is needed to support legacy | 474 // even if |options| don't include a Stream. This is needed to support legacy |
475 // applications. |add_legacy_| is true per default. | 475 // applications. |add_legacy_| is true per default. |
476 void set_add_legacy_streams(bool add_legacy) { add_legacy_ = add_legacy; } | 476 void set_add_legacy_streams(bool add_legacy) { add_legacy_ = add_legacy; } |
477 | 477 |
| 478 void set_enable_encrypted_rtp_header_extensions(bool enable) { |
| 479 enable_encrypted_rtp_header_extensions_ = enable; |
| 480 } |
| 481 |
478 SessionDescription* CreateOffer( | 482 SessionDescription* CreateOffer( |
479 const MediaSessionOptions& options, | 483 const MediaSessionOptions& options, |
480 const SessionDescription* current_description) const; | 484 const SessionDescription* current_description) const; |
481 SessionDescription* CreateAnswer( | 485 SessionDescription* CreateAnswer( |
482 const SessionDescription* offer, | 486 const SessionDescription* offer, |
483 const MediaSessionOptions& options, | 487 const MediaSessionOptions& options, |
484 const SessionDescription* current_description) const; | 488 const SessionDescription* current_description) const; |
485 | 489 |
486 private: | 490 private: |
487 const AudioCodecs& GetAudioCodecsForOffer( | 491 const AudioCodecs& GetAudioCodecsForOffer( |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 | 571 |
568 AudioCodecs audio_send_codecs_; | 572 AudioCodecs audio_send_codecs_; |
569 AudioCodecs audio_recv_codecs_; | 573 AudioCodecs audio_recv_codecs_; |
570 AudioCodecs audio_sendrecv_codecs_; | 574 AudioCodecs audio_sendrecv_codecs_; |
571 RtpHeaderExtensions audio_rtp_extensions_; | 575 RtpHeaderExtensions audio_rtp_extensions_; |
572 VideoCodecs video_codecs_; | 576 VideoCodecs video_codecs_; |
573 RtpHeaderExtensions video_rtp_extensions_; | 577 RtpHeaderExtensions video_rtp_extensions_; |
574 DataCodecs data_codecs_; | 578 DataCodecs data_codecs_; |
575 SecurePolicy secure_; | 579 SecurePolicy secure_; |
576 bool add_legacy_; | 580 bool add_legacy_; |
| 581 bool enable_encrypted_rtp_header_extensions_ = false; |
577 std::string lang_; | 582 std::string lang_; |
578 const TransportDescriptionFactory* transport_desc_factory_; | 583 const TransportDescriptionFactory* transport_desc_factory_; |
579 }; | 584 }; |
580 | 585 |
581 // Convenience functions. | 586 // Convenience functions. |
582 bool IsMediaContent(const ContentInfo* content); | 587 bool IsMediaContent(const ContentInfo* content); |
583 bool IsAudioContent(const ContentInfo* content); | 588 bool IsAudioContent(const ContentInfo* content); |
584 bool IsVideoContent(const ContentInfo* content); | 589 bool IsVideoContent(const ContentInfo* content); |
585 bool IsDataContent(const ContentInfo* content); | 590 bool IsDataContent(const ContentInfo* content); |
586 const ContentInfo* GetFirstMediaContent(const ContentInfos& contents, | 591 const ContentInfo* GetFirstMediaContent(const ContentInfos& contents, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 void GetSupportedVideoSdesCryptoSuiteNames( | 631 void GetSupportedVideoSdesCryptoSuiteNames( |
627 const rtc::CryptoOptions& crypto_options, | 632 const rtc::CryptoOptions& crypto_options, |
628 std::vector<std::string>* crypto_suite_names); | 633 std::vector<std::string>* crypto_suite_names); |
629 void GetSupportedDataSdesCryptoSuiteNames( | 634 void GetSupportedDataSdesCryptoSuiteNames( |
630 const rtc::CryptoOptions& crypto_options, | 635 const rtc::CryptoOptions& crypto_options, |
631 std::vector<std::string>* crypto_suite_names); | 636 std::vector<std::string>* crypto_suite_names); |
632 | 637 |
633 } // namespace cricket | 638 } // namespace cricket |
634 | 639 |
635 #endif // WEBRTC_PC_MEDIASESSION_H_ | 640 #endif // WEBRTC_PC_MEDIASESSION_H_ |
OLD | NEW |