Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: webrtc/pc/channel.h

Issue 2761143002: Support encrypted RTP extensions (RFC 6904) (Closed)
Patch Set: Fix compile error on win_x64 bots. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/p2p/base/fakedtlstransport.h ('k') | webrtc/pc/channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/channel.h
diff --git a/webrtc/pc/channel.h b/webrtc/pc/channel.h
index 6a420538d7c2c669e9d8564f2a7fa9219406fc20..f8cc286279ef7f60592cbe046592e96d093ee431 100644
--- a/webrtc/pc/channel.h
+++ b/webrtc/pc/channel.h
@@ -319,13 +319,18 @@ class BaseChannel
ContentAction action,
std::string* error_desc) = 0;
bool SetRtpTransportParameters(const MediaContentDescription* content,
- ContentAction action,
- ContentSource src,
- std::string* error_desc);
+ ContentAction action, ContentSource src,
+ const RtpHeaderExtensions& extensions, std::string* error_desc);
bool SetRtpTransportParameters_n(const MediaContentDescription* content,
- ContentAction action,
- ContentSource src,
- std::string* error_desc);
+ ContentAction action, ContentSource src,
+ const std::vector<int>& encrypted_extension_ids,
+ std::string* error_desc);
+
+ // Return a list of RTP header extensions with the non-encrypted extensions
+ // removed depending on the current crypto_options_ and only if both the
+ // non-encrypted and encrypted extension is present for the same URI.
+ RtpHeaderExtensions GetFilteredRtpHeaderExtensions(
+ const RtpHeaderExtensions& extensions);
// Helper method to get RTP Absoulute SendTime extension header id if
// present in remote supported extensions list.
@@ -338,6 +343,7 @@ class BaseChannel
bool SetSrtp_n(const std::vector<CryptoParams>& params,
ContentAction action,
ContentSource src,
+ const std::vector<int>& encrypted_extension_ids,
std::string* error_desc);
bool SetRtcpMux_n(bool enable,
ContentAction action,
« no previous file with comments | « webrtc/p2p/base/fakedtlstransport.h ('k') | webrtc/pc/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698