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