OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 android media player. | 5 // IPC messages for android media player. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/time.h" | 10 #include "base/time.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "googleurl/src/gurl.h" |
12 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
13 | 14 |
14 #undef IPC_MESSAGE_EXPORT | 15 #undef IPC_MESSAGE_EXPORT |
15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
16 #define IPC_MESSAGE_START MediaPlayerMsgStart | 17 #define IPC_MESSAGE_START MediaPlayerMsgStart |
17 | 18 |
18 // Messages for notifying the render process of media playback status ------- | 19 // Messages for notifying the render process of media playback status ------- |
19 | 20 |
20 // Media buffering has updated. | 21 // Media buffering has updated. |
21 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_MediaBufferingUpdate, | 22 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_MediaBufferingUpdate, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // Destroy the media player object. | 78 // Destroy the media player object. |
78 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, | 79 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, |
79 int /* player_id */) | 80 int /* player_id */) |
80 | 81 |
81 // Destroy all the players. | 82 // Destroy all the players. |
82 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers) | 83 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers) |
83 | 84 |
84 // Initialize a media player object with the given player_id. | 85 // Initialize a media player object with the given player_id. |
85 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_MediaPlayerInitialize, | 86 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_MediaPlayerInitialize, |
86 int /* player_id */, | 87 int /* player_id */, |
87 std::string /* url */, | 88 GURL /* url */, |
88 std::string /* first_party_for_cookies */) | 89 GURL /* first_party_for_cookies */) |
89 | 90 |
90 // Pause the player. | 91 // Pause the player. |
91 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerPause, | 92 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerPause, |
92 int /* player_id */) | 93 int /* player_id */) |
93 | 94 |
94 // Release player resources, but keep the object for future usage. | 95 // Release player resources, but keep the object for future usage. |
95 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerRelease, | 96 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerRelease, |
96 int /* player_id */) | 97 int /* player_id */) |
97 | 98 |
98 // Perform a seek. | 99 // Perform a seek. |
99 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_MediaPlayerSeek, | 100 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_MediaPlayerSeek, |
100 int /* player_id */, | 101 int /* player_id */, |
101 base::TimeDelta /* time */) | 102 base::TimeDelta /* time */) |
102 | 103 |
103 // Start the player for playback. | 104 // Start the player for playback. |
104 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerStart, | 105 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerStart, |
105 int /* player_id */) | 106 int /* player_id */) |
106 | 107 |
107 // Request the player to enter fullscreen. | 108 // Request the player to enter fullscreen. |
108 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, | 109 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, |
109 int /* player_id */) | 110 int /* player_id */) |
110 | 111 |
111 // Request the player to exit fullscreen. | 112 // Request the player to exit fullscreen. |
112 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, | 113 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, |
113 int /* player_id */) | 114 int /* player_id */) |
OLD | NEW |