OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "base/process.h" |
5 #include "chrome/common/nacl_types.h" | 6 #include "chrome/common/nacl_types.h" |
6 #include "ipc/ipc_message_macros.h" | 7 #include "ipc/ipc_message_macros.h" |
7 | 8 |
8 //----------------------------------------------------------------------------- | 9 //----------------------------------------------------------------------------- |
9 // NaClProcess messages | 10 // NaClProcess messages |
10 // These are messages sent from the browser to the NaCl process. | 11 // These are messages sent from the browser to the NaCl process. |
11 IPC_BEGIN_MESSAGES(NaClProcess) | 12 IPC_BEGIN_MESSAGES(NaClProcess) |
12 // Tells the NaCl process to start. | 13 // Tells the NaCl process to start. |
13 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start, | 14 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start, |
14 std::vector<nacl::FileDescriptor> /* sockets */) | 15 std::vector<nacl::FileDescriptor> /* sockets */) |
15 | 16 |
16 // Tells the NaCl broker to launch a NaCl loader process. | 17 // Tells the NaCl broker to launch a NaCl loader process. |
17 IPC_MESSAGE_CONTROL1(NaClProcessMsg_LaunchLoaderThroughBroker, | 18 IPC_MESSAGE_CONTROL1(NaClProcessMsg_LaunchLoaderThroughBroker, |
18 std::wstring /* channel ID for the loader */) | 19 std::wstring /* channel ID for the loader */) |
19 | 20 |
20 // Notify the browser process that the loader was launched successfully. | 21 // Notify the browser process that the loader was launched successfully. |
21 IPC_MESSAGE_CONTROL2(NaClProcessMsg_LoaderLaunched, | 22 IPC_MESSAGE_CONTROL2(NaClProcessMsg_LoaderLaunched, |
22 std::wstring, /* channel ID for the loader */ | 23 std::wstring, /* channel ID for the loader */ |
23 base::ProcessHandle /* loader process handle */) | 24 base::ProcessHandle /* loader process handle */) |
24 | 25 |
25 // Notify the broker that all loader processes have been terminated and it | 26 // Notify the broker that all loader processes have been terminated and it |
26 // should shutdown. | 27 // should shutdown. |
27 IPC_MESSAGE_CONTROL0(NaClProcessMsg_StopBroker) | 28 IPC_MESSAGE_CONTROL0(NaClProcessMsg_StopBroker) |
28 IPC_END_MESSAGES(NaClProcess) | 29 IPC_END_MESSAGES(NaClProcess) |
29 | 30 |
OLD | NEW |