OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2013 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 void CreateOffer( | 99 void CreateOffer( |
100 CreateSessionDescriptionObserver* observer, | 100 CreateSessionDescriptionObserver* observer, |
101 const PeerConnectionInterface::RTCOfferAnswerOptions& options, | 101 const PeerConnectionInterface::RTCOfferAnswerOptions& options, |
102 const cricket::MediaSessionOptions& session_options); | 102 const cricket::MediaSessionOptions& session_options); |
103 void CreateAnswer(CreateSessionDescriptionObserver* observer, | 103 void CreateAnswer(CreateSessionDescriptionObserver* observer, |
104 const cricket::MediaSessionOptions& session_options); | 104 const cricket::MediaSessionOptions& session_options); |
105 | 105 |
106 void SetSdesPolicy(cricket::SecurePolicy secure_policy); | 106 void SetSdesPolicy(cricket::SecurePolicy secure_policy); |
107 cricket::SecurePolicy SdesPolicy() const; | 107 cricket::SecurePolicy SdesPolicy() const; |
108 | 108 |
| 109 void set_enable_encrypted_rtp_header_extensions(bool enable) { |
| 110 session_desc_factory_.set_enable_encrypted_rtp_header_extensions(enable); |
| 111 } |
| 112 |
109 sigslot::signal1<const rtc::scoped_refptr<rtc::RTCCertificate>&> | 113 sigslot::signal1<const rtc::scoped_refptr<rtc::RTCCertificate>&> |
110 SignalCertificateReady; | 114 SignalCertificateReady; |
111 | 115 |
112 // For testing. | 116 // For testing. |
113 bool waiting_for_certificate_for_testing() const { | 117 bool waiting_for_certificate_for_testing() const { |
114 return certificate_request_state_ == CERTIFICATE_WAITING; | 118 return certificate_request_state_ == CERTIFICATE_WAITING; |
115 } | 119 } |
116 | 120 |
117 private: | 121 private: |
118 enum CertificateRequestState { | 122 enum CertificateRequestState { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // TODO(jiayl): remove the dependency on session once bug 2264 is fixed. | 164 // TODO(jiayl): remove the dependency on session once bug 2264 is fixed. |
161 WebRtcSession* const session_; | 165 WebRtcSession* const session_; |
162 const std::string session_id_; | 166 const std::string session_id_; |
163 CertificateRequestState certificate_request_state_; | 167 CertificateRequestState certificate_request_state_; |
164 | 168 |
165 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSessionDescriptionFactory); | 169 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSessionDescriptionFactory); |
166 }; | 170 }; |
167 } // namespace webrtc | 171 } // namespace webrtc |
168 | 172 |
169 #endif // WEBRTC_PC_WEBRTCSESSIONDESCRIPTIONFACTORY_H_ | 173 #endif // WEBRTC_PC_WEBRTCSESSIONDESCRIPTIONFACTORY_H_ |
OLD | NEW |