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

Side by Side Diff: content/common/media/encrypted_media_messages_android.h

Issue 253593002: Componentize EncryptedMediaMessageFilter and rename it CdmMessageFilter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for EME on android. 5 // IPC messages for EME on android.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
11 11
12 // Singly-included section for enums and custom IPC traits. 12 // Singly-included section for enums and custom IPC traits.
13 #ifndef CHROME_COMMON_ENCRYPTED_MEDIA_MESSAGES_ANDROID_H 13 #ifndef CONTENT_COMMON_MEDIA_ENCRYPTED_MEDIA_MESSAGES_ANDROID_H
14 #define CHROME_COMMON_ENCRYPTED_MEDIA_MESSAGES_ANDROID_H 14 #define CONTENT_COMMON_MEDIA_ENCRYPTED_MEDIA_MESSAGES_ANDROID_H
15 15
16 namespace android { 16 namespace android {
17 17
18 // Defines bitmask values used to specify supported codecs. 18 // Defines bitmask values used to specify supported codecs.
19 // Each value represents a codec within a specific container. 19 // Each value represents a codec within a specific container.
20 enum SupportedCodecs { 20 enum SupportedCodecs {
21 NO_CODECS = 0, 21 NO_CODECS = 0,
22 WEBM_VORBIS = 1 << 0, 22 WEBM_VORBIS = 1 << 0,
23 WEBM_VP8 = 1 << 1, 23 WEBM_VP8 = 1 << 1,
24 WEBM_CODECS = (WEBM_VORBIS | WEBM_VP8), 24 WEBM_CODECS = (WEBM_VORBIS | WEBM_VP8),
25 MP4_AAC = 1 << 2, 25 MP4_AAC = 1 << 2,
26 MP4_AVC1 = 1 << 3, 26 MP4_AVC1 = 1 << 3,
27 MP4_CODECS = (MP4_AAC | MP4_AVC1), 27 MP4_CODECS = (MP4_AAC | MP4_AVC1),
28 ALL_CODECS = (WEBM_CODECS | MP4_CODECS), 28 ALL_CODECS = (WEBM_CODECS | MP4_CODECS),
29 INVALID_CODECS = ~ALL_CODECS 29 INVALID_CODECS = ~ALL_CODECS
30 }; 30 };
31 31
32 } // namespace android 32 } // namespace android
33 33
34 #endif // CHROME_COMMON_ENCRYPTED_MEDIA_MESSAGES_ANDROID_H 34 #endif // CONTENT_COMMON_MEDIA_ENCRYPTED_MEDIA_MESSAGES_ANDROID_H
35 35
36 36
37 #define IPC_MESSAGE_START EncryptedMediaMsgStart 37 #define IPC_MESSAGE_START EncryptedMediaMsgStart
38 38
39 IPC_ENUM_TRAITS(android::SupportedCodecs) 39 IPC_ENUM_TRAITS(android::SupportedCodecs)
40 40
41 IPC_STRUCT_BEGIN(SupportedKeySystemRequest) 41 IPC_STRUCT_BEGIN(SupportedKeySystemRequest)
42 IPC_STRUCT_MEMBER(std::string, key_system) 42 IPC_STRUCT_MEMBER(std::string, key_system)
43 IPC_STRUCT_MEMBER(android::SupportedCodecs, codecs, 43 IPC_STRUCT_MEMBER(android::SupportedCodecs, codecs,
44 android::NO_CODECS) 44 android::NO_CODECS)
45 IPC_STRUCT_END() 45 IPC_STRUCT_END()
46 46
47 IPC_STRUCT_BEGIN(SupportedKeySystemResponse) 47 IPC_STRUCT_BEGIN(SupportedKeySystemResponse)
48 IPC_STRUCT_MEMBER(std::string, key_system) 48 IPC_STRUCT_MEMBER(std::string, key_system)
49 IPC_STRUCT_MEMBER(android::SupportedCodecs, compositing_codecs, 49 IPC_STRUCT_MEMBER(android::SupportedCodecs, compositing_codecs,
50 android::NO_CODECS) 50 android::NO_CODECS)
51 IPC_STRUCT_MEMBER(android::SupportedCodecs, non_compositing_codecs, 51 IPC_STRUCT_MEMBER(android::SupportedCodecs, non_compositing_codecs,
52 android::NO_CODECS) 52 android::NO_CODECS)
53 IPC_STRUCT_END() 53 IPC_STRUCT_END()
54 54
55 // Messages sent from the renderer to the browser. 55 // Messages sent from the renderer to the browser.
56 56
57 // Synchronously get a list of supported EME key systems. 57 // Synchronously get a list of supported EME key systems.
58 IPC_SYNC_MESSAGE_CONTROL1_1( 58 IPC_SYNC_MESSAGE_CONTROL1_1(
59 ChromeViewHostMsg_GetSupportedKeySystems, 59 ChromeViewHostMsg_GetSupportedKeySystems,
60 SupportedKeySystemRequest /* key system information request */, 60 SupportedKeySystemRequest /* key system information request */,
61 SupportedKeySystemResponse /* key system information response */) 61 SupportedKeySystemResponse /* key system information response */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698