Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: ppapi/native_client/src/trusted/plugin/service_runtime.h

Issue 484783002: Pepper: Report NaCl exit status over Chromium IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698