OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 // PPP_NetworkState_Dev. | 186 // PPP_NetworkState_Dev. |
187 IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState, | 187 IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState, |
188 bool /* online */) | 188 bool /* online */) |
189 | 189 |
190 // Sent in both directions to see if the other side supports the given | 190 // Sent in both directions to see if the other side supports the given |
191 // interface. | 191 // interface. |
192 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface, | 192 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface, |
193 std::string /* interface_name */, | 193 std::string /* interface_name */, |
194 bool /* result */) | 194 bool /* result */) |
195 | 195 |
| 196 IPC_MESSAGE_CONTROL2(PpapiMsg_ExecuteCallback, |
| 197 uint32 /* serialized_callback */, |
| 198 int32 /* param */) |
| 199 |
196 // Broker Process. | 200 // Broker Process. |
197 | 201 |
198 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin, | 202 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin, |
199 PP_Instance /* instance */, | 203 PP_Instance /* instance */, |
200 IPC::PlatformFileForTransit /* handle */, | 204 IPC::PlatformFileForTransit /* handle */, |
201 int32_t /* result */) | 205 int32_t /* result */) |
202 | 206 |
203 // PPB_Audio. | 207 // PPB_Audio. |
204 | 208 |
205 // Notifies the result of the audio stream create call. This is called in | 209 // Notifies the result of the audio stream create call. This is called in |
(...skipping 17 matching lines...) Expand all Loading... |
223 IPC::PlatformFileForTransit /* handle */, | 227 IPC::PlatformFileForTransit /* handle */, |
224 int32_t /* result */) | 228 int32_t /* result */) |
225 | 229 |
226 // PPB_FileChooser. | 230 // PPB_FileChooser. |
227 IPC_MESSAGE_ROUTED3( | 231 IPC_MESSAGE_ROUTED3( |
228 PpapiMsg_PPBFileChooser_ChooseComplete, | 232 PpapiMsg_PPBFileChooser_ChooseComplete, |
229 ppapi::HostResource /* chooser */, | 233 ppapi::HostResource /* chooser */, |
230 int32_t /* result_code (will be != PP_OK on failure */, | 234 int32_t /* result_code (will be != PP_OK on failure */, |
231 std::vector<ppapi::PPB_FileRef_CreateInfo> /* chosen_files */) | 235 std::vector<ppapi::PPB_FileRef_CreateInfo> /* chosen_files */) |
232 | 236 |
233 // PPB_FileRef. | |
234 IPC_MESSAGE_ROUTED3( | |
235 PpapiMsg_PPBFileRef_CallbackComplete, | |
236 ppapi::HostResource /* resource */, | |
237 int /* callback_id */, | |
238 int32_t /* result */) | |
239 | |
240 // PPB_FileSystem. | 237 // PPB_FileSystem. |
241 IPC_MESSAGE_ROUTED2( | 238 IPC_MESSAGE_ROUTED2( |
242 PpapiMsg_PPBFileSystem_OpenComplete, | 239 PpapiMsg_PPBFileSystem_OpenComplete, |
243 ppapi::HostResource /* filesystem */, | 240 ppapi::HostResource /* filesystem */, |
244 int32_t /* result */) | 241 int32_t /* result */) |
245 | 242 |
246 // PPB_Flash_NetConnector. | 243 // PPB_Flash_NetConnector. |
247 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBFlashNetConnector_ConnectACK, | 244 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBFlashNetConnector_ConnectACK, |
248 ppapi::HostResource /* net_connector */, | 245 ppapi::HostResource /* net_connector */, |
249 int32_t /* result */, | 246 int32_t /* result */, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 // PPB_Graphics2D. | 290 // PPB_Graphics2D. |
294 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, | 291 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, |
295 ppapi::HostResource /* graphics_2d */, | 292 ppapi::HostResource /* graphics_2d */, |
296 int32_t /* pp_error */) | 293 int32_t /* pp_error */) |
297 | 294 |
298 // PPB_Graphics3D. | 295 // PPB_Graphics3D. |
299 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, | 296 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, |
300 ppapi::HostResource /* graphics_3d */, | 297 ppapi::HostResource /* graphics_3d */, |
301 int32_t /* pp_error */) | 298 int32_t /* pp_error */) |
302 | 299 |
303 // PPB_Instance. | |
304 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBInstance_MouseLockComplete, | |
305 PP_Instance /* instance */, | |
306 int32_t /* result */) | |
307 | |
308 // PPB_Surface3D. | 300 // PPB_Surface3D. |
309 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBSurface3D_SwapBuffersACK, | 301 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBSurface3D_SwapBuffersACK, |
310 ppapi::HostResource /* surface_3d */, | 302 ppapi::HostResource /* surface_3d */, |
311 int32_t /* pp_error */) | 303 int32_t /* pp_error */) |
312 | 304 |
313 // PPP_Class. | 305 // PPP_Class. |
314 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty, | 306 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty, |
315 int64 /* ppp_class */, | 307 int64 /* ppp_class */, |
316 int64 /* object */, | 308 int64 /* object */, |
317 ppapi::proxy::SerializedVar /* property */, | 309 ppapi::proxy::SerializedVar /* property */, |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 | 405 |
414 // PPB_URLLoader | 406 // PPB_URLLoader |
415 // (Messages from browser to plugin to notify it of changes in state.) | 407 // (Messages from browser to plugin to notify it of changes in state.) |
416 IPC_MESSAGE_ROUTED1( | 408 IPC_MESSAGE_ROUTED1( |
417 PpapiMsg_PPBURLLoader_UpdateProgress, | 409 PpapiMsg_PPBURLLoader_UpdateProgress, |
418 ppapi::proxy::PPBURLLoader_UpdateProgress_Params /* params */) | 410 ppapi::proxy::PPBURLLoader_UpdateProgress_Params /* params */) |
419 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack, | 411 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack, |
420 ppapi::HostResource /* loader */, | 412 ppapi::HostResource /* loader */, |
421 int32 /* result */, | 413 int32 /* result */, |
422 std::string /* data */) | 414 std::string /* data */) |
423 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBURLLoader_CallbackComplete, | |
424 ppapi::HostResource /* loader */, | |
425 int32_t /* result */) | |
426 | 415 |
427 // PPP_VideoCapture_Dev | 416 // PPP_VideoCapture_Dev |
428 IPC_MESSAGE_ROUTED3( | 417 IPC_MESSAGE_ROUTED3( |
429 PpapiMsg_PPPVideoCapture_OnDeviceInfo, | 418 PpapiMsg_PPPVideoCapture_OnDeviceInfo, |
430 ppapi::HostResource /* video_capture */, | 419 ppapi::HostResource /* video_capture */, |
431 PP_VideoCaptureDeviceInfo_Dev /* info */, | 420 PP_VideoCaptureDeviceInfo_Dev /* info */, |
432 std::vector<ppapi::proxy::PPPVideoCapture_Buffer> /* buffers */) | 421 std::vector<ppapi::proxy::PPPVideoCapture_Buffer> /* buffers */) |
433 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnStatus, | 422 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnStatus, |
434 ppapi::HostResource /* video_capture */, | 423 ppapi::HostResource /* video_capture */, |
435 uint32_t /* status */) | 424 uint32_t /* status */) |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 PP_Instance /* instance */, | 571 PP_Instance /* instance */, |
583 int /* mode */, | 572 int /* mode */, |
584 std::string /* accept_mime_types */, | 573 std::string /* accept_mime_types */, |
585 ppapi::HostResource /* result */) | 574 ppapi::HostResource /* result */) |
586 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileChooser_Show, | 575 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileChooser_Show, |
587 ppapi::HostResource /* file_chooser */, | 576 ppapi::HostResource /* file_chooser */, |
588 bool /* save_as */, | 577 bool /* save_as */, |
589 std::string /* suggested_file_name */, | 578 std::string /* suggested_file_name */, |
590 bool /* require_user_gesture */) | 579 bool /* require_user_gesture */) |
591 | 580 |
| 581 |
592 // PPB_FileRef. | 582 // PPB_FileRef. |
593 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create, | 583 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create, |
594 ppapi::HostResource /* file_system */, | 584 ppapi::HostResource /* file_system */, |
595 std::string /* path */, | 585 std::string /* path */, |
596 ppapi::PPB_FileRef_CreateInfo /* result */) | 586 ppapi::PPB_FileRef_CreateInfo /* result */) |
597 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent, | 587 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent, |
598 ppapi::HostResource /* file_ref */, | 588 ppapi::HostResource /* file_ref */, |
599 ppapi::PPB_FileRef_CreateInfo /* result */) | 589 ppapi::PPB_FileRef_CreateInfo /* result */) |
600 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory, | 590 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory, |
601 ppapi::HostResource /* file_ref */, | 591 ppapi::HostResource /* file_ref */, |
602 PP_Bool /* make_ancestors */, | 592 PP_Bool /* make_ancestors */, |
603 int /* callback_id */) | 593 uint32_t /* serialized_callback */) |
604 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileRef_Touch, | 594 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileRef_Touch, |
605 ppapi::HostResource /* file_ref */, | 595 ppapi::HostResource /* file_ref */, |
606 PP_Time /* last_access */, | 596 PP_Time /* last_access */, |
607 PP_Time /* last_modified */, | 597 PP_Time /* last_modified */, |
608 int /* callback_id */) | 598 uint32_t /* serialized_callback */) |
609 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Delete, | 599 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Delete, |
610 ppapi::HostResource /* file_ref */, | 600 ppapi::HostResource /* file_ref */, |
611 int /* callback_id */) | 601 uint32_t /* serialized_callback */) |
612 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename, | 602 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename, |
613 ppapi::HostResource /* file_ref */, | 603 ppapi::HostResource /* file_ref */, |
614 ppapi::HostResource /* new_file_ref */, | 604 ppapi::HostResource /* new_file_ref */, |
615 int /* callback_id */) | 605 uint32_t /* serialized_callback */) |
616 | 606 |
617 // PPB_FileSystem. | 607 // PPB_FileSystem. |
618 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create, | 608 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create, |
619 PP_Instance /* instance */, | 609 PP_Instance /* instance */, |
620 int /* type */, | 610 int /* type */, |
621 ppapi::HostResource /* result */) | 611 ppapi::HostResource /* result */) |
622 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open, | 612 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open, |
623 ppapi::HostResource /* result */, | 613 ppapi::HostResource /* result */, |
624 int64_t /* expected_size */) | 614 int64_t /* expected_size */) |
625 | 615 |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents, | 885 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents, |
896 PP_Instance /* instance */, | 886 PP_Instance /* instance */, |
897 bool /* is_filtering */, | 887 bool /* is_filtering */, |
898 uint32_t /* event_classes */) | 888 uint32_t /* event_classes */) |
899 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents, | 889 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents, |
900 PP_Instance /* instance */, | 890 PP_Instance /* instance */, |
901 uint32_t /* event_classes */) | 891 uint32_t /* event_classes */) |
902 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PostMessage, | 892 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PostMessage, |
903 PP_Instance /* instance */, | 893 PP_Instance /* instance */, |
904 ppapi::proxy::SerializedVar /* message */) | 894 ppapi::proxy::SerializedVar /* message */) |
905 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_LockMouse, | 895 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_LockMouse, |
906 PP_Instance /* instance */) | 896 PP_Instance /* instance */, |
| 897 uint32_t /* serialized_callback */) |
907 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_UnlockMouse, | 898 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_UnlockMouse, |
908 PP_Instance /* instance */) | 899 PP_Instance /* instance */) |
909 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_ResolveRelativeToDocument, | 900 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_ResolveRelativeToDocument, |
910 PP_Instance /* instance */, | 901 PP_Instance /* instance */, |
911 ppapi::proxy::SerializedVar /* relative */, | 902 ppapi::proxy::SerializedVar /* relative */, |
912 ppapi::proxy::SerializedVar /* result */) | 903 ppapi::proxy::SerializedVar /* result */) |
913 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanRequest, | 904 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanRequest, |
914 PP_Instance /* instance */, | 905 PP_Instance /* instance */, |
915 ppapi::proxy::SerializedVar /* relative */, | 906 ppapi::proxy::SerializedVar /* relative */, |
916 PP_Bool /* result */) | 907 PP_Bool /* result */) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
965 PP_Instance /* instance */, | 956 PP_Instance /* instance */, |
966 PP_Rect /* caret */, | 957 PP_Rect /* caret */, |
967 PP_Rect /* bounding_box */) | 958 PP_Rect /* bounding_box */) |
968 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBTextInput_CancelCompositionText, | 959 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBTextInput_CancelCompositionText, |
969 PP_Instance /* instance */) | 960 PP_Instance /* instance */) |
970 | 961 |
971 // PPB_URLLoader. | 962 // PPB_URLLoader. |
972 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create, | 963 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create, |
973 PP_Instance /* instance */, | 964 PP_Instance /* instance */, |
974 ppapi::HostResource /* result */) | 965 ppapi::HostResource /* result */) |
975 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_Open, | 966 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBURLLoader_Open, |
976 ppapi::HostResource /* loader */, | 967 ppapi::HostResource /* loader */, |
977 ppapi::PPB_URLRequestInfo_Data /* request_data */) | 968 ppapi::PPB_URLRequestInfo_Data /* request_data */, |
978 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FollowRedirect, | 969 uint32_t /* serialized_callback */) |
979 ppapi::HostResource /* loader */) | 970 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_FollowRedirect, |
| 971 ppapi::HostResource /* loader */, |
| 972 uint32_t /* serialized_callback */) |
980 IPC_SYNC_MESSAGE_ROUTED1_1( | 973 IPC_SYNC_MESSAGE_ROUTED1_1( |
981 PpapiHostMsg_PPBURLLoader_GetResponseInfo, | 974 PpapiHostMsg_PPBURLLoader_GetResponseInfo, |
982 ppapi::HostResource /* loader */, | 975 ppapi::HostResource /* loader */, |
983 ppapi::HostResource /* response_info_out */) | 976 ppapi::HostResource /* response_info_out */) |
984 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody, | 977 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody, |
985 ppapi::HostResource /* loader */, | 978 ppapi::HostResource /* loader */, |
986 int32_t /* bytes_to_read */) | 979 int32_t /* bytes_to_read */) |
987 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile, | 980 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile, |
988 ppapi::HostResource /* loader */) | 981 ppapi::HostResource /* loader */, |
| 982 uint32_t /* serialized_callback */) |
989 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close, | 983 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close, |
990 ppapi::HostResource /* loader */) | 984 ppapi::HostResource /* loader */) |
991 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_GrantUniversalAccess, | 985 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_GrantUniversalAccess, |
992 ppapi::HostResource /* loader */) | 986 ppapi::HostResource /* loader */) |
993 | 987 |
994 // PPB_URLResponseInfo. | 988 // PPB_URLResponseInfo. |
995 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBURLResponseInfo_GetProperty, | 989 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBURLResponseInfo_GetProperty, |
996 ppapi::HostResource /* response */, | 990 ppapi::HostResource /* response */, |
997 int32_t /* property */, | 991 int32_t /* property */, |
998 ppapi::proxy::SerializedVar /* result */) | 992 ppapi::proxy::SerializedVar /* result */) |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1107 std::vector<PP_PictureBuffer_Dev> /* picture buffers */) | 1101 std::vector<PP_PictureBuffer_Dev> /* picture buffers */) |
1108 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, | 1102 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, |
1109 ppapi::HostResource /* video_decoder */, | 1103 ppapi::HostResource /* video_decoder */, |
1110 int32_t /* picture buffer id */) | 1104 int32_t /* picture buffer id */) |
1111 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, | 1105 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, |
1112 ppapi::HostResource /* video_decoder */) | 1106 ppapi::HostResource /* video_decoder */) |
1113 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, | 1107 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, |
1114 ppapi::HostResource /* video_decoder */) | 1108 ppapi::HostResource /* video_decoder */) |
1115 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, | 1109 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, |
1116 ppapi::HostResource /* video_decoder */) | 1110 ppapi::HostResource /* video_decoder */) |
OLD | NEW |