23 kScopeAllFrameContents = 1,
24 kScopeTrackPrivateData = 2,
25 kScopeNextContentEncodingData = 4,
37 kEncAlgoNotEncrypted = 0,
46 kCipherModeInvalid = 0,
53 int64_t order()
const {
return order_; }
54 void set_order(int64_t order) { order_ = order; }
56 Scope scope()
const {
return scope_; }
57 void set_scope(Scope scope) { scope_ = scope; }
59 Type type()
const {
return type_; }
60 void set_type(Type type) { type_ = type; }
62 EncryptionAlgo encryption_algo()
const {
return encryption_algo_; }
63 void set_encryption_algo(EncryptionAlgo encryption_algo) {
64 encryption_algo_ = encryption_algo;
67 const std::string& encryption_key_id()
const {
return encryption_key_id_; }
68 void SetEncryptionKeyId(
const uint8_t* encryption_key_id,
int size);
70 CipherMode cipher_mode()
const {
return cipher_mode_; }
71 void set_cipher_mode(CipherMode mode) { cipher_mode_ = mode; }
74 ContentEncoding(
const ContentEncoding&) =
delete;
75 ContentEncoding& operator=(
const ContentEncoding&) =
delete;
80 EncryptionAlgo encryption_algo_;
81 std::string encryption_key_id_;
82 CipherMode cipher_mode_;