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

Side by Side Diff: components/nacl/renderer/ppb_nacl_private.h

Issue 2562113003: NaCl plugin: Make ServiceRuntime::Shutdown() kill the NaCl loader (Closed)
Patch Set: Created 4 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ 5 #ifndef COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_
6 #define COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ 6 #define COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/process/process_handle.h" 10 #include "base/process/process_handle.h"
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 uint64_t loaded_bytes, 274 uint64_t loaded_bytes,
275 uint64_t total_bytes); 275 uint64_t total_bytes);
276 /* Report an error that occured while attempting to load a nexe. */ 276 /* Report an error that occured while attempting to load a nexe. */
277 static void ReportLoadError(PP_Instance instance, 277 static void ReportLoadError(PP_Instance instance,
278 PP_NaClError error, 278 PP_NaClError error,
279 const char* error_message); 279 const char* error_message);
280 /* Performs internal setup when an instance is created. */ 280 /* Performs internal setup when an instance is created. */
281 static void InstanceCreated(PP_Instance instance); 281 static void InstanceCreated(PP_Instance instance);
282 /* Performs internal cleanup when an instance is destroyed. */ 282 /* Performs internal cleanup when an instance is destroyed. */
283 static void InstanceDestroyed(PP_Instance instance); 283 static void InstanceDestroyed(PP_Instance instance);
284 /* Terminates the NaCl loader process associated with the instance */
285 static void TerminateNaClLoader(PP_Instance instance);
284 /* Returns the kind of SFI sandbox implemented by NaCl on this 286 /* Returns the kind of SFI sandbox implemented by NaCl on this
285 * platform. 287 * platform.
286 */ 288 */
287 static const char* GetSandboxArch(void); 289 static const char* GetSandboxArch(void);
288 /* Initializes internal state for a NaCl plugin. */ 290 /* Initializes internal state for a NaCl plugin. */
289 static void InitializePlugin(PP_Instance instance, 291 static void InitializePlugin(PP_Instance instance,
290 uint32_t argc, 292 uint32_t argc,
291 const char* argn[], 293 const char* argn[],
292 const char* argv[]); 294 const char* argv[]);
293 /* Requests the NaCl manifest specified in the plugin arguments. */ 295 /* Requests the NaCl manifest specified in the plugin arguments. */
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 const char* pexe_url, 349 const char* pexe_url,
348 int32_t opt_level, 350 int32_t opt_level,
349 PP_Bool use_subzero, 351 PP_Bool use_subzero,
350 const struct PPP_PexeStreamHandler_1_0* stream_handler, 352 const struct PPP_PexeStreamHandler_1_0* stream_handler,
351 void* stream_handler_user_data); 353 void* stream_handler_user_data);
352 }; 354 };
353 355
354 } // namespace nacl 356 } // namespace nacl
355 357
356 #endif /* COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ */ 358 #endif /* COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ */
OLDNEW
« no previous file with comments | « components/nacl/renderer/plugin/service_runtime.cc ('k') | components/nacl/renderer/ppb_nacl_private_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698