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