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

Unified Diff: chrome/common/encrypted_media_messages_android.h

Issue 246033002: Store SupportedCodecs in KeySystemInfo and KeySystems. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: eme_codec.h 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: chrome/common/encrypted_media_messages_android.h
diff --git a/chrome/common/encrypted_media_messages_android.h b/chrome/common/encrypted_media_messages_android.h
index c18cda5cca949f58a986fefd8b3837ab4f86570f..034fb3bbc14fd4caee998a346f51b8ed22f4f291 100644
--- a/chrome/common/encrypted_media_messages_android.h
+++ b/chrome/common/encrypted_media_messages_android.h
@@ -7,49 +7,24 @@
#include <vector>
+#include "content/public/common/eme_codec.h"
#include "ipc/ipc_message_macros.h"
-// Singly-included section for enums and custom IPC traits.
-#ifndef CHROME_COMMON_ENCRYPTED_MEDIA_MESSAGES_ANDROID_H
-#define CHROME_COMMON_ENCRYPTED_MEDIA_MESSAGES_ANDROID_H
-
-namespace android {
-
-// Defines bitmask values used to specify supported codecs.
-// Each value represents a codec within a specific container.
-enum SupportedCodecs {
- NO_CODECS = 0,
- WEBM_VORBIS = 1 << 0,
- WEBM_VP8 = 1 << 1,
- WEBM_CODECS = (WEBM_VORBIS | WEBM_VP8),
- MP4_AAC = 1 << 2,
- MP4_AVC1 = 1 << 3,
- MP4_CODECS = (MP4_AAC | MP4_AVC1),
- ALL_CODECS = (WEBM_CODECS | MP4_CODECS),
- INVALID_CODECS = ~ALL_CODECS
-};
-
-} // namespace android
-
-#endif // CHROME_COMMON_ENCRYPTED_MEDIA_MESSAGES_ANDROID_H
-
-
#define IPC_MESSAGE_START EncryptedMediaMsgStart
-IPC_ENUM_TRAITS(android::SupportedCodecs)
-
IPC_STRUCT_BEGIN(SupportedKeySystemRequest)
IPC_STRUCT_MEMBER(std::string, key_system)
- IPC_STRUCT_MEMBER(android::SupportedCodecs, codecs,
- android::NO_CODECS)
+ IPC_STRUCT_MEMBER(content::SupportedCodecs, codecs, content::EME_CODEC_NONE)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(SupportedKeySystemResponse)
IPC_STRUCT_MEMBER(std::string, key_system)
- IPC_STRUCT_MEMBER(android::SupportedCodecs, compositing_codecs,
- android::NO_CODECS)
- IPC_STRUCT_MEMBER(android::SupportedCodecs, non_compositing_codecs,
- android::NO_CODECS)
+ IPC_STRUCT_MEMBER(content::SupportedCodecs,
+ compositing_codecs,
+ content::EME_CODEC_NONE)
+ IPC_STRUCT_MEMBER(content::SupportedCodecs,
+ non_compositing_codecs,
+ content::EME_CODEC_NONE)
IPC_STRUCT_END()
// Messages sent from the renderer to the browser.
« no previous file with comments | « chrome/browser/media/encrypted_media_message_filter_android.cc ('k') | chrome/renderer/media/chrome_key_systems.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698