OLD | NEW |
1 /* -*- c++ -*- */ | 1 /* -*- c++ -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 * Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 // A class containing information regarding a socket connection to a | 8 // A class containing information regarding a socket connection to a |
9 // service runtime instance. | 9 // service runtime instance. |
10 | 10 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 // The destructor terminates the sel_ldr process. | 231 // The destructor terminates the sel_ldr process. |
232 ~ServiceRuntime(); | 232 ~ServiceRuntime(); |
233 | 233 |
234 // Spawn a sel_ldr instance and establish an SrpcClient to it. The nexe | 234 // Spawn a sel_ldr instance and establish an SrpcClient to it. The nexe |
235 // to be started is passed through |nacl_file_desc|. On success, returns | 235 // to be started is passed through |nacl_file_desc|. On success, returns |
236 // true. On failure, returns false and |error_string| is set to something | 236 // true. On failure, returns false and |error_string| is set to something |
237 // describing the error. | 237 // describing the error. |
238 bool Start(nacl::DescWrapper* nacl_file_desc, | 238 bool Start(nacl::DescWrapper* nacl_file_desc, |
239 ErrorInfo* error_info, | 239 ErrorInfo* error_info, |
240 const nacl::string& url, | 240 const nacl::string& url, |
| 241 bool uses_irt, |
241 bool uses_ppapi, | 242 bool uses_ppapi, |
242 bool enable_ppapi_dev, | 243 bool enable_ppapi_dev, |
243 pp::CompletionCallback crash_cb); | 244 pp::CompletionCallback crash_cb); |
244 | 245 |
245 // Starts the application channel to the nexe. | 246 // Starts the application channel to the nexe. |
246 SrpcClient* SetupAppChannel(); | 247 SrpcClient* SetupAppChannel(); |
247 | 248 |
248 bool Log(int severity, const nacl::string& msg); | 249 bool Log(int severity, const nacl::string& msg); |
249 Plugin* plugin() const { return plugin_; } | 250 Plugin* plugin() const { return plugin_; } |
250 void Shutdown(); | 251 void Shutdown(); |
(...skipping 25 matching lines...) Expand all Loading... |
276 | 277 |
277 PluginReverseInterface* rev_interface_; | 278 PluginReverseInterface* rev_interface_; |
278 | 279 |
279 NaClMutex mu_; | 280 NaClMutex mu_; |
280 int exit_status_; | 281 int exit_status_; |
281 }; | 282 }; |
282 | 283 |
283 } // namespace plugin | 284 } // namespace plugin |
284 | 285 |
285 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SERVICE_RUNTIME_H_ | 286 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SERVICE_RUNTIME_H_ |
OLD | NEW |