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

Unified Diff: media/cast/video_receiver/video_receiver.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/codecs/vp8/vp8_decoder.cc ('k') | media/cast/video_receiver/video_receiver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/video_receiver/video_receiver.h
diff --git a/media/cast/video_receiver/video_receiver.h b/media/cast/video_receiver/video_receiver.h
index 41ca1d236c93138a86fcc66ea66d390c36463da0..2f92e7185667c1b8adb471ff7ba836f3fe55790d 100644
--- a/media/cast/video_receiver/video_receiver.h
+++ b/media/cast/video_receiver/video_receiver.h
@@ -20,6 +20,10 @@
#include "media/cast/rtp_common/rtp_defines.h"
#include "media/cast/rtp_receiver/rtp_receiver.h"
+namespace crypto {
+ class Encryptor;
+}
+
namespace media {
namespace cast {
@@ -72,6 +76,8 @@ class VideoReceiver : public base::NonThreadSafe,
scoped_ptr<EncodedVideoFrame> encoded_frame,
const base::TimeTicks& render_time);
+ bool DecryptVideoFrame(scoped_ptr<EncodedVideoFrame>* video_frame);
+
bool PullEncodedVideoFrame(uint32 rtp_timestamp,
bool next_frame,
scoped_ptr<EncodedVideoFrame>* encoded_frame,
@@ -109,9 +115,9 @@ class VideoReceiver : public base::NonThreadSafe,
scoped_ptr<RtpReceiverStatistics> rtp_video_receiver_statistics_;
base::TimeTicks time_last_sent_cast_message_;
base::TimeDelta time_offset_; // Sender-receiver offset estimation.
-
+ scoped_ptr<crypto::Encryptor> decryptor_;
+ std::string iv_mask_;
std::list<VideoFrameEncodedCallback> queued_encoded_callbacks_;
-
bool time_incoming_packet_updated_;
base::TimeTicks time_incoming_packet_;
uint32 incoming_rtp_timestamp_;
« no previous file with comments | « media/cast/video_receiver/codecs/vp8/vp8_decoder.cc ('k') | media/cast/video_receiver/video_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698