OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/process.h" | 8 #include "base/process/process.h" |
9 #include "components/nacl/common/nacl_types.h" | 9 #include "components/nacl/common/nacl_types.h" |
10 #include "ipc/ipc_channel_handle.h" | 10 #include "ipc/ipc_channel_handle.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 bool /* Can validation be skipped? */) | 84 bool /* Can validation be skipped? */) |
85 | 85 |
86 // Used by the NaCl process to add a validation signature to the validation | 86 // Used by the NaCl process to add a validation signature to the validation |
87 // database in the browser. | 87 // database in the browser. |
88 IPC_MESSAGE_CONTROL1(NaClProcessMsg_SetKnownToValidate, | 88 IPC_MESSAGE_CONTROL1(NaClProcessMsg_SetKnownToValidate, |
89 std::string /* A validation signature */) | 89 std::string /* A validation signature */) |
90 | 90 |
91 // Used by the NaCl process to acquire trusted information about a file directly | 91 // Used by the NaCl process to acquire trusted information about a file directly |
92 // from the browser, including the file's path as well as a fresh version of the | 92 // from the browser, including the file's path as well as a fresh version of the |
93 // file handle. | 93 // file handle. |
94 // TODO(teravest): Remove the synchronous version of this message once initial | |
95 // nexe validation caching stops using this. | |
94 IPC_SYNC_MESSAGE_CONTROL2_2(NaClProcessMsg_ResolveFileToken, | 96 IPC_SYNC_MESSAGE_CONTROL2_2(NaClProcessMsg_ResolveFileToken, |
95 uint64, /* file_token_lo */ | 97 uint64, /* file_token_lo */ |
96 uint64, /* file_token_hi */ | 98 uint64, /* file_token_hi */ |
97 IPC::PlatformFileForTransit, /* fd */ | 99 IPC::PlatformFileForTransit, /* fd */ |
98 base::FilePath /* Path opened to get fd */) | 100 base::FilePath /* Path opened to get fd */) |
99 | 101 |
102 IPC_MESSAGE_CONTROL2(NaClProcessMsg_ResolveFileTokenAsync, | |
103 uint64, /* file_token_lo */ | |
104 uint64 /* file_token_hi */) | |
105 IPC_MESSAGE_CONTROL4(NaClProcessMsg_ResolveFileTokenAsyncReply, | |
Mark Seaborn
2014/09/09 04:42:29
Shouldn't this be "NaClProcessHostMsg_" since it's
teravest
2014/09/09 16:49:06
I don't understand the difference between NaClProc
| |
106 uint64, /* file_token_lo */ | |
107 uint64, /* file_token_hi */ | |
108 IPC::PlatformFileForTransit, /* fd */ | |
109 base::FilePath /* Path opened to get fd */) | |
110 | |
100 // Notify the browser process that the server side of the PPAPI channel was | 111 // Notify the browser process that the server side of the PPAPI channel was |
101 // created successfully. | 112 // created successfully. |
102 IPC_MESSAGE_CONTROL4(NaClProcessHostMsg_PpapiChannelsCreated, | 113 IPC_MESSAGE_CONTROL4(NaClProcessHostMsg_PpapiChannelsCreated, |
103 IPC::ChannelHandle, /* browser_channel_handle */ | 114 IPC::ChannelHandle, /* browser_channel_handle */ |
104 IPC::ChannelHandle, /* ppapi_renderer_channel_handle */ | 115 IPC::ChannelHandle, /* ppapi_renderer_channel_handle */ |
105 IPC::ChannelHandle, /* trusted_renderer_channel_handle */ | 116 IPC::ChannelHandle, /* trusted_renderer_channel_handle */ |
106 IPC::ChannelHandle /* manifest_service_channel_handle */) | 117 IPC::ChannelHandle /* manifest_service_channel_handle */) |
OLD | NEW |