| Index: chrome/common/nacl_messages.h
|
| ===================================================================
|
| --- chrome/common/nacl_messages.h (revision 77320)
|
| +++ chrome/common/nacl_messages.h (working copy)
|
| @@ -4,10 +4,30 @@
|
|
|
| // Defines messages between the browser and NaCl process.
|
|
|
| -#ifndef CHROME_COMMON_NACL_MESSAGES_H_
|
| -#define CHROME_COMMON_NACL_MESSAGES_H_
|
| -#pragma once
|
| +// Multiply-included file, no tratidional include guard.
|
| +#include "base/process.h"
|
| +#include "chrome/common/nacl_types.h"
|
| +#include "ipc/ipc_message_macros.h"
|
|
|
| -#include "chrome/common/nacl_messages_internal.h"
|
| +#define IPC_MESSAGE_START NaClMsgStart
|
|
|
| -#endif // CHROME_COMMON_NACL_MESSAGES_H_
|
| +//-----------------------------------------------------------------------------
|
| +// NaClProcess messages
|
| +// These are messages sent from the browser to the NaCl process.
|
| +// Tells the NaCl process to start.
|
| +IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start,
|
| + std::vector<nacl::FileDescriptor> /* sockets */)
|
| +
|
| +// Tells the NaCl broker to launch a NaCl loader process.
|
| +IPC_MESSAGE_CONTROL1(NaClProcessMsg_LaunchLoaderThroughBroker,
|
| + std::wstring /* channel ID for the loader */)
|
| +
|
| +// Notify the browser process that the loader was launched successfully.
|
| +IPC_MESSAGE_CONTROL2(NaClProcessMsg_LoaderLaunched,
|
| + std::wstring, /* channel ID for the loader */
|
| + base::ProcessHandle /* loader process handle */)
|
| +
|
| +// Notify the broker that all loader processes have been terminated and it
|
| +// should shutdown.
|
| +IPC_MESSAGE_CONTROL0(NaClProcessMsg_StopBroker)
|
| +
|
|
|