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

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

Issue 557723003: Implement Chromium side of MediaKeys.isTypeSupported(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add DEP from components/cdm/renderer to content/public/common. Created 6 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: content/public/common/eme_init_data_type.h
diff --git a/content/public/common/eme_init_data_type.h b/content/public/common/eme_init_data_type.h
new file mode 100644
index 0000000000000000000000000000000000000000..720bbfc9bc4bebdfeca4e2b0050616278d49cd58
--- /dev/null
+++ b/content/public/common/eme_init_data_type.h
@@ -0,0 +1,27 @@
+// Copyright 2014 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_EME_INIT_DATA_TYPE_H_
+#define CONTENT_PUBLIC_COMMON_EME_INIT_DATA_TYPE_H_
+
+namespace content {
+
+// Defines bitmask values that specify registered initialization data types used
+// in Encrypted Media Extensions (EME).
+// The mask values are stored in a SupportedInitDataTypes.
+enum EmeInitDataType {
+ EME_INIT_DATA_TYPE_NONE = 0,
+ EME_INIT_DATA_TYPE_CENC = 1 << 0,
ddorwin 2014/09/13 01:20:45 We should probably not define CENC if proprietary
sandersd (OOO until July 31) 2014/09/22 23:45:52 Done.
+ EME_INIT_DATA_TYPE_WEBM = 1 << 1,
+ EME_INIT_DATA_TYPE_KEYIDS = 1 << 2,
+ EME_INIT_DATA_TYPE_ALL = (EME_INIT_DATA_TYPE_CENC |
+ EME_INIT_DATA_TYPE_WEBM |
+ EME_INIT_DATA_TYPE_KEYIDS),
+};
+
+typedef uint32 SupportedInitDataTypes;
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_EME_INIT_DATA_TYPE_H_

Powered by Google App Engine
This is Rietveld 408576698