OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "media/base/cdm_key_information.h" |
| 6 |
| 7 namespace media { |
| 8 |
| 9 CdmKeyInformation::CdmKeyInformation(const std::string& key_id, |
| 10 KeyStatus status, |
| 11 uint32 system_code) |
| 12 : key_id_(key_id.begin(), key_id.end()), |
| 13 status_(status), |
| 14 system_code_(system_code) { |
| 15 } |
| 16 |
| 17 CdmKeyInformation::CdmKeyInformation(const uint8* key_id_data, |
| 18 uint32 key_id_length, |
| 19 KeyStatus status, |
| 20 uint32 system_code) |
| 21 : status_(status), system_code_(system_code) { |
| 22 if (key_id_length > 0) |
| 23 key_id_.assign(key_id_data, key_id_data + key_id_length); |
| 24 } |
| 25 |
| 26 CdmKeyInformation::~CdmKeyInformation() { |
| 27 } |
| 28 |
| 29 } // namespace media |
OLD | NEW |