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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 Plugin* plugin() const { return plugin_; } | 190 Plugin* plugin() const { return plugin_; } |
191 void Shutdown(); | 191 void Shutdown(); |
192 | 192 |
193 // exit_status is -1 when invalid; when we set it, we will ensure | 193 // exit_status is -1 when invalid; when we set it, we will ensure |
194 // that it is non-negative (the portion of the exit status from the | 194 // that it is non-negative (the portion of the exit status from the |
195 // nexe that is transferred is the low 8 bits of the argument to the | 195 // nexe that is transferred is the low 8 bits of the argument to the |
196 // exit syscall). | 196 // exit syscall). |
197 int exit_status(); // const, but grabs mutex etc. | 197 int exit_status(); // const, but grabs mutex etc. |
198 void set_exit_status(int exit_status); | 198 void set_exit_status(int exit_status); |
199 | 199 |
200 nacl::string GetCrashLogOutput(); | |
201 | |
202 bool main_service_runtime() const { return main_service_runtime_; } | 200 bool main_service_runtime() const { return main_service_runtime_; } |
203 | 201 |
204 private: | 202 private: |
205 NACL_DISALLOW_COPY_AND_ASSIGN(ServiceRuntime); | 203 NACL_DISALLOW_COPY_AND_ASSIGN(ServiceRuntime); |
206 bool StartNexeInternal(); | 204 bool StartNexeInternal(); |
207 | 205 |
208 bool SetupCommandChannel(); | 206 bool SetupCommandChannel(); |
209 bool InitReverseService(); | 207 bool InitReverseService(); |
210 bool StartModule(); | 208 bool StartModule(); |
211 void ReapLogs(); | 209 void ReapLogs(); |
(...skipping 18 matching lines...) Expand all Loading... |
230 bool start_sel_ldr_done_; | 228 bool start_sel_ldr_done_; |
231 bool start_nexe_done_; | 229 bool start_nexe_done_; |
232 bool nexe_started_ok_; | 230 bool nexe_started_ok_; |
233 | 231 |
234 NaClHandle bootstrap_channel_; | 232 NaClHandle bootstrap_channel_; |
235 }; | 233 }; |
236 | 234 |
237 } // namespace plugin | 235 } // namespace plugin |
238 | 236 |
239 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SERVICE_RUNTIME_H_ | 237 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SERVICE_RUNTIME_H_ |
OLD | NEW |