#include <vector>
#include "ipc/ipc_message_macros.h"
#ifndef CHROME_COMMON_ENCRYPTED_MEDIA_MESSAGES_ANDROID_H
#define CHROME_COMMON_ENCRYPTED_MEDIA_MESSAGES_ANDROID_H
namespace android {
enum SupportedCodecs {
NO_SUPPORTED_CODECS = 0,
WEBM_VP8_AND_VORBIS = 1 << 0,
MP4_AAC = 1 << 1,
MP4_AVC1 = 1 << 2,
};
}
#endif
#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_SUPPORTED_CODECS)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(SupportedKeySystemResponse)
IPC_STRUCT_MEMBER(std::string, key_system)
IPC_STRUCT_MEMBER(android::SupportedCodecs, compositing_codecs,
android::NO_SUPPORTED_CODECS)
IPC_STRUCT_MEMBER(android::SupportedCodecs, non_compositing_codecs,
android::NO_SUPPORTED_CODECS)
IPC_STRUCT_END()
IPC_SYNC_MESSAGE_CONTROL1_1(
ChromeViewHostMsg_GetSupportedKeySystems,
SupportedKeySystemRequest ,
SupportedKeySystemResponse )