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

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)
19 IPC_STRUCT_TRAITS_END() 20 IPC_STRUCT_TRAITS_END()
(...skipping 43 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 64 // Used by the NaCl process to query a database in the browser. The database
64 // contains the signatures of previously validated code chunks. 65 // contains the signatures of previously validated code chunks.
65 IPC_SYNC_MESSAGE_CONTROL1_1(NaClProcessMsg_QueryKnownToValidate, 66 IPC_SYNC_MESSAGE_CONTROL1_1(NaClProcessMsg_QueryKnownToValidate,
66 std::string, /* A validation signature */ 67 std::string, /* A validation signature */
67 bool /* Can validation be skipped? */) 68 bool /* Can validation be skipped? */)
68 69
69 // Used by the NaCl process to add a validation signature to the validation 70 // Used by the NaCl process to add a validation signature to the validation
70 // database in the browser. 71 // database in the browser.
71 IPC_MESSAGE_CONTROL1(NaClProcessMsg_SetKnownToValidate, 72 IPC_MESSAGE_CONTROL1(NaClProcessMsg_SetKnownToValidate,
72 std::string /* A validation signature */) 73 std::string /* A validation signature */)
74
75 // Notify the browser process that the server side of the PPAPI channel was
76 // created successfully.
77 IPC_MESSAGE_CONTROL1(NaClProcessHostMsg_PpapiChannelCreated,
78 IPC::ChannelHandle /* channel_handle */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698