blob: e302118de2136f29c181e0b910219a78d24e7ab5 [file] [log] [blame]
[email protected]d032f492009-09-29 00:33:461// 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]6edce232010-08-10 18:02:035#include "base/process.h"
[email protected]d032f492009-09-29 00:33:466#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.
12IPC_BEGIN_MESSAGES(NaClProcess)
13 // Tells the NaCl process to start.
[email protected]c47ec402010-07-29 10:20:4914 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start,
15 std::vector<nacl::FileDescriptor> /* sockets */)
[email protected]d032f492009-09-29 00:33:4616
[email protected]103607e2010-02-01 18:57:0917 // 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]16e70ae2010-03-08 21:41:2826 // Notify the broker that all loader processes have been terminated and it
27 // should shutdown.
28 IPC_MESSAGE_CONTROL0(NaClProcessMsg_StopBroker)
[email protected]d032f492009-09-29 00:33:4629IPC_END_MESSAGES(NaClProcess)
30