Chromium Code Reviews| 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 |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e0166f3107e5460a18c58e5d8cf03ff81a32145d |
| --- /dev/null |
| +++ b/chrome/common/encrypted_media_messages_android.h |
| @@ -0,0 +1,43 @@ |
| +// Copyright 2013 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. |
| + |
| +// IPC messages for EME on android. |
| +// Multiply-included message file, hence no include guard. |
| + |
| +#include <string> |
| +#include <vector> |
| + |
| +#include "chrome/common/widevine_cdm_constants.h" |
|
ddorwin
2013/09/17 22:29:08
As I mentioned earlier, we should avoid having spe
qinmin
2013/09/18 00:45:44
Done.
|
| +#include "ipc/ipc_message_macros.h" |
| + |
| +#define IPC_MESSAGE_START EncryptedMediaMsgStart |
| + |
| +IPC_ENUM_TRAITS(SupportedCodecs) |
| + |
| +IPC_STRUCT_BEGIN(SupportedKeySystemRequest) |
| + // Key system UUID. |
| + IPC_STRUCT_MEMBER(std::vector<uint8>, uuid) |
| + |
| + // Bitmask of supported codecs. |
| + IPC_STRUCT_MEMBER(SupportedCodecs, supported_codecs) |
| +IPC_STRUCT_END() |
| + |
| +IPC_STRUCT_BEGIN(SupportedKeySystemResponse) |
|
ddorwin
2013/09/17 22:29:08
Do the members of this struct get initialized anyw
qinmin
2013/09/18 00:45:44
separated the struct definition from IPC
On 2013/
|
| + // Key system UUID. |
| + IPC_STRUCT_MEMBER(std::vector<uint8>, uuid) |
| + |
| + // Bitmask of supported compositing codecs. |
| + IPC_STRUCT_MEMBER(SupportedCodecs, compositing_codecs) |
| + |
| + // Bitmask of supported non-compositing codecs. |
| + IPC_STRUCT_MEMBER(SupportedCodecs, non_compositing_codecs) |
| +IPC_STRUCT_END() |
| + |
| +// Messages sent from the renderer to the browser. |
| + |
| +// Synchronously get a list of supported EME key systems. |
| +IPC_SYNC_MESSAGE_CONTROL1_1( |
| + ChromeViewHostMsg_GetSupportedKeySystems, |
| + SupportedKeySystemRequest /* key system information request*/, |
|
ddorwin
2013/09/17 22:29:08
extra space before and missing after
qinmin
2013/09/18 00:45:44
Done.
|
| + SupportedKeySystemResponse /* key system information response */) |