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