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

Unified Diff: webrtc/api/ortc/mediadescription.h

Issue 2753343002: Add CryptoParams to webrtc::MediaSession. (Closed)
Patch Set: add an sdes_params unit test Created 3 years, 9 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 | « no previous file | webrtc/api/ortc/mediadescription_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/ortc/mediadescription.h
diff --git a/webrtc/api/ortc/mediadescription.h b/webrtc/api/ortc/mediadescription.h
index 7e811eca9cf696fccdee3eb2127d909bc9495d2b..39b67bd1b4d98679d7deb6d71f53212175ebcefc 100644
--- a/webrtc/api/ortc/mediadescription.h
+++ b/webrtc/api/ortc/mediadescription.h
@@ -13,8 +13,10 @@
#include <string>
#include <utility>
+#include <vector>
#include "webrtc/base/optional.h"
+#include "webrtc/media/base/cryptoparams.h"
namespace webrtc {
@@ -32,8 +34,18 @@ class MediaDescription {
rtc::Optional<std::string> mid() const { return mid_; }
void set_mid(std::string mid) { mid_.emplace(std::move(mid)); }
+ // Security keys and parameters for this media stream. Can be used to
+ // negotiate parameters for SRTP.
+ // https://tools.ietf.org/html/rfc4568#page-5
+ std::vector<cricket::CryptoParams>& sdes_params() { return sdes_params_; }
+ const std::vector<cricket::CryptoParams>& sdes_params() const {
+ return sdes_params_;
+ }
+
private:
rtc::Optional<std::string> mid_;
+
+ std::vector<cricket::CryptoParams> sdes_params_;
};
} // namespace webrtc
« no previous file with comments | « no previous file | webrtc/api/ortc/mediadescription_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698