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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 bool UpdateRemoteStreams_w(const std::vector<StreamParams>& streams, | 312 bool UpdateRemoteStreams_w(const std::vector<StreamParams>& streams, |
313 ContentAction action, | 313 ContentAction action, |
314 std::string* error_desc); | 314 std::string* error_desc); |
315 virtual bool SetLocalContent_w(const MediaContentDescription* content, | 315 virtual bool SetLocalContent_w(const MediaContentDescription* content, |
316 ContentAction action, | 316 ContentAction action, |
317 std::string* error_desc) = 0; | 317 std::string* error_desc) = 0; |
318 virtual bool SetRemoteContent_w(const MediaContentDescription* content, | 318 virtual bool SetRemoteContent_w(const MediaContentDescription* content, |
319 ContentAction action, | 319 ContentAction action, |
320 std::string* error_desc) = 0; | 320 std::string* error_desc) = 0; |
321 bool SetRtpTransportParameters(const MediaContentDescription* content, | 321 bool SetRtpTransportParameters(const MediaContentDescription* content, |
322 ContentAction action, | 322 ContentAction action, ContentSource src, |
323 ContentSource src, | 323 const RtpHeaderExtensions& extensions, std::string* error_desc); |
324 std::string* error_desc); | |
325 bool SetRtpTransportParameters_n(const MediaContentDescription* content, | 324 bool SetRtpTransportParameters_n(const MediaContentDescription* content, |
326 ContentAction action, | 325 ContentAction action, ContentSource src, |
327 ContentSource src, | 326 const std::vector<int>& encrypted_extension_ids, |
328 std::string* error_desc); | 327 std::string* error_desc); |
| 328 |
| 329 // Return a list of RTP header extensions with the non-encrypted extensions |
| 330 // removed depending on the current crypto_options_ and only if both the |
| 331 // non-encrypted and encrypted extension is present for the same URI. |
| 332 RtpHeaderExtensions GetFilteredRtpHeaderExtensions( |
| 333 const RtpHeaderExtensions& extensions); |
329 | 334 |
330 // Helper method to get RTP Absoulute SendTime extension header id if | 335 // Helper method to get RTP Absoulute SendTime extension header id if |
331 // present in remote supported extensions list. | 336 // present in remote supported extensions list. |
332 void MaybeCacheRtpAbsSendTimeHeaderExtension_w( | 337 void MaybeCacheRtpAbsSendTimeHeaderExtension_w( |
333 const std::vector<webrtc::RtpExtension>& extensions); | 338 const std::vector<webrtc::RtpExtension>& extensions); |
334 | 339 |
335 bool CheckSrtpConfig_n(const std::vector<CryptoParams>& cryptos, | 340 bool CheckSrtpConfig_n(const std::vector<CryptoParams>& cryptos, |
336 bool* dtls, | 341 bool* dtls, |
337 std::string* error_desc); | 342 std::string* error_desc); |
338 bool SetSrtp_n(const std::vector<CryptoParams>& params, | 343 bool SetSrtp_n(const std::vector<CryptoParams>& params, |
339 ContentAction action, | 344 ContentAction action, |
340 ContentSource src, | 345 ContentSource src, |
| 346 const std::vector<int>& encrypted_extension_ids, |
341 std::string* error_desc); | 347 std::string* error_desc); |
342 bool SetRtcpMux_n(bool enable, | 348 bool SetRtcpMux_n(bool enable, |
343 ContentAction action, | 349 ContentAction action, |
344 ContentSource src, | 350 ContentSource src, |
345 std::string* error_desc); | 351 std::string* error_desc); |
346 | 352 |
347 // From MessageHandler | 353 // From MessageHandler |
348 void OnMessage(rtc::Message* pmsg) override; | 354 void OnMessage(rtc::Message* pmsg) override; |
349 | 355 |
350 // Handled in derived classes | 356 // Handled in derived classes |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 // SetSendParameters. | 728 // SetSendParameters. |
723 DataSendParameters last_send_params_; | 729 DataSendParameters last_send_params_; |
724 // Last DataRecvParameters sent down to the media_channel() via | 730 // Last DataRecvParameters sent down to the media_channel() via |
725 // SetRecvParameters. | 731 // SetRecvParameters. |
726 DataRecvParameters last_recv_params_; | 732 DataRecvParameters last_recv_params_; |
727 }; | 733 }; |
728 | 734 |
729 } // namespace cricket | 735 } // namespace cricket |
730 | 736 |
731 #endif // WEBRTC_PC_CHANNEL_H_ | 737 #endif // WEBRTC_PC_CHANNEL_H_ |
OLD | NEW |