| 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_ppapi, |
| 241 bool enable_ppapi_dev, | 242 bool enable_ppapi_dev, |
| 242 pp::CompletionCallback crash_cb); | 243 pp::CompletionCallback crash_cb); |
| 243 | 244 |
| 244 // Starts the application channel to the nexe. | 245 // Starts the application channel to the nexe. |
| 245 SrpcClient* SetupAppChannel(); | 246 SrpcClient* SetupAppChannel(); |
| 246 | 247 |
| 247 bool Log(int severity, const nacl::string& msg); | 248 bool Log(int severity, const nacl::string& msg); |
| 248 Plugin* plugin() const { return plugin_; } | 249 Plugin* plugin() const { return plugin_; } |
| 249 void Shutdown(); | 250 void Shutdown(); |
| 250 | 251 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 275 | 276 |
| 276 PluginReverseInterface* rev_interface_; | 277 PluginReverseInterface* rev_interface_; |
| 277 | 278 |
| 278 NaClMutex mu_; | 279 NaClMutex mu_; |
| 279 int exit_status_; | 280 int exit_status_; |
| 280 }; | 281 }; |
| 281 | 282 |
| 282 } // namespace plugin | 283 } // namespace plugin |
| 283 | 284 |
| 284 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SERVICE_RUNTIME_H_ | 285 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SERVICE_RUNTIME_H_ |
| OLD | NEW |