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

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

Issue 10635014: Revert 143483 - Add an IPC channel between the NaCl loader process and the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. |ipc_channel_handle| returns information for 219 // describing the error.
220 // connecting the Chrome IPC-based proxy.
221 bool Start(nacl::DescWrapper* nacl_file_desc, 220 bool Start(nacl::DescWrapper* nacl_file_desc,
222 ErrorInfo* error_info, 221 ErrorInfo* error_info,
223 const nacl::string& url, 222 const nacl::string& url);
224 void** ipc_channel_handle);
225 223
226 // Starts the application channel to the nexe. 224 // Starts the application channel to the nexe.
227 SrpcClient* SetupAppChannel(); 225 SrpcClient* SetupAppChannel();
228 226
229 bool Log(int severity, nacl::string msg); 227 bool Log(int severity, nacl::string msg);
230 Plugin* plugin() const { return plugin_; } 228 Plugin* plugin() const { return plugin_; }
231 void Shutdown(); 229 void Shutdown();
232 230
233 // exit_status is -1 when invalid; when we set it, we will ensure 231 // exit_status is -1 when invalid; when we set it, we will ensure
234 // that it is non-negative (the portion of the exit status from the 232 // that it is non-negative (the portion of the exit status from the
(...skipping 20 matching lines...) Expand all
255 253
256 PluginReverseInterface* rev_interface_; 254 PluginReverseInterface* rev_interface_;
257 255
258 NaClMutex mu_; 256 NaClMutex mu_;
259 int exit_status_; 257 int exit_status_;
260 }; 258 };
261 259
262 } // namespace plugin 260 } // namespace plugin
263 261
264 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SERVICE_RUNTIME_H_ 262 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SERVICE_RUNTIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698