Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(488)

Side by Side Diff: chrome/common/nacl_messages_internal.h

Issue 5526008: Simplify the magic required to create IPC message headers a bit. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/nacl_messages.cc ('k') | chrome/common/plugin_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 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 #include "base/process.h" 5 #include "base/process.h"
6 #include "chrome/common/nacl_types.h" 6 #include "chrome/common/nacl_types.h"
7 #include "ipc/ipc_message_macros.h" 7 #include "ipc/ipc_message_macros.h"
8 8
9 #define IPC_MESSAGE_START NaClMsgStart
10
9 //----------------------------------------------------------------------------- 11 //-----------------------------------------------------------------------------
10 // NaClProcess messages 12 // NaClProcess messages
11 // These are messages sent from the browser to the NaCl process. 13 // These are messages sent from the browser to the NaCl process.
12 IPC_BEGIN_MESSAGES(NaClProcess) 14 // Tells the NaCl process to start.
13 // Tells the NaCl process to start. 15 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start,
14 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start, 16 std::vector<nacl::FileDescriptor> /* sockets */)
15 std::vector<nacl::FileDescriptor> /* sockets */)
16 17
17 // Tells the NaCl broker to launch a NaCl loader process. 18 // Tells the NaCl broker to launch a NaCl loader process.
18 IPC_MESSAGE_CONTROL1(NaClProcessMsg_LaunchLoaderThroughBroker, 19 IPC_MESSAGE_CONTROL1(NaClProcessMsg_LaunchLoaderThroughBroker,
19 std::wstring /* channel ID for the loader */) 20 std::wstring /* channel ID for the loader */)
20 21
21 // Notify the browser process that the loader was launched successfully. 22 // Notify the browser process that the loader was launched successfully.
22 IPC_MESSAGE_CONTROL2(NaClProcessMsg_LoaderLaunched, 23 IPC_MESSAGE_CONTROL2(NaClProcessMsg_LoaderLaunched,
23 std::wstring, /* channel ID for the loader */ 24 std::wstring, /* channel ID for the loader */
24 base::ProcessHandle /* loader process handle */) 25 base::ProcessHandle /* loader process handle */)
25 26
26 // Notify the broker that all loader processes have been terminated and it 27 // Notify the broker that all loader processes have been terminated and it
27 // should shutdown. 28 // should shutdown.
28 IPC_MESSAGE_CONTROL0(NaClProcessMsg_StopBroker) 29 IPC_MESSAGE_CONTROL0(NaClProcessMsg_StopBroker)
29 IPC_END_MESSAGES(NaClProcess)
30
OLDNEW
« no previous file with comments | « chrome/common/nacl_messages.cc ('k') | chrome/common/plugin_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698