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