Chromium Code Reviews| 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 "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 122 | 122 |
| 123 // The remote playback has started. | 123 // The remote playback has started. |
| 124 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_RemotePlaybackStarted, | 124 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_RemotePlaybackStarted, |
| 125 int /* player_id */) | 125 int /* player_id */) |
| 126 | 126 |
| 127 // The remote playback device selection has been cancelled. | 127 // The remote playback device selection has been cancelled. |
| 128 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_CancelledRemotePlaybackRequest, | 128 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_CancelledRemotePlaybackRequest, |
| 129 int /* player_id */) | 129 int /* player_id */) |
| 130 | 130 |
| 131 // The availability of remote devices has changed | 131 // The availability of remote devices has changed |
| 132 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_RemoteRouteAvailabilityChanged, | 132 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_RemoteRouteAvailabilityChanged, |
| 133 int /* player_id */, | 133 int /* player_id */, |
| 134 bool /* routes_available */) | 134 bool /* is_route_available */, |
| 135 bool /* is_source_compatible */) | |
|
dcheng
2016/11/09 19:03:41
Sorry, I should have been clearer in my original c
whywhat
2016/11/09 22:09:28
Any advice on reusing the enum from public/platfor
| |
| 135 | 136 |
| 136 // Messages for controlling the media playback in browser process ---------- | 137 // Messages for controlling the media playback in browser process ---------- |
| 137 | 138 |
| 138 // Destroy the media player object. | 139 // Destroy the media player object. |
| 139 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, | 140 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, |
| 140 int /* player_id */) | 141 int /* player_id */) |
| 141 | 142 |
| 142 // Initialize a media player object. | 143 // Initialize a media player object. |
| 143 IPC_MESSAGE_ROUTED1( | 144 IPC_MESSAGE_ROUTED1( |
| 144 MediaPlayerHostMsg_Initialize, | 145 MediaPlayerHostMsg_Initialize, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 177 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_RequestRemotePlayback, | 178 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_RequestRemotePlayback, |
| 178 int /* player_id */) | 179 int /* player_id */) |
| 179 | 180 |
| 180 // Control media playing on a remote device. | 181 // Control media playing on a remote device. |
| 181 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_RequestRemotePlaybackControl, | 182 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_RequestRemotePlaybackControl, |
| 182 int /* player_id */) | 183 int /* player_id */) |
| 183 | 184 |
| 184 // Stop playing media on a remote device. | 185 // Stop playing media on a remote device. |
| 185 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_RequestRemotePlaybackStop, | 186 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_RequestRemotePlaybackStop, |
| 186 int /* player_id */) | 187 int /* player_id */) |
| OLD | NEW |