| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 file, no traditional include guard. | 5 // Multiply-included file, no traditional include guard. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/process/process.h" | 10 #include "base/process/process.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // A renderer sends this to the browser process when it wants to start | 48 // A renderer sends this to the browser process when it wants to start |
| 49 // a new instance of the Native Client process. The browser will launch | 49 // a new instance of the Native Client process. The browser will launch |
| 50 // the process and return an IPC channel handle. This handle will only | 50 // the process and return an IPC channel handle. This handle will only |
| 51 // be valid if the NaCl IPC proxy is enabled. | 51 // be valid if the NaCl IPC proxy is enabled. |
| 52 IPC_SYNC_MESSAGE_CONTROL1_2(NaClHostMsg_LaunchNaCl, | 52 IPC_SYNC_MESSAGE_CONTROL1_2(NaClHostMsg_LaunchNaCl, |
| 53 nacl::NaClLaunchParams /* launch_params */, | 53 nacl::NaClLaunchParams /* launch_params */, |
| 54 nacl::NaClLaunchResult /* launch_result */, | 54 nacl::NaClLaunchResult /* launch_result */, |
| 55 std::string /* error_message */) | 55 std::string /* error_message */) |
| 56 | 56 |
| 57 // A renderer sends this to the browser process when it wants to | 57 // A renderer sends this to the browser process when it wants to |
| 58 // ensure that PNaCl is installed. | |
| 59 IPC_MESSAGE_CONTROL1(NaClHostMsg_EnsurePnaclInstalled, | |
| 60 int /* pp_instance */) | |
| 61 | |
| 62 // The browser replies to the renderer's request to ensure that | |
| 63 // PNaCl is installed. | |
| 64 IPC_MESSAGE_CONTROL2(NaClViewMsg_EnsurePnaclInstalledReply, | |
| 65 int /* pp_instance */, | |
| 66 bool /* success */) | |
| 67 | |
| 68 // A renderer sends this to the browser process when it wants to | |
| 69 // open a file for from the Pnacl component directory. | 58 // open a file for from the Pnacl component directory. |
| 70 IPC_SYNC_MESSAGE_CONTROL1_1(NaClHostMsg_GetReadonlyPnaclFD, | 59 IPC_SYNC_MESSAGE_CONTROL1_1(NaClHostMsg_GetReadonlyPnaclFD, |
| 71 std::string /* name of requested PNaCl file */, | 60 std::string /* name of requested PNaCl file */, |
| 72 IPC::PlatformFileForTransit /* output file */) | 61 IPC::PlatformFileForTransit /* output file */) |
| 73 | 62 |
| 74 // A renderer sends this to the browser process when it wants to | 63 // A renderer sends this to the browser process when it wants to |
| 75 // create a temporary file. | 64 // create a temporary file. |
| 76 IPC_SYNC_MESSAGE_CONTROL0_1(NaClHostMsg_NaClCreateTemporaryFile, | 65 IPC_SYNC_MESSAGE_CONTROL0_1(NaClHostMsg_NaClCreateTemporaryFile, |
| 77 IPC::PlatformFileForTransit /* out file */) | 66 IPC::PlatformFileForTransit /* out file */) |
| 78 | 67 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 103 int /* Error ID */) | 92 int /* Error ID */) |
| 104 | 93 |
| 105 // A renderer sends this to the browser process when it wants to | 94 // A renderer sends this to the browser process when it wants to |
| 106 // open a NaCl executable file from an installed application directory. | 95 // open a NaCl executable file from an installed application directory. |
| 107 IPC_SYNC_MESSAGE_CONTROL2_3(NaClHostMsg_OpenNaClExecutable, | 96 IPC_SYNC_MESSAGE_CONTROL2_3(NaClHostMsg_OpenNaClExecutable, |
| 108 int /* render_view_id */, | 97 int /* render_view_id */, |
| 109 GURL /* URL of NaCl executable file */, | 98 GURL /* URL of NaCl executable file */, |
| 110 IPC::PlatformFileForTransit /* output file */, | 99 IPC::PlatformFileForTransit /* output file */, |
| 111 uint64 /* file_token_lo */, | 100 uint64 /* file_token_lo */, |
| 112 uint64 /* file_token_hi */) | 101 uint64 /* file_token_hi */) |
| OLD | NEW |