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