OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // IPC messages for the Media Session API. | |
6 // Multiply-included message file, hence no include guard. | |
7 | |
8 #include "base/optional.h" | |
9 #include "content/common/android/gin_java_bridge_errors.h" | |
10 #include "content/common/content_export.h" | |
11 #include "content/public/common/media_metadata.h" | |
12 #include "ipc/ipc_message_macros.h" | |
13 | |
14 #undef IPC_MESSAGE_EXPORT | |
15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | |
16 #define IPC_MESSAGE_START MediaSessionMsgStart | |
17 | |
18 IPC_STRUCT_TRAITS_BEGIN(content::MediaMetadata) | |
19 IPC_STRUCT_TRAITS_MEMBER(title) | |
20 IPC_STRUCT_TRAITS_MEMBER(artist) | |
21 IPC_STRUCT_TRAITS_MEMBER(album) | |
22 IPC_STRUCT_TRAITS_MEMBER(artwork) | |
23 IPC_STRUCT_TRAITS_END() | |
24 | |
25 // Messages for notifying the render process of media session status ------- | |
26 | |
27 IPC_MESSAGE_ROUTED2(MediaSessionMsg_DidActivate, | |
28 int /* request_id */, | |
29 bool /* success */) | |
30 | |
31 IPC_MESSAGE_ROUTED1(MediaSessionMsg_DidDeactivate, int /* request_id */) | |
32 | |
33 // Messages for controlling the media session in browser process ---------- | |
34 | |
35 IPC_MESSAGE_ROUTED2(MediaSessionHostMsg_Activate, | |
36 int /* session_id */, | |
37 int /* request_id */) | |
38 | |
39 IPC_MESSAGE_ROUTED2(MediaSessionHostMsg_Deactivate, | |
40 int /* session_id */, | |
41 int /* request_id */) | |
42 | |
43 IPC_MESSAGE_ROUTED2(MediaSessionHostMsg_SetMetadata, | |
44 int /* request_id*/, | |
45 base::Optional<content::MediaMetadata> /* metadata */) | |
OLD | NEW |