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

Unified Diff: chrome/common/widevine_cdm_constants.h

Issue 23513055: Populate canPlayType to renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressing comments Created 7 years, 3 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: chrome/common/widevine_cdm_constants.h
diff --git a/chrome/common/widevine_cdm_constants.h b/chrome/common/widevine_cdm_constants.h
index b626079a11b7d9677087411d31e16881e712d0e2..c7b5dde0f08e579c9dd192e35ed4cc7c4f7366c8 100644
--- a/chrome/common/widevine_cdm_constants.h
+++ b/chrome/common/widevine_cdm_constants.h
@@ -8,6 +8,17 @@
#include "base/basictypes.h"
#include "base/files/file_path.h"
+// Defines bitmask values used to specify supported codecs.
ddorwin 2013/09/17 22:29:08 As mentioned before, since this could be used for
qinmin 2013/09/18 00:45:44 Done.
+// Each value represents a codec within a specific container.
+enum SupportedCodecs {
+ NO_SUPPORTED_CODECS = 0,
+ WEBM_VP8_AND_VORBIS = 1 << 0,
+#if defined(USE_PROPRIETARY_CODECS)
+ MP4_AAC = 1 << 1,
+ MP4_AVC1 = 1 << 2,
+#endif // defined(USE_PROPRIETARY_CODECS)
+};
+
// The Widevine CDM adapter and Widevine CDM are in this directory.
extern const base::FilePath::CharType kWidevineCdmBaseDirectory[];
@@ -16,4 +27,9 @@ extern const char kWidevineCdmPluginExtension[];
// Permission bits for Widevine CDM plugin.
extern const int32 kWidevineCdmPluginPermissions;
+#if defined(OS_ANDROID)
+// UUID for widevine.
+extern const uint8 kWidevineUuid[16];
ddorwin 2013/09/17 22:29:08 We only seem to use this in one location. Do we re
qinmin 2013/09/18 00:45:44 ok, moved it back On 2013/09/17 22:29:08, ddorwin
+#endif
+
#endif // CHROME_COMMON_WIDEVINE_CDM_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698