| 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..9e443afb4a75aa9f4274a8977fea987c27a6a2c6 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,11 @@ class VideoSender : public base::NonThreadSafe,
|
| scoped_ptr<EncodedVideoFrame> video_frame,
|
| const base::TimeTicks& capture_time);
|
|
|
| + // 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 uint32 incoming_feedback_ssrc_;
|
| const base::TimeDelta rtp_max_delay_;
|
| const int max_frame_rate_;
|
| @@ -113,6 +119,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_;
|
|
|