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

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: Addressed comments 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
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 7bd60293b099e40271afcfaa52eae48c1a6873bd..9699437ee90a485f61f646f612207a6e6a52c319 100644
--- a/media/cast/video_sender/video_sender.h
+++ b/media/cast/video_sender/video_sender.h
@@ -12,6 +12,7 @@
#include "base/threading/non_thread_safe.h"
#include "base/time/tick_clock.h"
#include "base/time/time.h"
+#include "crypto/encryptor.h"
#include "media/cast/cast_config.h"
#include "media/cast/cast_environment.h"
#include "media/cast/congestion_control/congestion_control.h"
@@ -101,6 +102,9 @@ class VideoSender : public base::NonThreadSafe,
scoped_ptr<EncodedVideoFrame> video_frame,
const base::TimeTicks& capture_time);
+ bool EncryptVideoFrame(const EncodedVideoFrame* encoded_frame,
+ EncodedVideoFrame* encrypted_video_frame);
Alpha Left Google 2013/11/08 22:40:02 Need a comment to explain how |encrypted_video_fra
pwestin 2013/11/12 22:07:23 Done.
+
const uint32 incoming_feedback_ssrc_;
const base::TimeDelta rtp_max_delay_;
const int max_frame_rate_;
@@ -113,6 +117,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 last_sent_key_frame_id_;

Powered by Google App Engine
This is Rietveld 408576698