| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // a new instance of the Native Client process. The browser will launch | 54 // a new instance of the Native Client process. The browser will launch |
| 55 // the process and return an IPC channel handle. This handle will only | 55 // the process and return an IPC channel handle. This handle will only |
| 56 // be valid if the NaCl IPC proxy is enabled. | 56 // be valid if the NaCl IPC proxy is enabled. |
| 57 IPC_SYNC_MESSAGE_CONTROL1_2(NaClHostMsg_LaunchNaCl, | 57 IPC_SYNC_MESSAGE_CONTROL1_2(NaClHostMsg_LaunchNaCl, |
| 58 nacl::NaClLaunchParams /* launch_params */, | 58 nacl::NaClLaunchParams /* launch_params */, |
| 59 nacl::NaClLaunchResult /* launch_result */, | 59 nacl::NaClLaunchResult /* launch_result */, |
| 60 std::string /* error_message */) | 60 std::string /* error_message */) |
| 61 | 61 |
| 62 // A renderer sends this to the browser process when it wants to | 62 // A renderer sends this to the browser process when it wants to |
| 63 // open a file for from the Pnacl component directory. | 63 // open a file for from the Pnacl component directory. |
| 64 IPC_SYNC_MESSAGE_CONTROL1_1(NaClHostMsg_GetReadonlyPnaclFD, | 64 IPC_SYNC_MESSAGE_CONTROL2_3(NaClHostMsg_GetReadonlyPnaclFD, |
| 65 std::string /* name of requested PNaCl file */, | 65 std::string /* name of requested PNaCl file */, |
| 66 IPC::PlatformFileForTransit /* output file */) | 66 bool /* is_executable */, |
| 67 IPC::PlatformFileForTransit /* output file */, |
| 68 uint64 /* file_token_lo */, |
| 69 uint64 /* file_token_hi */) |
| 67 | 70 |
| 68 // A renderer sends this to the browser process when it wants to | 71 // A renderer sends this to the browser process when it wants to |
| 69 // create a temporary file. | 72 // create a temporary file. |
| 70 IPC_SYNC_MESSAGE_CONTROL0_1(NaClHostMsg_NaClCreateTemporaryFile, | 73 IPC_SYNC_MESSAGE_CONTROL0_1(NaClHostMsg_NaClCreateTemporaryFile, |
| 71 IPC::PlatformFileForTransit /* out file */) | 74 IPC::PlatformFileForTransit /* out file */) |
| 72 | 75 |
| 73 // A renderer sends this to the browser to request a file descriptor for | 76 // A renderer sends this to the browser to request a file descriptor for |
| 74 // a translated nexe. | 77 // a translated nexe. |
| 75 IPC_MESSAGE_CONTROL3(NaClHostMsg_NexeTempFileRequest, | 78 IPC_MESSAGE_CONTROL3(NaClHostMsg_NexeTempFileRequest, |
| 76 int /* render_view_id */, | 79 int /* render_view_id */, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // processors are online. | 112 // processors are online. |
| 110 IPC_SYNC_MESSAGE_CONTROL0_1(NaClHostMsg_NaClGetNumProcessors, | 113 IPC_SYNC_MESSAGE_CONTROL0_1(NaClHostMsg_NaClGetNumProcessors, |
| 111 int /* Number of processors */) | 114 int /* Number of processors */) |
| 112 | 115 |
| 113 // A renderer sends this to the browser process to determine if the | 116 // A renderer sends this to the browser process to determine if the |
| 114 // NaCl application started from the given NMF URL will be debugged. | 117 // NaCl application started from the given NMF URL will be debugged. |
| 115 // If not (filtered out by commandline flags), it sets should_debug to false. | 118 // If not (filtered out by commandline flags), it sets should_debug to false. |
| 116 IPC_SYNC_MESSAGE_CONTROL1_1(NaClHostMsg_NaClDebugEnabledForURL, | 119 IPC_SYNC_MESSAGE_CONTROL1_1(NaClHostMsg_NaClDebugEnabledForURL, |
| 117 GURL /* alleged URL of NMF file */, | 120 GURL /* alleged URL of NMF file */, |
| 118 bool /* should debug */) | 121 bool /* should debug */) |
| OLD | NEW |