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