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

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: Fixed the java enum comment 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
« no previous file with comments | « content/common/DEPS ('k') | content/renderer/media/android/renderer_media_player_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 #include "media/blink/renderer_media_player_interface.h" 11 #include "media/blink/renderer_media_player_interface.h"
12 #include "media/gpu/ipc/common/media_param_traits.h" 12 #include "media/gpu/ipc/common/media_param_traits.h"
13 #include "third_party/WebKit/public/platform/modules/remoteplayback/WebRemotePla ybackAvailability.h"
13 #include "ui/gfx/geometry/rect_f.h" 14 #include "ui/gfx/geometry/rect_f.h"
14 #include "url/gurl.h" 15 #include "url/gurl.h"
15 16
16 #undef IPC_MESSAGE_EXPORT 17 #undef IPC_MESSAGE_EXPORT
17 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 18 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
18 #define IPC_MESSAGE_START MediaPlayerMsgStart 19 #define IPC_MESSAGE_START MediaPlayerMsgStart
19 20
20 IPC_ENUM_TRAITS_MAX_VALUE(MediaPlayerHostMsg_Initialize_Type, 21 IPC_ENUM_TRAITS_MAX_VALUE(MediaPlayerHostMsg_Initialize_Type,
21 MEDIA_PLAYER_TYPE_LAST) 22 MEDIA_PLAYER_TYPE_LAST)
22 23
24 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebRemotePlaybackAvailability,
25 blink::WebRemotePlaybackAvailability::Last)
26
23 // Parameters to describe a media player 27 // Parameters to describe a media player
24 IPC_STRUCT_BEGIN(MediaPlayerHostMsg_Initialize_Params) 28 IPC_STRUCT_BEGIN(MediaPlayerHostMsg_Initialize_Params)
25 IPC_STRUCT_MEMBER(MediaPlayerHostMsg_Initialize_Type, type) 29 IPC_STRUCT_MEMBER(MediaPlayerHostMsg_Initialize_Type, type)
26 IPC_STRUCT_MEMBER(int, player_id) 30 IPC_STRUCT_MEMBER(int, player_id)
27 IPC_STRUCT_MEMBER(GURL, url) 31 IPC_STRUCT_MEMBER(GURL, url)
28 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) 32 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies)
29 IPC_STRUCT_MEMBER(GURL, frame_url) 33 IPC_STRUCT_MEMBER(GURL, frame_url)
30 IPC_STRUCT_MEMBER(bool, allow_credentials) 34 IPC_STRUCT_MEMBER(bool, allow_credentials)
31 IPC_STRUCT_MEMBER(int, delegate_id) 35 IPC_STRUCT_MEMBER(int, delegate_id)
32 IPC_STRUCT_END() 36 IPC_STRUCT_END()
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_RemotePlaybackStarted, 128 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_RemotePlaybackStarted,
125 int /* player_id */) 129 int /* player_id */)
126 130
127 // The remote playback device selection has been cancelled. 131 // The remote playback device selection has been cancelled.
128 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_CancelledRemotePlaybackRequest, 132 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_CancelledRemotePlaybackRequest,
129 int /* player_id */) 133 int /* player_id */)
130 134
131 // The availability of remote devices has changed 135 // The availability of remote devices has changed
132 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_RemoteRouteAvailabilityChanged, 136 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_RemoteRouteAvailabilityChanged,
133 int /* player_id */, 137 int /* player_id */,
134 bool /* routes_available */) 138 blink::WebRemotePlaybackAvailability /* availability */)
135 139
136 // Messages for controlling the media playback in browser process ---------- 140 // Messages for controlling the media playback in browser process ----------
137 141
138 // Destroy the media player object. 142 // Destroy the media player object.
139 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, 143 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer,
140 int /* player_id */) 144 int /* player_id */)
141 145
142 // Initialize a media player object. 146 // Initialize a media player object.
143 IPC_MESSAGE_ROUTED1( 147 IPC_MESSAGE_ROUTED1(
144 MediaPlayerHostMsg_Initialize, 148 MediaPlayerHostMsg_Initialize,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_RequestRemotePlayback, 181 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_RequestRemotePlayback,
178 int /* player_id */) 182 int /* player_id */)
179 183
180 // Control media playing on a remote device. 184 // Control media playing on a remote device.
181 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_RequestRemotePlaybackControl, 185 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_RequestRemotePlaybackControl,
182 int /* player_id */) 186 int /* player_id */)
183 187
184 // Stop playing media on a remote device. 188 // Stop playing media on a remote device.
185 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_RequestRemotePlaybackStop, 189 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_RequestRemotePlaybackStop,
186 int /* player_id */) 190 int /* player_id */)
OLDNEW
« no previous file with comments | « content/common/DEPS ('k') | content/renderer/media/android/renderer_media_player_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698