| 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 COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ | 5 #ifndef COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ |
| 6 #define COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ | 6 #define COMPONENTS_NACL_BROWSER_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.h" | 10 #include "base/files/file.h" |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 // we have a connection. | 165 // we have a connection. |
| 166 // | 166 // |
| 167 // Returns false on failure. | 167 // Returns false on failure. |
| 168 bool StartWithLaunchedProcess(); | 168 bool StartWithLaunchedProcess(); |
| 169 | 169 |
| 170 // Message handlers for validation caching. | 170 // Message handlers for validation caching. |
| 171 void OnQueryKnownToValidate(const std::string& signature, bool* result); | 171 void OnQueryKnownToValidate(const std::string& signature, bool* result); |
| 172 void OnSetKnownToValidate(const std::string& signature); | 172 void OnSetKnownToValidate(const std::string& signature); |
| 173 void OnResolveFileToken(uint64 file_token_lo, uint64 file_token_hi, | 173 void OnResolveFileToken(uint64 file_token_lo, uint64 file_token_hi, |
| 174 IPC::Message* reply_msg); | 174 IPC::Message* reply_msg); |
| 175 void OnResolveFileTokenAsync(uint64 file_token_lo, uint64 file_token_hi); |
| 175 void FileResolved(const base::FilePath& file_path, | 176 void FileResolved(const base::FilePath& file_path, |
| 176 IPC::Message* reply_msg, | 177 IPC::Message* reply_msg, |
| 177 base::File file); | 178 base::File file); |
| 178 | 179 void FileResolvedAsync(uint64_t file_token_lo, |
| 180 uint64_t file_token_hi, |
| 181 const base::FilePath& file_path, |
| 182 base::File file); |
| 179 #if defined(OS_WIN) | 183 #if defined(OS_WIN) |
| 180 // Message handler for Windows hardware exception handling. | 184 // Message handler for Windows hardware exception handling. |
| 181 void OnAttachDebugExceptionHandler(const std::string& info, | 185 void OnAttachDebugExceptionHandler(const std::string& info, |
| 182 IPC::Message* reply_msg); | 186 IPC::Message* reply_msg); |
| 183 bool AttachDebugExceptionHandler(const std::string& info, | 187 bool AttachDebugExceptionHandler(const std::string& info, |
| 184 IPC::Message* reply_msg); | 188 IPC::Message* reply_msg); |
| 185 #endif | 189 #endif |
| 186 | 190 |
| 187 // Called when the PPAPI IPC channels to the browser/renderer have been | 191 // Called when the PPAPI IPC channels to the browser/renderer have been |
| 188 // created. | 192 // created. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 // Shared memory provided to the plugin and renderer for | 256 // Shared memory provided to the plugin and renderer for |
| 253 // reporting crash information. | 257 // reporting crash information. |
| 254 base::SharedMemory crash_info_shmem_; | 258 base::SharedMemory crash_info_shmem_; |
| 255 | 259 |
| 256 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); | 260 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); |
| 257 }; | 261 }; |
| 258 | 262 |
| 259 } // namespace nacl | 263 } // namespace nacl |
| 260 | 264 |
| 261 #endif // COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ | 265 #endif // COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ |
| OLD | NEW |