| Index: media/base/cdm_key_information.cc
|
| diff --git a/media/base/cdm_key_information.cc b/media/base/cdm_key_information.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..39ccd97fc5d45ceea9179873b4dbca9697c5ebb5
|
| --- /dev/null
|
| +++ b/media/base/cdm_key_information.cc
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2015 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 "media/base/cdm_key_information.h"
|
| +
|
| +namespace media {
|
| +
|
| +CdmKeyInformation::CdmKeyInformation(const std::string& key_id,
|
| + KeyStatus status,
|
| + uint32 system_code)
|
| + : key_id_(key_id.begin(), key_id.end()),
|
| + status_(status),
|
| + system_code_(system_code) {
|
| +}
|
| +
|
| +CdmKeyInformation::CdmKeyInformation(const uint8* key_id_data,
|
| + uint32 key_id_length,
|
| + KeyStatus status,
|
| + uint32 system_code)
|
| + : status_(status), system_code_(system_code) {
|
| + if (key_id_length > 0)
|
| + key_id_.assign(key_id_data, key_id_data + key_id_length);
|
| +}
|
| +
|
| +CdmKeyInformation::~CdmKeyInformation() {
|
| +}
|
| +
|
| +} // namespace media
|
|
|