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

Unified Diff: content/public/renderer/key_system_info.h

Issue 246033002: Store SupportedCodecs in KeySystemInfo and KeySystems. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/renderer/key_system_info.h
diff --git a/content/public/renderer/key_system_info.h b/content/public/renderer/key_system_info.h
index 3cafa51636a2cbaa83cd1e72f3a4749630b1a4f8..291ab8b8f86e82b57e9ef615fb17565f89f2e2a5 100644
--- a/content/public/renderer/key_system_info.h
+++ b/content/public/renderer/key_system_info.h
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/containers/hash_tables.h"
#include "content/common/content_export.h"
+#include "media/cdm/encrypted_media_codecs.h"
// Definitions:
// * Key system
@@ -32,22 +33,13 @@ namespace content {
// Contains information about an EME key system as well as how to instantiate
// the corresponding CDM.
struct CONTENT_EXPORT KeySystemInfo {
- // Represents the set of codecs supported within a container.
- typedef base::hash_set<std::string> CodecSet;
-
- // Represents container-codec combinations. The CodecSet may contain zero
- // or more codecs.
- typedef std::map<std::string, CodecSet> ContainerCodecsMap;
-
explicit KeySystemInfo(const std::string& key_system);
~KeySystemInfo();
std::string key_system;
- // Specifies container and codec combinations supported by |key_system|.
- // Multiple codecs may be listed for each container.
- // In all cases, the container without a codec is also always supported.
- ContainerCodecsMap supported_types;
+ // Specifies codecs supported by |key_system|.
+ media::SupportedCodecs supported_codecs;
// A hierarchical parent for |key_system|. This value can be used to check
// supported types but cannot be used to instantiate a MediaKeys object.

Powered by Google App Engine
This is Rietveld 408576698