Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 475 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct, | 475 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct, |
| 476 int64 /* ppp_class */, | 476 int64 /* ppp_class */, |
| 477 int64 /* object */, | 477 int64 /* object */, |
| 478 std::vector<ppapi::proxy::SerializedVar> /* args */, | 478 std::vector<ppapi::proxy::SerializedVar> /* args */, |
| 479 ppapi::proxy::SerializedVar /* out_exception */, | 479 ppapi::proxy::SerializedVar /* out_exception */, |
| 480 ppapi::proxy::SerializedVar /* result */) | 480 ppapi::proxy::SerializedVar /* result */) |
| 481 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate, | 481 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate, |
| 482 int64 /* ppp_class */, | 482 int64 /* ppp_class */, |
| 483 int64 /* object */) | 483 int64 /* object */) |
| 484 | 484 |
| 485 | |
| 486 // PPP_ContentDecryptor_Dev | |
| 487 // TODO(tomfinegan): There's a decent chance that I have the usage of | |
| 488 // ppapi::HostResource and PP_Resource reversed. Confirm/fix if necessary. | |
|
dmichael (off chromium)
2012/08/08 03:38:10
Yes, these being Host->Plugin messages, you should
Tom Finegan
2012/08/08 19:02:15
Done.
| |
| 489 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_GenerateKeyRequest, | |
| 490 PP_Instance /* instance */, | |
| 491 ppapi::proxy::SerializedVar /* key_system */, | |
| 492 ppapi::proxy::SerializedVar /* init_data */) | |
| 493 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_AddKey, | |
| 494 PP_Instance /* instance */, | |
| 495 ppapi::proxy::SerializedVar /* session_id */, | |
| 496 ppapi::proxy::SerializedVar /* key */) | |
| 497 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_CancelKeyRequest, | |
| 498 PP_Instance /* instance */, | |
| 499 ppapi::proxy::SerializedVar /* session_id */) | |
| 500 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt, | |
| 501 PP_Instance /* instance */, | |
| 502 PP_Resource /* encrypted_block */, | |
| 503 uint64_t /* request_id */) | |
| 504 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_DecryptAndDecode, | |
| 505 PP_Instance /* instance */, | |
| 506 PP_Resource /* encrypted_block */, | |
| 507 uint64_t /* request_id */) | |
| 508 | |
| 485 // PPB_Flash_DeviceID. | 509 // PPB_Flash_DeviceID. |
| 486 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBFlashDeviceID_GetReply, | 510 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBFlashDeviceID_GetReply, |
| 487 int32 /* routing_id */, | 511 int32 /* routing_id */, |
| 488 PP_Resource /* resource */, | 512 PP_Resource /* resource */, |
| 489 int32 /* result */, | 513 int32 /* result */, |
| 490 std::string /* value */) | 514 std::string /* value */) |
| 491 | 515 |
| 492 // PPP_Graphics3D_Dev. | 516 // PPP_Graphics3D_Dev. |
| 493 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost, | 517 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost, |
| 494 PP_Instance /* instance */) | 518 PP_Instance /* instance */) |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1021 PP_Rect /* caret */, | 1045 PP_Rect /* caret */, |
| 1022 PP_Rect /* bounding_box */) | 1046 PP_Rect /* bounding_box */) |
| 1023 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_CancelCompositionText, | 1047 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_CancelCompositionText, |
| 1024 PP_Instance /* instance */) | 1048 PP_Instance /* instance */) |
| 1025 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_UpdateSurroundingText, | 1049 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_UpdateSurroundingText, |
| 1026 PP_Instance /* instance */, | 1050 PP_Instance /* instance */, |
| 1027 std::string /* text */, | 1051 std::string /* text */, |
| 1028 uint32_t /* caret */, | 1052 uint32_t /* caret */, |
| 1029 uint32_t /* anchor */) | 1053 uint32_t /* anchor */) |
| 1030 | 1054 |
| 1055 // PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy. | |
| 1056 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_NeedKey, | |
| 1057 PP_Instance /* instance */, | |
| 1058 ppapi::proxy::SerializedVar /* key_system */, | |
| 1059 ppapi::proxy::SerializedVar /* session_id */, | |
| 1060 ppapi::proxy::SerializedVar /* init_data */) | |
| 1061 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_KeyAdded, | |
| 1062 PP_Instance /* instance */, | |
| 1063 ppapi::proxy::SerializedVar /* key_system */, | |
| 1064 ppapi::proxy::SerializedVar /* session_id */) | |
| 1065 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_KeyMessage, | |
| 1066 PP_Instance /* instance */, | |
| 1067 ppapi::proxy::SerializedVar /* key_system */, | |
| 1068 ppapi::proxy::SerializedVar /* session_id */, | |
| 1069 ppapi::HostResource /* message */, | |
|
dmichael (off chromium)
2012/08/08 03:38:10
And these PPB messages should use PP_Resource. It'
Tom Finegan
2012/08/08 19:02:15
Done, also added type comments to the vars.
| |
| 1070 ppapi::proxy::SerializedVar /* default_url */) | |
| 1071 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_KeyError, | |
| 1072 PP_Instance /* instance */, | |
| 1073 ppapi::proxy::SerializedVar /* key_system */, | |
| 1074 ppapi::proxy::SerializedVar /* session_id */, | |
| 1075 int32_t /* media_error */, | |
| 1076 int32_t /* system_error */) | |
| 1077 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock, | |
| 1078 PP_Instance /* instance */, | |
| 1079 ppapi::HostResource /* decrypted_block */, | |
| 1080 uint64_t /* request_id */) | |
| 1081 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverFrame, | |
| 1082 PP_Instance /* instance */, | |
| 1083 ppapi::HostResource /* decrypted_frame */, | |
| 1084 uint64_t /* request_id */) | |
| 1085 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverSamples, | |
| 1086 PP_Instance /* instance */, | |
| 1087 ppapi::HostResource /* decrypted_samples */, | |
| 1088 uint64_t /* request_id */) | |
| 1089 | |
| 1090 | |
| 1031 // PPB_URLLoader. | 1091 // PPB_URLLoader. |
| 1032 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create, | 1092 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create, |
| 1033 PP_Instance /* instance */, | 1093 PP_Instance /* instance */, |
| 1034 ppapi::HostResource /* result */) | 1094 ppapi::HostResource /* result */) |
| 1035 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_Open, | 1095 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_Open, |
| 1036 ppapi::HostResource /* loader */, | 1096 ppapi::HostResource /* loader */, |
| 1037 ppapi::PPB_URLRequestInfo_Data /* request_data */) | 1097 ppapi::PPB_URLRequestInfo_Data /* request_data */) |
| 1038 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FollowRedirect, | 1098 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FollowRedirect, |
| 1039 ppapi::HostResource /* loader */) | 1099 ppapi::HostResource /* loader */) |
| 1040 IPC_SYNC_MESSAGE_ROUTED1_1( | 1100 IPC_SYNC_MESSAGE_ROUTED1_1( |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1455 | 1515 |
| 1456 // File chooser. | 1516 // File chooser. |
| 1457 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) | 1517 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) |
| 1458 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, | 1518 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, |
| 1459 bool /* save_as */, | 1519 bool /* save_as */, |
| 1460 bool /* open_multiple */, | 1520 bool /* open_multiple */, |
| 1461 std::string /* suggested_file_name */, | 1521 std::string /* suggested_file_name */, |
| 1462 std::vector<std::string> /* accept_mime_types */) | 1522 std::vector<std::string> /* accept_mime_types */) |
| 1463 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, | 1523 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
| 1464 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) | 1524 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) |
| OLD | NEW |