7 #ifndef MEDIA_FORMATS_WEBM_ENCRYPTOR_H_
8 #define MEDIA_FORMATS_WEBM_ENCRYPTOR_H_
10 #include "packager/base/memory/ref_counted.h"
11 #include "packager/base/memory/scoped_ptr.h"
12 #include "packager/media/base/key_source.h"
13 #include "packager/media/base/status.h"
14 #include "packager/media/base/stream_info.h"
15 #include "packager/media/codecs/vpx_parser.h"
16 #include "packager/media/event/muxer_listener.h"
17 #include "packager/third_party/libwebm/src/mkvmuxer.hpp"
22 class AesCtrEncryptor;
37 KeySource::TrackType track_type,
40 bool webm_subsample_encryption);
56 KeySource::TrackType track_type,
59 bool webm_subsample_encryption);
62 scoped_ptr<EncryptionKey> key_;
63 scoped_ptr<AesCtrEncryptor> encryptor_;
64 scoped_ptr<VPxParser> vpx_parser_;
71 #endif // MEDIA_FORMATS_WEBM_ENCRYPTOR_H_