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

Unified Diff: talk/session/media/mediasession.h

Issue 1528843005: Add support for GCM cipher suites from RFC 7714. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updates after feedback from Peter Created 5 years 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 | « talk/session/media/channelmanager.cc ('k') | talk/session/media/mediasession.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/session/media/mediasession.h
diff --git a/talk/session/media/mediasession.h b/talk/session/media/mediasession.h
index 8a7f4ccf06758db5453b84c43bfadc1f2dceddd6..3af4bd693b25333299ff070038f1e0eaeb1a0dfd 100644
--- a/talk/session/media/mediasession.h
+++ b/talk/session/media/mediasession.h
@@ -103,7 +103,8 @@ struct MediaSessionOptions {
rtcp_mux_enabled(true),
bundle_enabled(false),
video_bandwidth(kAutoBandwidth),
- data_bandwidth(kDataMaxBandwidth) {
+ data_bandwidth(kDataMaxBandwidth),
+ enable_gcm_crypto_suites(false) {
}
bool has_audio() const {
@@ -144,6 +145,7 @@ struct MediaSessionOptions {
// bps. -1 == auto.
int video_bandwidth;
int data_bandwidth;
+ bool enable_gcm_crypto_suites;
TransportOptions transport_options;
struct Stream {
@@ -543,18 +545,26 @@ const VideoContentDescription* GetFirstVideoContentDescription(
const DataContentDescription* GetFirstDataContentDescription(
const SessionDescription* sdesc);
-void GetSupportedAudioCryptoSuites(std::vector<int>* crypto_suites);
-void GetSupportedVideoCryptoSuites(std::vector<int>* crypto_suites);
-void GetSupportedDataCryptoSuites(std::vector<int>* crypto_suites);
-void GetDefaultSrtpCryptoSuites(std::vector<int>* crypto_suites);
+void GetSupportedAudioCryptoSuites(std::vector<int>* crypto_suites,
+ const MediaSessionOptions& options);
pthatcher1 2015/12/21 22:30:27 This looks a lot better, but two things: 1. The
joachim 2015/12/21 23:37:57 Done
+void GetSupportedVideoCryptoSuites(std::vector<int>* crypto_suites,
+ const MediaSessionOptions& options);
+void GetSupportedDataCryptoSuites(std::vector<int>* crypto_suites,
+ const MediaSessionOptions& options);
+void GetDefaultSrtpCryptoSuites(std::vector<int>* crypto_suites,
+ const MediaSessionOptions& options);
void GetSupportedAudioCryptoSuiteNames(
- std::vector<std::string>* crypto_suite_names);
+ std::vector<std::string>* crypto_suite_names,
+ const MediaSessionOptions& options);
void GetSupportedVideoCryptoSuiteNames(
- std::vector<std::string>* crypto_suite_names);
+ std::vector<std::string>* crypto_suite_names,
+ const MediaSessionOptions& options);
void GetSupportedDataCryptoSuiteNames(
- std::vector<std::string>* crypto_suite_names);
+ std::vector<std::string>* crypto_suite_names,
+ const MediaSessionOptions& options);
void GetDefaultSrtpCryptoSuiteNames(
- std::vector<std::string>* crypto_suite_names);
+ std::vector<std::string>* crypto_suite_names,
+ const MediaSessionOptions& options);
} // namespace cricket
« no previous file with comments | « talk/session/media/channelmanager.cc ('k') | talk/session/media/mediasession.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698