OLD | NEW |
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 #ifndef CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ |
6 #define CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 // Does post-process-launching tasks for starting the NaCl process once | 140 // Does post-process-launching tasks for starting the NaCl process once |
141 // we have a connection. | 141 // we have a connection. |
142 // | 142 // |
143 // Returns false on failure. | 143 // Returns false on failure. |
144 bool StartWithLaunchedProcess(); | 144 bool StartWithLaunchedProcess(); |
145 | 145 |
146 // Message handlers for validation caching. | 146 // Message handlers for validation caching. |
147 void OnQueryKnownToValidate(const std::string& signature, bool* result); | 147 void OnQueryKnownToValidate(const std::string& signature, bool* result); |
148 void OnSetKnownToValidate(const std::string& signature); | 148 void OnSetKnownToValidate(const std::string& signature); |
| 149 void OnResolveFileToken(uint64 file_token_lo, uint64 file_token_hi, |
| 150 IPC::Message* reply_msg); |
| 151 void FileResolved(base::PlatformFile* file, const base::FilePath& file_path, |
| 152 IPC::Message* reply_msg); |
| 153 |
149 #if defined(OS_WIN) | 154 #if defined(OS_WIN) |
150 // Message handler for Windows hardware exception handling. | 155 // Message handler for Windows hardware exception handling. |
151 void OnAttachDebugExceptionHandler(const std::string& info, | 156 void OnAttachDebugExceptionHandler(const std::string& info, |
152 IPC::Message* reply_msg); | 157 IPC::Message* reply_msg); |
153 bool AttachDebugExceptionHandler(const std::string& info, | 158 bool AttachDebugExceptionHandler(const std::string& info, |
154 IPC::Message* reply_msg); | 159 IPC::Message* reply_msg); |
155 #endif | 160 #endif |
156 | 161 |
157 // Called when a PPAPI IPC channel has been created. | 162 // Called when a PPAPI IPC channel has been created. |
158 void OnPpapiChannelCreated(const IPC::ChannelHandle& channel_handle); | 163 void OnPpapiChannelCreated(const IPC::ChannelHandle& channel_handle); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 PluginListener ipc_plugin_listener_; | 220 PluginListener ipc_plugin_listener_; |
216 // Browser host for plugin process. | 221 // Browser host for plugin process. |
217 scoped_ptr<content::BrowserPpapiHost> ppapi_host_; | 222 scoped_ptr<content::BrowserPpapiHost> ppapi_host_; |
218 | 223 |
219 int render_view_id_; | 224 int render_view_id_; |
220 | 225 |
221 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); | 226 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); |
222 }; | 227 }; |
223 | 228 |
224 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ | 229 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ |
OLD | NEW |