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