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

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

Issue 249183004: Implement open_resource in non-SFI mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 int32_t opt_level; 139 int32_t opt_level;
140 }; 140 };
141 141
142 /* ManifestService to support irt_open_resource() function. 142 /* ManifestService to support irt_open_resource() function.
143 * All functions of the service should have PP_Bool return value. It represents 143 * All functions of the service should have PP_Bool return value. It represents
144 * whether the service is still alive or not. Trivially Quit() should always 144 * whether the service is still alive or not. Trivially Quit() should always
145 * return false. However, other functions also can return false. 145 * return false. However, other functions also can return false.
146 * Once false is called, as the service has been destructed, all functions 146 * Once false is called, as the service has been destructed, all functions
147 * should never be called afterwords. 147 * should never be called afterwords.
148 */ 148 */
149 interface PP_ManifestService { 149 interface PPP_ManifestService {
150 /* Called when ManifestService should be destructed. */ 150 /* Called when ManifestService should be destructed. */
151 PP_Bool Quit([inout] mem_t user_data); 151 PP_Bool Quit([inout] mem_t user_data);
152 152
153 /* Called when PPAPI initialization in the NaCl plugin is finished. */ 153 /* Called when PPAPI initialization in the NaCl plugin is finished. */
154 PP_Bool StartupInitializationComplete([inout] mem_t user_data); 154 PP_Bool StartupInitializationComplete([inout] mem_t user_data);
155
156 /* Called when irt_open_resource() is invoked in the NaCl plugin.
157 * Upon completion, callback will be invoked. If the OpenResource() returns
158 * PP_FALSE, callback will never be called. */
159 PP_Bool OpenResource([inout] mem_t user_data,
160 [in] str_t entry_key,
161 [out] PP_FileHandle file,
162 [in] PP_CompletionCallback callback);
dmichael (off chromium) 2014/04/25 21:06:58 We never use completion callbacks in this directio
hidehiko 2014/04/28 08:44:27 Done.
155 }; 163 };
156 164
157 /* PPB_NaCl_Private */ 165 /* PPB_NaCl_Private */
158 interface PPB_NaCl_Private { 166 interface PPB_NaCl_Private {
159 /* Launches NaCl's sel_ldr process. Returns PP_EXTERNAL_PLUGIN_OK on success 167 /* Launches NaCl's sel_ldr process. Returns PP_EXTERNAL_PLUGIN_OK on success
160 * and writes a NaClHandle to imc_handle. Returns PP_EXTERNAL_PLUGIN_FAILED on 168 * and writes a NaClHandle to imc_handle. Returns PP_EXTERNAL_PLUGIN_FAILED on
161 * failure. The |enable_ppapi_dev| parameter controls whether GetInterface 169 * failure. The |enable_ppapi_dev| parameter controls whether GetInterface
162 * returns 'Dev' interfaces to the NaCl plugin. The |uses_ppapi| flag 170 * returns 'Dev' interfaces to the NaCl plugin. The |uses_ppapi| flag
163 * indicates that the nexe run by sel_ldr will use the PPAPI APIs. 171 * indicates that the nexe run by sel_ldr will use the PPAPI APIs.
164 * This implies that LaunchSelLdr is run from the main thread. If a nexe 172 * This implies that LaunchSelLdr is run from the main thread. If a nexe
(...skipping 12 matching lines...) Expand all
177 */ 185 */
178 void LaunchSelLdr([in] PP_Instance instance, 186 void LaunchSelLdr([in] PP_Instance instance,
179 [in] str_t alleged_url, 187 [in] str_t alleged_url,
180 [in] PP_Bool uses_irt, 188 [in] PP_Bool uses_irt,
181 [in] PP_Bool uses_ppapi, 189 [in] PP_Bool uses_ppapi,
182 [in] PP_Bool uses_nonsfi_mode, 190 [in] PP_Bool uses_nonsfi_mode,
183 [in] PP_Bool enable_ppapi_dev, 191 [in] PP_Bool enable_ppapi_dev,
184 [in] PP_Bool enable_dyncode_syscalls, 192 [in] PP_Bool enable_dyncode_syscalls,
185 [in] PP_Bool enable_exception_handling, 193 [in] PP_Bool enable_exception_handling,
186 [in] PP_Bool enable_crash_throttling, 194 [in] PP_Bool enable_crash_throttling,
187 [in] PP_ManifestService manifest_service_interface, 195 [in] PPP_ManifestService manifest_service_interface,
188 [inout] mem_t manifest_service_user_data, 196 [inout] mem_t manifest_service_user_data,
189 [out] mem_t imc_handle, 197 [out] mem_t imc_handle,
190 [out] PP_Var error_message, 198 [out] PP_Var error_message,
191 [in] PP_CompletionCallback callback); 199 [in] PP_CompletionCallback callback);
192 200
193 /* This function starts the IPC proxy so the nexe can communicate with the 201 /* This function starts the IPC proxy so the nexe can communicate with the
194 * browser. 202 * browser.
195 */ 203 */
196 PP_Bool StartPpapiProxy(PP_Instance instance); 204 PP_Bool StartPpapiProxy(PP_Instance instance);
197 205
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 387
380 PP_Var ParseDataURL([in] str_t data_url); 388 PP_Var ParseDataURL([in] str_t data_url);
381 389
382 /* Processes the NaCl manifest once it's been retrieved. 390 /* Processes the NaCl manifest once it's been retrieved.
383 * TODO(teravest): Move the rest of the supporting logic out of the trusted 391 * TODO(teravest): Move the rest of the supporting logic out of the trusted
384 * plugin. 392 * plugin.
385 */ 393 */
386 void ProcessNaClManifest([in] PP_Instance instance, 394 void ProcessNaClManifest([in] PP_Instance instance,
387 [in] str_t program_url); 395 [in] str_t program_url);
388 }; 396 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698