Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1445)

Unified Diff: content/public/common/content_decryption_module_registration.h

Issue 1637083002: Add CdmService to keep track of CDMs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ContentDecryptionModule Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698