96be935e865f352bff5532a2ac719f831bae0e32
[platform/framework/web/crosswalk.git] / src / xwalk / tizen / common / media / media_player_messages.h
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Copyright (c) 2013 Intel Corporation. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5
6 // IPC messages for tizen media player.
7 // Multiply-included message file, hence no include guard.
8
9 #include <string>
10
11 #include "content/common/content_export.h"
12 #include "ipc/ipc_message_macros.h"
13 #include "url/gurl.h"
14
15 #undef IPC_MESSAGE_EXPORT
16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
17 #define IPC_MESSAGE_START MediaPlayerMsgStart
18
19 // Messages for notifying the render process of media playback status -------
20
21 // Start the player for playback.
22 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_MediaPlayerPlay,  // NOLINT(*)
23                     int /* player_id */)
24
25 // Pause the player.
26 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_MediaPlayerPause,  // NOLINT(*)
27                     int /* player_id */)
28
29 // Messages for controllering the media playback in browser process ----------
30
31 // Destroy the media player object.
32 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer,  // NOLINT(*)
33                     int /* player_id */)
34
35 // Initialize a media player object with the given player_id.
36 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_MediaPlayerInitialize,  // NOLINT(*)
37                     int /* player_id */,
38                     int /* process_id */,
39                     GURL /* url */)
40
41 // The player was paused.
42 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerPaused,  // NOLINT(*)
43                     int /* player_id */)
44
45 // The player started playing.
46 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerStarted,  // NOLINT(*)
47                     int /* player_id */)