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

Unified Diff: media/cast/video_sender/video_sender.h

Issue 62843002: Cast: Added support for AES-CTR crypto. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync TOT Created 7 years, 1 month 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 | « media/cast/video_receiver/video_receiver.gypi ('k') | media/cast/video_sender/video_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/video_sender/video_sender.h
diff --git a/media/cast/video_sender/video_sender.h b/media/cast/video_sender/video_sender.h
index 9337757d79788c6a5eeda4fe8b60dcd7f1317ff9..b18f48b65fb350baeeb8addd9ee13d98b19ed827 100644
--- a/media/cast/video_sender/video_sender.h
+++ b/media/cast/video_sender/video_sender.h
@@ -18,6 +18,10 @@
#include "media/cast/rtcp/rtcp.h"
#include "media/cast/rtp_sender/rtp_sender.h"
+namespace crypto {
+ class Encryptor;
+}
+
namespace media {
namespace cast {
@@ -102,6 +106,11 @@ class VideoSender : public base::NonThreadSafe,
void InitializeTimers();
+ // Caller must allocate the destination |encrypted_video_frame| the data
+ // member will be resized to hold the encrypted size.
+ bool EncryptVideoFrame(const EncodedVideoFrame& encoded_frame,
+ EncodedVideoFrame* encrypted_video_frame);
+
const base::TimeDelta rtp_max_delay_;
const int max_frame_rate_;
@@ -113,6 +122,8 @@ class VideoSender : public base::NonThreadSafe,
scoped_ptr<RtpSender> rtp_sender_;
VideoEncoderController* video_encoder_controller_;
uint8 max_unacked_frames_;
+ scoped_ptr<crypto::Encryptor> encryptor_;
+ std::string iv_mask_;
int last_acked_frame_id_;
int last_sent_frame_id_;
int duplicate_ack_;
« no previous file with comments | « media/cast/video_receiver/video_receiver.gypi ('k') | media/cast/video_sender/video_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698