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

Side by Side Diff: ppapi/api/private/ppb_nacl_private.idl

Issue 131413009: Prototype: Use Chromium IPC for plugin LOAD_MODULE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased, some FIXMEs cleaned up Created 6 years, 10 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 /* 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 5
6 /* This file contains NaCl private interfaces. This interface is not versioned 6 /* This file contains NaCl private interfaces. This interface is not versioned
7 * and is for internal Chrome use. It may change without notice. */ 7 * and is for internal Chrome use. It may change without notice. */
8 8
9 label Chrome { 9 label Chrome {
10 M25 = 1.0 10 M25 = 1.0
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 * The |uses_irt| flag indicates whether the IRT should be loaded in this 47 * The |uses_irt| flag indicates whether the IRT should be loaded in this
48 * NaCl process. This is true for ABI stable nexes. 48 * NaCl process. This is true for ABI stable nexes.
49 * The |enable_dyncode_syscalls| flag indicates whether or not the nexe 49 * The |enable_dyncode_syscalls| flag indicates whether or not the nexe
50 * will be able to use dynamic code system calls (e.g., mmap with PROT_EXEC). 50 * will be able to use dynamic code system calls (e.g., mmap with PROT_EXEC).
51 * The |enable_exception_handling| flag indicates whether or not the nexe 51 * The |enable_exception_handling| flag indicates whether or not the nexe
52 * will be able to use hardware exception handling. 52 * will be able to use hardware exception handling.
53 * The |enable_crash_throttling| flag indicates whether or not crashes of 53 * The |enable_crash_throttling| flag indicates whether or not crashes of
54 * the nexe contribute to crash throttling statisics and whether nexe starts 54 * the nexe contribute to crash throttling statisics and whether nexe starts
55 * are throttled by crash throttling. 55 * are throttled by crash throttling.
56 */ 56 */
57 PP_ExternalPluginResult LaunchSelLdr([in] PP_Instance instance, 57 void LaunchSelLdr(
58 [in] str_t alleged_url, 58 [in] PP_Instance instance,
59 [in] PP_Bool uses_irt, 59 [in] str_t alleged_url,
60 [in] PP_Bool uses_ppapi, 60 [in] PP_Bool uses_irt,
61 [in] PP_Bool enable_ppapi_dev, 61 [in] PP_Bool uses_ppapi,
62 [in] PP_Bool enable_dyncode_syscalls, 62 [in] PP_Bool enable_ppapi_dev,
63 [in] PP_Bool enable_exception_handling, 63 [in] PP_Bool enable_dyncode_syscalls,
64 [in] PP_Bool enable_crash_throttling, 64 [in] PP_Bool enable_exception_handling,
65 [out] mem_t imc_handle, 65 [in] PP_Bool enable_crash_throttling,
66 [out] PP_Var error_message); 66 [out] mem_t imc_handle,
67 [out] PP_Var error_message,
68 [in] PP_CompletionCallback connected_callback);
67 69
68 /* This function starts the IPC proxy so the nexe can communicate with the 70 /* This function starts the IPC proxy so the nexe can communicate with the
69 * browser. Returns PP_EXTERNAL_PLUGIN_OK on success, otherwise a result code 71 * browser. Returns PP_EXTERNAL_PLUGIN_OK on success, otherwise a result code
70 * indicating the failure. PP_EXTERNAL_PLUGIN_FAILED is returned if 72 * indicating the failure. PP_EXTERNAL_PLUGIN_FAILED is returned if
71 * LaunchSelLdr wasn't called with the instance. 73 * LaunchSelLdr wasn't called with the instance.
72 * PP_EXTERNAL_PLUGIN_ERROR_MODULE is returned if the module can't be 74 * PP_EXTERNAL_PLUGIN_ERROR_MODULE is returned if the module can't be
73 * initialized. PP_EXTERNAL_PLUGIN_ERROR_INSTANCE is returned if the instance 75 * initialized. PP_EXTERNAL_PLUGIN_ERROR_INSTANCE is returned if the instance
74 * can't be initialized. 76 * can't be initialized.
75 */ 77 */
76 PP_ExternalPluginResult StartPpapiProxy(PP_Instance instance); 78 PP_ExternalPluginResult StartPpapiProxy(PP_Instance instance);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 [in] PP_Bool length_is_computable, 171 [in] PP_Bool length_is_computable,
170 [in] uint64_t loaded_bytes, 172 [in] uint64_t loaded_bytes,
171 [in] uint64_t total_bytes); 173 [in] uint64_t total_bytes);
172 174
173 /* Sets a read-only property on the <embed> DOM element that corresponds to 175 /* Sets a read-only property on the <embed> DOM element that corresponds to
174 * the given instance. 176 * the given instance.
175 */ 177 */
176 void SetReadOnlyProperty([in] PP_Instance instance, 178 void SetReadOnlyProperty([in] PP_Instance instance,
177 [in] PP_Var key, 179 [in] PP_Var key,
178 [in] PP_Var value); 180 [in] PP_Var value);
181
182 /* Loads the module specified by |nexe_handle|. */
183 PP_Bool LoadModule([in] PP_Instance instance,
184 [in] PP_FileHandle nexe_handle,
185 [out] uint32_t nacl_error_code);
186
187 PP_Bool StartModule([in] PP_Instance instance);
179 }; 188 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698