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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // This function must only be called once. | 183 // This function must only be called once. |
184 void StartNexe(); | 184 void StartNexe(); |
185 | 185 |
186 // Starts the application channel to the nexe. | 186 // Starts the application channel to the nexe. |
187 SrpcClient* SetupAppChannel(); | 187 SrpcClient* SetupAppChannel(); |
188 | 188 |
189 bool RemoteLog(int severity, const nacl::string& msg); | 189 bool RemoteLog(int severity, const nacl::string& msg); |
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 | |
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 | |
196 // exit syscall). | |
197 int exit_status(); // const, but grabs mutex etc. | |
198 void set_exit_status(int exit_status); | |
199 | |
200 bool main_service_runtime() const { return main_service_runtime_; } | 193 bool main_service_runtime() const { return main_service_runtime_; } |
201 | 194 |
202 private: | 195 private: |
203 NACL_DISALLOW_COPY_AND_ASSIGN(ServiceRuntime); | 196 NACL_DISALLOW_COPY_AND_ASSIGN(ServiceRuntime); |
204 bool StartNexeInternal(); | 197 bool StartNexeInternal(); |
205 | 198 |
206 bool SetupCommandChannel(); | 199 bool SetupCommandChannel(); |
207 bool InitReverseService(); | 200 bool InitReverseService(); |
208 bool StartModule(); | 201 bool StartModule(); |
209 void ReapLogs(); | 202 void ReapLogs(); |
(...skipping 18 matching lines...) Expand all Loading... |
228 bool start_sel_ldr_done_; | 221 bool start_sel_ldr_done_; |
229 bool start_nexe_done_; | 222 bool start_nexe_done_; |
230 bool nexe_started_ok_; | 223 bool nexe_started_ok_; |
231 | 224 |
232 NaClHandle bootstrap_channel_; | 225 NaClHandle bootstrap_channel_; |
233 }; | 226 }; |
234 | 227 |
235 } // namespace plugin | 228 } // namespace plugin |
236 | 229 |
237 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SERVICE_RUNTIME_H_ | 230 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SERVICE_RUNTIME_H_ |
OLD | NEW |