This source file includes following definitions.
- cipher_mode_
- SetEncryptionKeyId
#include "base/logging.h"
#include "media/formats/webm/webm_content_encodings.h"
namespace media {
ContentEncoding::ContentEncoding()
: order_(kOrderInvalid),
scope_(kScopeInvalid),
type_(kTypeInvalid),
encryption_algo_(kEncAlgoInvalid),
cipher_mode_(kCipherModeInvalid) {
}
ContentEncoding::~ContentEncoding() {}
void ContentEncoding::SetEncryptionKeyId(const uint8* encryption_key_id,
int size) {
DCHECK(encryption_key_id);
DCHECK_GT(size, 0);
encryption_key_id_.assign(reinterpret_cast<const char*>(encryption_key_id),
size);
}
}