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

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

Issue 10214007: Add an IPC channel between the NaCl loader process and the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Multiply-included message file, no traditional include guard. 7 // Multiply-included message file, no traditional include guard.
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "chrome/common/nacl_types.h" 9 #include "chrome/common/nacl_types.h"
10 #include "ipc/ipc_channel_handle.h"
10 #include "ipc/ipc_message_macros.h" 11 #include "ipc/ipc_message_macros.h"
11 12
12 #define IPC_MESSAGE_START NaClMsgStart 13 #define IPC_MESSAGE_START NaClMsgStart
13 14
14 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams) 15 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams)
15 IPC_STRUCT_TRAITS_MEMBER(handles) 16 IPC_STRUCT_TRAITS_MEMBER(handles)
16 IPC_STRUCT_TRAITS_MEMBER(validation_cache_key) 17 IPC_STRUCT_TRAITS_MEMBER(validation_cache_key)
17 IPC_STRUCT_TRAITS_MEMBER(version) 18 IPC_STRUCT_TRAITS_MEMBER(version)
18 IPC_STRUCT_TRAITS_MEMBER(enable_exception_handling) 19 IPC_STRUCT_TRAITS_MEMBER(enable_exception_handling)
20 IPC_STRUCT_TRAITS_MEMBER(enable_ipc_proxy)
19 IPC_STRUCT_TRAITS_END() 21 IPC_STRUCT_TRAITS_END()
20 22
21 //----------------------------------------------------------------------------- 23 //-----------------------------------------------------------------------------
22 // NaClProcess messages 24 // NaClProcess messages
23 // These are messages sent between the browser and the NaCl process. 25 // These are messages sent between the browser and the NaCl process.
24 // Tells the NaCl process to start. 26 // Tells the NaCl process to start.
25 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start, 27 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start,
26 nacl::NaClStartParams /* params */) 28 nacl::NaClStartParams /* params */)
27 29
28 #if defined(OS_WIN) 30 #if defined(OS_WIN)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Used by the NaCl process to query a database in the browser. The database 65 // Used by the NaCl process to query a database in the browser. The database
64 // contains the signatures of previously validated code chunks. 66 // contains the signatures of previously validated code chunks.
65 IPC_SYNC_MESSAGE_CONTROL1_1(NaClProcessMsg_QueryKnownToValidate, 67 IPC_SYNC_MESSAGE_CONTROL1_1(NaClProcessMsg_QueryKnownToValidate,
66 std::string, /* A validation signature */ 68 std::string, /* A validation signature */
67 bool /* Can validation be skipped? */) 69 bool /* Can validation be skipped? */)
68 70
69 // Used by the NaCl process to add a validation signature to the validation 71 // Used by the NaCl process to add a validation signature to the validation
70 // database in the browser. 72 // database in the browser.
71 IPC_MESSAGE_CONTROL1(NaClProcessMsg_SetKnownToValidate, 73 IPC_MESSAGE_CONTROL1(NaClProcessMsg_SetKnownToValidate,
72 std::string /* A validation signature */) 74 std::string /* A validation signature */)
75
76 // Notify the browser process that the server side of the PPAPI channel was
77 // created successfully.
78 IPC_MESSAGE_CONTROL1(NaClProcessHostMsg_PpapiChannelCreated,
79 IPC::ChannelHandle /* channel_handle */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698