| OLD | NEW | 
| (Empty) |  | 
 |   1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 
 |   2 // Use of this source code is governed by a BSD-style license that can be | 
 |   3 // found in the LICENSE file. | 
 |   4  | 
 |   5 // Multiply-included file, no traditional include guard. | 
 |   6  | 
 |   7 #include <string> | 
 |   8  | 
 |   9 #include "base/basictypes.h" | 
 |  10 #include "base/process.h" | 
 |  11 #include "build/build_config.h" | 
 |  12 #include "chrome/common/common_param_traits.h" | 
 |  13 #include "chrome/common/nacl_types.h" | 
 |  14 #include "content/public/common/common_param_traits.h" | 
 |  15 #include "googleurl/src/gurl.h" | 
 |  16 #include "ipc/ipc_channel_handle.h" | 
 |  17 #include "ipc/ipc_message_macros.h" | 
 |  18 #include "ipc/ipc_platform_file.h" | 
 |  19  | 
 |  20 #define IPC_MESSAGE_START NaClHostMsgStart | 
 |  21  | 
 |  22 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClLaunchParams) | 
 |  23   IPC_STRUCT_TRAITS_MEMBER(manifest_url) | 
 |  24   IPC_STRUCT_TRAITS_MEMBER(render_view_id) | 
 |  25   IPC_STRUCT_TRAITS_MEMBER(permission_bits) | 
 |  26   IPC_STRUCT_TRAITS_MEMBER(uses_irt) | 
 |  27   IPC_STRUCT_TRAITS_MEMBER(enable_dyncode_syscalls) | 
 |  28   IPC_STRUCT_TRAITS_MEMBER(enable_exception_handling) | 
 |  29 IPC_STRUCT_TRAITS_END() | 
 |  30  | 
 |  31 // A renderer sends this to the browser process when it wants to start | 
 |  32 // a new instance of the Native Client process. The browser will launch | 
 |  33 // the process and return an IPC channel handle. This handle will only | 
 |  34 // be valid if the NaCl IPC proxy is enabled. | 
 |  35 IPC_SYNC_MESSAGE_CONTROL1_4(NaClHostMsg_LaunchNaCl, | 
 |  36                             nacl::NaClLaunchParams /* launch_params */, | 
 |  37                             nacl::FileDescriptor /* imc channel handle */, | 
 |  38                             IPC::ChannelHandle /* ipc_channel_handle */, | 
 |  39                             base::ProcessId /* plugin_pid */, | 
 |  40                             int /* plugin_child_id */) | 
 |  41  | 
 |  42 // A renderer sends this to the browser process when it wants to | 
 |  43 // open a file for from the Pnacl component directory. | 
 |  44 IPC_SYNC_MESSAGE_CONTROL1_1(NaClHostMsg_GetReadonlyPnaclFD, | 
 |  45                             std::string /* name of requested PNaCl file */, | 
 |  46                             IPC::PlatformFileForTransit /* output file */) | 
 |  47  | 
 |  48 // A renderer sends this to the browser process when it wants to | 
 |  49 // create a temporary file. | 
 |  50 IPC_SYNC_MESSAGE_CONTROL0_1(NaClHostMsg_NaClCreateTemporaryFile, | 
 |  51                             IPC::PlatformFileForTransit /* out file */) | 
 |  52  | 
 |  53 // A renderer sends this to the browser process to display infobar | 
 |  54 IPC_MESSAGE_CONTROL2(NaClHostMsg_NaClErrorStatus, | 
 |  55                      int /* render_view_id */, | 
 |  56                      int /* Error ID */) | 
 |  57  | 
 |  58 // A renderer sends this to the browser process when it wants to | 
 |  59 // open a NaCl executable file from an installed application directory. | 
 |  60 IPC_SYNC_MESSAGE_CONTROL2_3(NaClHostMsg_OpenNaClExecutable, | 
 |  61                             int /* render_view_id */, | 
 |  62                             GURL /* URL of NaCl executable file */, | 
 |  63                             IPC::PlatformFileForTransit /* output file */, | 
 |  64                             uint64 /* file_token_lo */, | 
 |  65                             uint64 /* file_token_hi */) | 
| OLD | NEW |