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

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

Issue 2480003002: [RemotePlayback] Keep track of source compatibility and reject prompt() correspondingly (Closed)
Patch Set: Rebased Created 4 years, 1 month 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 (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
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
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 */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698