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

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

Issue 1637083002: Add CdmService to keep track of CDMs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changes + file move Created 4 years, 9 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/cdm_info.h
diff --git a/content/public/common/cdm_info.h b/content/public/common/cdm_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..37467100c32b0fe8584a3c785ff0badc262b653c
--- /dev/null
+++ b/content/public/common/cdm_info.h
@@ -0,0 +1,41 @@
+// 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_CDM_INFO_H_
+#define CONTENT_PUBLIC_COMMON_CDM_INFO_H_
+
+#include <string>
+#include <vector>
+
+#include "base/files/file_path.h"
+#include "base/version.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+// Represents a Content Decryption Module implementation and its capabilities.
+struct CONTENT_EXPORT CdmInfo {
+ CdmInfo(const std::string& name,
+ const base::Version& version,
+ const base::FilePath& path,
+ const std::vector<std::string>& supported_codecs);
+ ~CdmInfo();
+
+ // Identifier for the CDM (e.g. Widevine).
xhwang 2016/03/26 07:46:34 nit: s/Identifier/Name?
jrummell 2016/03/29 23:48:45 Done.
+ std::string name;
xhwang 2016/03/26 07:46:34 Not for this CL. I wonder whether we should use en
jrummell 2016/03/29 23:48:45 Could be done, but then Cast would need to change
xhwang 2016/03/30 05:11:18 Can consolidate on "name" vs "type" (as in the fil
jrummell 2016/04/01 21:15:53 Switched to "type".
+
+ // Version of the CDM. May be empty if the version is not known.
+ base::Version version;
+
+ // Path to the library implementing the CDM. May be empty if the
+ // CDM is always available (e.g. Widevine on Android).
xhwang 2016/03/26 07:46:34 On Linux our WV CDM is also always available... It
jrummell 2016/03/29 23:48:45 Done.
+ base::FilePath path;
+
+ // List of codecs supported by the CDM (e.g. webm).
xhwang 2016/03/26 07:46:34 nit: "webm" is not a codec. You can use "vp8" as a
jrummell 2016/03/29 23:48:45 Done.
+ std::vector<std::string> supported_codecs;
xhwang 2016/03/26 07:46:34 We should probably use VideoCodec and AudioCodec h
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_CDM_INFO_H_

Powered by Google App Engine
This is Rietveld 408576698