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

Unified Diff: pc/srtptransport.h

Issue 3012953002: Created the DtlsSrtpTransport.
Patch Set: Resolved the comments. Created 3 years, 3 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
Index: pc/srtptransport.h
diff --git a/pc/srtptransport.h b/pc/srtptransport.h
index 9f20e1d8f662cd5cfc20139f5f88e99360be54f9..5f3643654423f34dbd5ea2c7fa7d9ebfc0204208 100644
--- a/pc/srtptransport.h
+++ b/pc/srtptransport.h
@@ -115,11 +115,19 @@ class SrtpTransport : public RtpTransportInternal {
void ResetParams();
- // Set the header extension ids that should be encrypted for the given source.
+ // Set the header extension ids that should be encrypted.
// This method doesn't immediately update the SRTP session with the new IDs,
// and you need to call SetRtpParams for that to happen.
- void SetEncryptedHeaderExtensionIds(cricket::ContentSource source,
- const std::vector<int>& extension_ids);
+
+ void SetSendEncryptedHeaderExtensionIds(
+ const std::vector<int>& send_extension_ids) {
+ send_encrypted_header_extension_ids_ = send_extension_ids;
+ }
+
+ void SetRecvEncryptedHeaderExtensionIds(
+ const std::vector<int>& recv_extension_ids) {
+ recv_encrypted_header_extension_ids_ = recv_extension_ids;
+ }
// If external auth is enabled, SRTP will write a dummy auth tag that then
// later must get replaced before the packet is sent out. Only supported for

Powered by Google App Engine
This is Rietveld 408576698