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

Unified Diff: webrtc/ortc/rtptransportcontrolleradapter.h

Issue 2714813004: Create the SrtpTransportInterface. (Closed)
Patch Set: Use rtc::Optional for SRTP send and receive keys. Created 3 years, 10 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/ortc/rtptransportadapter.cc ('k') | webrtc/ortc/rtptransportcontrolleradapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/ortc/rtptransportcontrolleradapter.h
diff --git a/webrtc/ortc/rtptransportcontrolleradapter.h b/webrtc/ortc/rtptransportcontrolleradapter.h
index 4e02b9595585eaa1b0830e5d96470d0b82ee84cb..902ec01c5137e74909ec6d84851b406a7e4d2e78 100644
--- a/webrtc/ortc/rtptransportcontrolleradapter.h
+++ b/webrtc/ortc/rtptransportcontrolleradapter.h
@@ -16,18 +16,18 @@
#include <string>
#include <vector>
+#include "webrtc/api/ortc/ortcrtpreceiverinterface.h"
+#include "webrtc/api/ortc/ortcrtpsenderinterface.h"
+#include "webrtc/api/ortc/rtptransportcontrollerinterface.h"
+#include "webrtc/api/ortc/srtptransportinterface.h"
#include "webrtc/base/constructormagic.h"
#include "webrtc/base/sigslot.h"
#include "webrtc/base/thread.h"
#include "webrtc/call/call.h"
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
-#include "webrtc/api/ortc/ortcrtpreceiverinterface.h"
-#include "webrtc/api/ortc/ortcrtpsenderinterface.h"
-#include "webrtc/api/ortc/rtptransportcontrollerinterface.h"
-#include "webrtc/api/ortc/rtptransportinterface.h"
+#include "webrtc/media/base/mediachannel.h" // For MediaConfig.
#include "webrtc/pc/channelmanager.h"
#include "webrtc/pc/mediacontroller.h"
-#include "webrtc/media/base/mediachannel.h" // For MediaConfig.
namespace webrtc {
@@ -81,6 +81,12 @@ class RtpTransportControllerAdapter : public RtpTransportControllerInterface,
const RtcpParameters& rtcp_parameters,
PacketTransportInterface* rtp,
PacketTransportInterface* rtcp);
+
+ RTCErrorOr<std::unique_ptr<SrtpTransportInterface>>
+ CreateProxiedSrtpTransport(const RtcpParameters& rtcp_parameters,
+ PacketTransportInterface* rtp,
+ PacketTransportInterface* rtcp);
+
// |transport_proxy| needs to be a proxy to a transport because the
// application may call GetTransport() on the returned sender or receiver,
// and expects it to return a thread-safe transport proxy.
@@ -170,6 +176,13 @@ class RtpTransportControllerAdapter : public RtpTransportControllerInterface,
const std::string& cname,
const cricket::MediaContentDescription& description) const;
+ // If the |rtp_transport| is a SrtpTransport, set the cryptos of the
+ // audio/video content descriptions.
+ RTCError MaybeSetCryptos(
+ RtpTransportInterface* rtp_transport,
+ cricket::MediaContentDescription* local_description,
+ cricket::MediaContentDescription* remote_description);
+
rtc::Thread* signaling_thread_;
rtc::Thread* worker_thread_;
// |transport_proxies_| and |inner_audio_transport_|/|inner_audio_transport_|
« no previous file with comments | « webrtc/ortc/rtptransportadapter.cc ('k') | webrtc/ortc/rtptransportcontrolleradapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698