// 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 { CdmCapability::CdmCapability() = default; CdmCapability::CdmCapability( std::vector video_codecs, base::flat_set encryption_schemes, base::flat_set session_types) : video_codecs(std::move(video_codecs)), encryption_schemes(std::move(encryption_schemes)), session_types(std::move(session_types)) {} CdmCapability::CdmCapability(const CdmCapability& other) = default; CdmCapability::~CdmCapability() = default; CdmInfo::CdmInfo(const std::string& name, const base::Token& guid, const base::Version& version, const base::FilePath& path, const std::string& file_system_id, CdmCapability capability, const std::string& supported_key_system, bool supports_sub_key_systems) : name(name), guid(guid), version(version), path(path), file_system_id(file_system_id), capability(std::move(capability)), supported_key_system(supported_key_system), supports_sub_key_systems(supports_sub_key_systems) { DCHECK(!capability.encryption_schemes.empty()); } CdmInfo::CdmInfo(const CdmInfo& other) = default; CdmInfo::~CdmInfo() = default; } // namespace content