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

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

Issue 2514123004: Fix range checking for PP_CdmKeyStatus (Closed)
Patch Set: add _MAX values Created 4 years 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 // 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
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_MAX)
98 IPC_ENUM_TRAITS_MAX_VALUE(PP_CdmKeyStatus, PP_CDMKEYSTATUS_STATUSPENDING) 98 IPC_ENUM_TRAITS_MAX_VALUE(PP_CdmKeyStatus, PP_CDMKEYSTATUS_MAX)
99 IPC_ENUM_TRAITS_MAX_VALUE(PP_CdmMessageType, PP_CDMMESSAGETYPE_LICENSE_RELEASE) 99 IPC_ENUM_TRAITS_MAX_VALUE(PP_CdmMessageType, PP_CDMMESSAGETYPE_MAX)
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)
109 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) 109 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton)
(...skipping 2413 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
« ppapi/api/private/pp_content_decryptor.idl ('K') | « ppapi/c/private/pp_content_decryptor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698