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

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

Issue 638413002: [media] Apply automatic range checks to content enum types across IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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 | « no previous file | content/common/media/media_player_messages_enums_android.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/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 IPC_STRUCT_TRAITS_MEMBER(key_id) 53 IPC_STRUCT_TRAITS_MEMBER(key_id)
54 IPC_STRUCT_TRAITS_MEMBER(iv) 54 IPC_STRUCT_TRAITS_MEMBER(iv)
55 IPC_STRUCT_TRAITS_MEMBER(subsamples) 55 IPC_STRUCT_TRAITS_MEMBER(subsamples)
56 IPC_STRUCT_TRAITS_END() 56 IPC_STRUCT_TRAITS_END()
57 57
58 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry) 58 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry)
59 IPC_STRUCT_TRAITS_MEMBER(clear_bytes) 59 IPC_STRUCT_TRAITS_MEMBER(clear_bytes)
60 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes) 60 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes)
61 IPC_STRUCT_TRAITS_END() 61 IPC_STRUCT_TRAITS_END()
62 62
63 IPC_ENUM_TRAITS(MediaPlayerHostMsg_Initialize_Type) 63 IPC_ENUM_TRAITS_MAX_VALUE(MediaPlayerHostMsg_Initialize_Type,
64 MEDIA_PLAYER_TYPE_LAST)
64 65
65 // Parameters to describe a media player 66 // Parameters to describe a media player
66 IPC_STRUCT_BEGIN(MediaPlayerHostMsg_Initialize_Params) 67 IPC_STRUCT_BEGIN(MediaPlayerHostMsg_Initialize_Params)
67 IPC_STRUCT_MEMBER(MediaPlayerHostMsg_Initialize_Type, type) 68 IPC_STRUCT_MEMBER(MediaPlayerHostMsg_Initialize_Type, type)
68 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, metafile_data_handle) 69 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, metafile_data_handle)
69 IPC_STRUCT_MEMBER(int, player_id) 70 IPC_STRUCT_MEMBER(int, player_id)
70 IPC_STRUCT_MEMBER(int, demuxer_client_id) 71 IPC_STRUCT_MEMBER(int, demuxer_client_id)
71 IPC_STRUCT_MEMBER(GURL, url) 72 IPC_STRUCT_MEMBER(GURL, url)
72 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) 73 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies)
73 IPC_STRUCT_MEMBER(GURL, frame_url) 74 IPC_STRUCT_MEMBER(GURL, frame_url)
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 286
286 #if defined(VIDEO_HOLE) 287 #if defined(VIDEO_HOLE)
287 // Notify the player about the external surface, requesting it if necessary. 288 // Notify the player about the external surface, requesting it if necessary.
288 // |is_request| true if the player is requesting the external surface. 289 // |is_request| true if the player is requesting the external surface.
289 // |rect| the boundary rectangle of the video element. 290 // |rect| the boundary rectangle of the video element.
290 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, 291 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface,
291 int /* player_id */, 292 int /* player_id */,
292 bool /* is_request */, 293 bool /* is_request */,
293 gfx::RectF /* rect */) 294 gfx::RectF /* rect */)
294 #endif // defined(VIDEO_HOLE) 295 #endif // defined(VIDEO_HOLE)
OLDNEW
« no previous file with comments | « no previous file | content/common/media/media_player_messages_enums_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698