| OLD | NEW |
| 1 // -*- c++ -*- | 1 // -*- c++ -*- |
| 2 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 // The portable representation of an instance and root scriptable object. | 6 // The portable representation of an instance and root scriptable object. |
| 7 // The PPAPI version of the plugin instantiates a subclass of this class. | 7 // The PPAPI version of the plugin instantiates a subclass of this class. |
| 8 | 8 |
| 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ | 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ |
| 10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ | 10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 void SignalStartSelLdrDone(int32_t pp_error, | 159 void SignalStartSelLdrDone(int32_t pp_error, |
| 160 bool* started, | 160 bool* started, |
| 161 ServiceRuntime* service_runtime); | 161 ServiceRuntime* service_runtime); |
| 162 | 162 |
| 163 // Signals that the nexe is started. | 163 // Signals that the nexe is started. |
| 164 // This is invoked on the main thread. | 164 // This is invoked on the main thread. |
| 165 void SignalNexeStarted(int32_t pp_error, | 165 void SignalNexeStarted(int32_t pp_error, |
| 166 bool* started, | 166 bool* started, |
| 167 ServiceRuntime* service_runtime); | 167 ServiceRuntime* service_runtime); |
| 168 | 168 |
| 169 // This is invoked on the main thread. |
| 169 void LoadNexeAndStart(int32_t pp_error, | 170 void LoadNexeAndStart(int32_t pp_error, |
| 171 ServiceRuntime* service_runtime, |
| 170 PP_NaClFileInfo file_info, | 172 PP_NaClFileInfo file_info, |
| 171 ServiceRuntime* service_runtime); | 173 const pp::CompletionCallback& callback); |
| 172 | 174 |
| 173 // Callback used when getting the URL for the .nexe file. If the URL loading | 175 // Callback used when getting the URL for the .nexe file. If the URL loading |
| 174 // is successful, the file descriptor is opened and can be passed to sel_ldr | 176 // is successful, the file descriptor is opened and can be passed to sel_ldr |
| 175 // with the sandbox on. | 177 // with the sandbox on. |
| 176 void NexeFileDidOpen(int32_t pp_error); | 178 void NexeFileDidOpen(int32_t pp_error); |
| 177 void NexeFileDidOpenContinuation(int32_t pp_error); | 179 void NexeFileDidOpenContinuation(int32_t pp_error); |
| 178 | 180 |
| 179 // Callback used when the reverse channel closes. This is an | 181 // Callback used when the reverse channel closes. This is an |
| 180 // asynchronous event that might turn into a JavaScript error or | 182 // asynchronous event that might turn into a JavaScript error or |
| 181 // crash event -- this is controlled by the two state variables | 183 // crash event -- this is controlled by the two state variables |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 228 |
| 227 PP_NaClFileInfo nexe_file_info_; | 229 PP_NaClFileInfo nexe_file_info_; |
| 228 | 230 |
| 229 const PPB_NaCl_Private* nacl_interface_; | 231 const PPB_NaCl_Private* nacl_interface_; |
| 230 pp::UMAPrivate uma_interface_; | 232 pp::UMAPrivate uma_interface_; |
| 231 }; | 233 }; |
| 232 | 234 |
| 233 } // namespace plugin | 235 } // namespace plugin |
| 234 | 236 |
| 235 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ | 237 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ |
| OLD | NEW |