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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 671 PP_Bool /* result */) | 671 PP_Bool /* result */) |
| 672 | 672 |
| 673 // PPB_FileChooser. | 673 // PPB_FileChooser. |
| 674 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFileChooser_Create, | 674 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFileChooser_Create, |
| 675 PP_Instance /* instance */, | 675 PP_Instance /* instance */, |
| 676 int /* mode */, | 676 int /* mode */, |
| 677 std::string /* accept_mime_types */, | 677 std::string /* accept_mime_types */, |
| 678 ppapi::HostResource /* result */) | 678 ppapi::HostResource /* result */) |
| 679 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileChooser_Show, | 679 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileChooser_Show, |
| 680 ppapi::HostResource /* file_chooser */, | 680 ppapi::HostResource /* file_chooser */, |
| 681 bool /* save_as */, | 681 PP_Bool /* save_as */, |
|
viettrungluu
2012/03/26 16:55:19
Is there any particular advantage to this change?
brettw
2012/03/26 17:08:06
This saves conversion code. This way to only conve
| |
| 682 std::string /* suggested_file_name */, | 682 ppapi::proxy::SerializedVar /* suggested_file_name */, |
|
viettrungluu
2012/03/26 16:55:19
And this one?
brettw
2012/03/26 17:08:06
Ditto, otherwise we need to convert from a PP_Var
| |
| 683 bool /* require_user_gesture */) | 683 bool /* require_user_gesture */) |
| 684 | 684 |
| 685 // PPB_FileIO. | 685 // PPB_FileIO. |
| 686 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileIO_Create, | 686 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileIO_Create, |
| 687 PP_Instance /* instance */, | 687 PP_Instance /* instance */, |
| 688 ppapi::HostResource /* result */) | 688 ppapi::HostResource /* result */) |
| 689 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Open, | 689 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Open, |
| 690 ppapi::HostResource /* host_resource */, | 690 ppapi::HostResource /* host_resource */, |
| 691 ppapi::HostResource /* file_ref_resource */, | 691 ppapi::HostResource /* file_ref_resource */, |
| 692 int32_t /* open_flags */) | 692 int32_t /* open_flags */) |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1297 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPServerSocket_Accept, | 1297 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPServerSocket_Accept, |
| 1298 int32 /* tcp_client_socket_routing_id */, | 1298 int32 /* tcp_client_socket_routing_id */, |
| 1299 uint32 /* server_socket_id */) | 1299 uint32 /* server_socket_id */) |
| 1300 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy, | 1300 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy, |
| 1301 uint32 /* socket_id */) | 1301 uint32 /* socket_id */) |
| 1302 | 1302 |
| 1303 // PPB_Font. | 1303 // PPB_Font. |
| 1304 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, | 1304 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, |
| 1305 std::string /* result */) | 1305 std::string /* result */) |
| 1306 #endif // !defined(OS_NACL) | 1306 #endif // !defined(OS_NACL) |
| OLD | NEW |