| // Copyright 2016 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 "content/public/common/cdm_info.h" |
| |
| #include "base/check.h" |
| |
| namespace content { |
| |
| CdmInfo::CdmInfo(const std::string& key_system, |
| Robustness robustness, |
| base::Optional<media::CdmCapability> capability, |
| bool supports_sub_key_systems, |
| const std::string& name, |
| const base::Token& guid, |
| const base::Version& version, |
| const base::FilePath& path, |
| const std::string& file_system_id) |
| : key_system(key_system), |
| robustness(robustness), |
| capability(std::move(capability)), |
| supports_sub_key_systems(supports_sub_key_systems), |
| name(name), |
| guid(guid), |
| version(version), |
| path(path), |
| file_system_id(file_system_id) { |
| DCHECK(!capability || !capability->encryption_schemes.empty()); |
| } |
| |
| CdmInfo::CdmInfo(const std::string& key_system, |
| Robustness robustness, |
| base::Optional<media::CdmCapability> capability) |
| : key_system(key_system), |
| robustness(robustness), |
| capability(std::move(capability)) { |
| DCHECK(!capability || !capability->encryption_schemes.empty()); |
| } |
| |
| CdmInfo::CdmInfo(const CdmInfo& other) = default; |
| |
| CdmInfo::~CdmInfo() = default; |
| |
| } // namespace content |