diff options
Diffstat (limited to 'chromium/media/formats/webm/webm_content_encodings.cc')
-rw-r--r-- | chromium/media/formats/webm/webm_content_encodings.cc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chromium/media/formats/webm/webm_content_encodings.cc b/chromium/media/formats/webm/webm_content_encodings.cc new file mode 100644 index 00000000000..157c6ac4311 --- /dev/null +++ b/chromium/media/formats/webm/webm_content_encodings.cc @@ -0,0 +1,28 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#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); +} + +} // namespace media |