| Index: content/public/common/content_decryption_module_registration.h
|
| diff --git a/content/public/common/content_decryption_module_registration.h b/content/public/common/content_decryption_module_registration.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..04419fc789e74a778147b8bbdb571515bc61f511
|
| --- /dev/null
|
| +++ b/content/public/common/content_decryption_module_registration.h
|
| @@ -0,0 +1,46 @@
|
| +// 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.
|
| +
|
| +#ifndef CONTENT_PUBLIC_COMMON_CONTENT_DECRYPTION_MODULE_REGISTRATION_H_
|
| +#define CONTENT_PUBLIC_COMMON_CONTENT_DECRYPTION_MODULE_REGISTRATION_H_
|
| +
|
| +#include <string>
|
| +#include <vector>
|
| +
|
| +#include "base/files/file_path.h"
|
| +#include "base/strings/string16.h"
|
| +#include "content/common/content_export.h"
|
| +
|
| +namespace content {
|
| +
|
| +// Collects information about Content Decryption Modules.
|
| +struct CONTENT_EXPORT ContentDecryptionModuleRegistration {
|
| + // Name of the Key System.
|
| + std::string key_system;
|
| +
|
| + // Version of the CDM.
|
| + std::string version;
|
| +
|
| + // Path to the library implementing the CDM. May be empty() if the
|
| + // CDM is already included as part of the system.
|
| + base::FilePath module_library_path;
|
| +
|
| + // List of codecs supported by the CDM.
|
| + std::vector<base::string16> supported_codecs;
|
| +
|
| + // List of init_data_types supported by the CDM.
|
| + std::vector<base::string16> supported_init_data_types;
|
| +
|
| + ContentDecryptionModuleRegistration(
|
| + const std::string& key_system,
|
| + const std::string& version,
|
| + const base::FilePath& module_library_path,
|
| + const std::vector<base::string16>& supported_codecs,
|
| + const std::vector<base::string16>& supported_init_data_types);
|
| + ~ContentDecryptionModuleRegistration();
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_PUBLIC_COMMON_CONTENT_DECRYPTION_MODULE_REGISTRATION_H_
|
|
|