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

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

Powered by Google App Engine
This is Rietveld 408576698