[email protected] | d032f49 | 2009-09-29 00:33:46 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
[email protected] | 6edce23 | 2010-08-10 18:02:03 | [diff] [blame] | 5 | #include "base/process.h" |
[email protected] | d032f49 | 2009-09-29 00:33:46 | [diff] [blame] | 6 | #include "chrome/common/nacl_types.h" |
| 7 | #include "ipc/ipc_message_macros.h" |
| 8 | |
| 9 | //----------------------------------------------------------------------------- |
| 10 | // NaClProcess messages |
| 11 | // These are messages sent from the browser to the NaCl process. |
| 12 | IPC_BEGIN_MESSAGES(NaClProcess) |
| 13 | // Tells the NaCl process to start. |
[email protected] | c47ec40 | 2010-07-29 10:20:49 | [diff] [blame] | 14 | IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start, |
| 15 | std::vector<nacl::FileDescriptor> /* sockets */) |
[email protected] | d032f49 | 2009-09-29 00:33:46 | [diff] [blame] | 16 | |
[email protected] | 103607e | 2010-02-01 18:57:09 | [diff] [blame] | 17 | // Tells the NaCl broker to launch a NaCl loader process. |
| 18 | IPC_MESSAGE_CONTROL1(NaClProcessMsg_LaunchLoaderThroughBroker, |
| 19 | std::wstring /* channel ID for the loader */) |
| 20 | |
| 21 | // Notify the browser process that the loader was launched successfully. |
| 22 | IPC_MESSAGE_CONTROL2(NaClProcessMsg_LoaderLaunched, |
| 23 | std::wstring, /* channel ID for the loader */ |
| 24 | base::ProcessHandle /* loader process handle */) |
| 25 | |
[email protected] | 16e70ae | 2010-03-08 21:41:28 | [diff] [blame] | 26 | // Notify the broker that all loader processes have been terminated and it |
| 27 | // should shutdown. |
| 28 | IPC_MESSAGE_CONTROL0(NaClProcessMsg_StopBroker) |
[email protected] | d032f49 | 2009-09-29 00:33:46 | [diff] [blame] | 29 | IPC_END_MESSAGES(NaClProcess) |
| 30 | |