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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 ServiceRuntime* service_runtime, | 153 ServiceRuntime* service_runtime, |
154 const SelLdrStartParams& params, | 154 const SelLdrStartParams& params, |
155 pp::CompletionCallback callback); | 155 pp::CompletionCallback callback); |
156 | 156 |
157 // Signals that StartSelLdr has finished. | 157 // Signals that StartSelLdr has finished. |
158 // This is invoked on the main thread. | 158 // This is invoked on the main thread. |
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. | |
164 // This is invoked on the main thread. | |
165 void SignalNexeStarted(int32_t pp_error, | |
166 bool* started, | |
167 ServiceRuntime* service_runtime); | |
168 | |
169 // This is invoked on the main thread. | 163 // This is invoked on the main thread. |
170 void LoadNexeAndStart(int32_t pp_error, | 164 void LoadNexeAndStart(int32_t pp_error, |
171 ServiceRuntime* service_runtime, | 165 ServiceRuntime* service_runtime, |
172 PP_NaClFileInfo file_info, | 166 PP_NaClFileInfo file_info); |
173 const pp::CompletionCallback& callback); | |
174 | 167 |
175 // Callback used when getting the URL for the .nexe file. If the URL loading | 168 // Callback used when getting the URL for the .nexe file. If the URL loading |
176 // is successful, the file descriptor is opened and can be passed to sel_ldr | 169 // is successful, the file descriptor is opened and can be passed to sel_ldr |
177 // with the sandbox on. | 170 // with the sandbox on. |
178 void NexeFileDidOpen(int32_t pp_error); | 171 void NexeFileDidOpen(int32_t pp_error); |
179 void NexeFileDidOpenContinuation(int32_t pp_error); | 172 void NexeFileDidOpenContinuation(int32_t pp_error); |
180 | 173 |
181 // Callback used when the reverse channel closes. This is an | 174 // Callback used when the reverse channel closes. This is an |
182 // asynchronous event that might turn into a JavaScript error or | 175 // asynchronous event that might turn into a JavaScript error or |
183 // crash event -- this is controlled by the two state variables | 176 // crash event -- this is controlled by the two state variables |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 221 |
229 PP_NaClFileInfo nexe_file_info_; | 222 PP_NaClFileInfo nexe_file_info_; |
230 | 223 |
231 const PPB_NaCl_Private* nacl_interface_; | 224 const PPB_NaCl_Private* nacl_interface_; |
232 pp::UMAPrivate uma_interface_; | 225 pp::UMAPrivate uma_interface_; |
233 }; | 226 }; |
234 | 227 |
235 } // namespace plugin | 228 } // namespace plugin |
236 | 229 |
237 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ | 230 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ |
OLD | NEW |