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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 const Manifest* manifest, | 209 const Manifest* manifest, |
210 bool should_report_uma, | 210 bool should_report_uma, |
211 pp::CompletionCallback init_done_cb, | 211 pp::CompletionCallback init_done_cb, |
212 pp::CompletionCallback crash_cb); | 212 pp::CompletionCallback crash_cb); |
213 // The destructor terminates the sel_ldr process. | 213 // The destructor terminates the sel_ldr process. |
214 ~ServiceRuntime(); | 214 ~ServiceRuntime(); |
215 | 215 |
216 // Spawn a sel_ldr instance and establish an SrpcClient to it. The nexe | 216 // Spawn a sel_ldr instance and establish an SrpcClient to it. The nexe |
217 // to be started is passed through |nacl_file_desc|. On success, returns | 217 // to be started is passed through |nacl_file_desc|. On success, returns |
218 // true. On failure, returns false and |error_string| is set to something | 218 // true. On failure, returns false and |error_string| is set to something |
219 // describing the error. | 219 // describing the error. |ipc_channel_handle| returns information for |
| 220 // connecting the Chrome IPC-based proxy. |
220 bool Start(nacl::DescWrapper* nacl_file_desc, | 221 bool Start(nacl::DescWrapper* nacl_file_desc, |
221 ErrorInfo* error_info, | 222 ErrorInfo* error_info, |
222 const nacl::string& url); | 223 const nacl::string& url, |
| 224 void** ipc_channel_handle); |
223 | 225 |
224 // Starts the application channel to the nexe. | 226 // Starts the application channel to the nexe. |
225 SrpcClient* SetupAppChannel(); | 227 SrpcClient* SetupAppChannel(); |
226 | 228 |
227 bool Log(int severity, nacl::string msg); | 229 bool Log(int severity, nacl::string msg); |
228 Plugin* plugin() const { return plugin_; } | 230 Plugin* plugin() const { return plugin_; } |
229 void Shutdown(); | 231 void Shutdown(); |
230 | 232 |
231 // exit_status is -1 when invalid; when we set it, we will ensure | 233 // exit_status is -1 when invalid; when we set it, we will ensure |
232 // that it is non-negative (the portion of the exit status from the | 234 // that it is non-negative (the portion of the exit status from the |
(...skipping 20 matching lines...) Expand all Loading... |
253 | 255 |
254 PluginReverseInterface* rev_interface_; | 256 PluginReverseInterface* rev_interface_; |
255 | 257 |
256 NaClMutex mu_; | 258 NaClMutex mu_; |
257 int exit_status_; | 259 int exit_status_; |
258 }; | 260 }; |
259 | 261 |
260 } // namespace plugin | 262 } // namespace plugin |
261 | 263 |
262 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SERVICE_RUNTIME_H_ | 264 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SERVICE_RUNTIME_H_ |
OLD | NEW |