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

Side by Side Diff: ppapi/proxy/ppapi_messages.h

Issue 2514123004: Fix range checking for PP_CdmKeyStatus (Closed)
Patch Set: 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 | « no previous file | no next file » | 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 // Multiply-included message header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 #undef IPC_MESSAGE_EXPORT 88 #undef IPC_MESSAGE_EXPORT
89 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT 89 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
90 90
91 #define IPC_MESSAGE_START PpapiMsgStart 91 #define IPC_MESSAGE_START PpapiMsgStart
92 92
93 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion, 93 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion,
94 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE) 94 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE)
95 IPC_ENUM_TRAITS(PP_AudioSampleRate) 95 IPC_ENUM_TRAITS(PP_AudioSampleRate)
96 IPC_ENUM_TRAITS_MAX_VALUE(PP_BlendMode, PP_BLENDMODE_LAST) 96 IPC_ENUM_TRAITS_MAX_VALUE(PP_BlendMode, PP_BLENDMODE_LAST)
97 IPC_ENUM_TRAITS_MAX_VALUE(PP_CdmExceptionCode, PP_CDMEXCEPTIONCODE_OUTPUTERROR) 97 IPC_ENUM_TRAITS_MAX_VALUE(PP_CdmExceptionCode, PP_CDMEXCEPTIONCODE_OUTPUTERROR)
98 IPC_ENUM_TRAITS_MAX_VALUE(PP_CdmKeyStatus, PP_CDMKEYSTATUS_STATUSPENDING) 98 IPC_ENUM_TRAITS_MAX_VALUE(PP_CdmKeyStatus, PP_CDMKEYSTATUS_RELEASED)
xhwang 2016/11/19 01:27:51 The fix lg but is still error prone. Can we have s
bbudge 2016/11/19 01:58:11 I think it's fine to add a PP_*_MAX value to a Pep
dcheng 2016/11/21 10:15:56 Let's just add a _MAX value then =)
99 IPC_ENUM_TRAITS_MAX_VALUE(PP_CdmMessageType, PP_CDMMESSAGETYPE_LICENSE_RELEASE) 99 IPC_ENUM_TRAITS_MAX_VALUE(PP_CdmMessageType, PP_CDMMESSAGETYPE_LICENSE_RELEASE)
100 IPC_ENUM_TRAITS(PP_DeviceType_Dev) 100 IPC_ENUM_TRAITS(PP_DeviceType_Dev)
101 IPC_ENUM_TRAITS(PP_DecryptorStreamType) 101 IPC_ENUM_TRAITS(PP_DecryptorStreamType)
102 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED) 102 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED)
103 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER) 103 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER)
104 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) 104 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission)
105 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) 105 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType)
106 IPC_ENUM_TRAITS(PP_FlashSetting) 106 IPC_ENUM_TRAITS(PP_FlashSetting)
107 IPC_ENUM_TRAITS(PP_ImageDataFormat) 107 IPC_ENUM_TRAITS(PP_ImageDataFormat)
108 IPC_ENUM_TRAITS_MAX_VALUE(PP_InitDataType, PP_INITDATATYPE_WEBM) 108 IPC_ENUM_TRAITS_MAX_VALUE(PP_InitDataType, PP_INITDATATYPE_WEBM)
(...skipping 2414 matching lines...) Expand 10 before | Expand all | Expand 10 after
2523 std::vector<ppapi::HostResource> /* buffers */, 2523 std::vector<ppapi::HostResource> /* buffers */,
2524 uint32_t /* buffer_size */) 2524 uint32_t /* buffer_size */)
2525 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 2525 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
2526 uint32_t /* status */) 2526 uint32_t /* status */)
2527 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 2527 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
2528 uint32_t /* error */) 2528 uint32_t /* error */)
2529 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 2529 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
2530 uint32_t /* buffer */) 2530 uint32_t /* buffer */)
2531 2531
2532 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2532 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698