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

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

Issue 224803002: Enable mmap and identity-based validation caching on pnacl-{llc,ld}.nexe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix token handover for main nexe 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
« no previous file with comments | « components/nacl/renderer/ppb_nacl_private_impl.cc ('k') | ppapi/c/private/ppb_nacl_private.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). 196 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8).
197 */ 197 */
198 int32_t BrokerDuplicateHandle([in] PP_FileHandle source_handle, 198 int32_t BrokerDuplicateHandle([in] PP_FileHandle source_handle,
199 [in] uint32_t process_id, 199 [in] uint32_t process_id,
200 [out] PP_FileHandle target_handle, 200 [out] PP_FileHandle target_handle,
201 [in] uint32_t desired_access, 201 [in] uint32_t desired_access,
202 [in] uint32_t options); 202 [in] uint32_t options);
203 203
204 /* Returns a read-only file descriptor of a file rooted in the Pnacl 204 /* Returns a read-only file descriptor of a file rooted in the Pnacl
205 * component directory, or an invalid handle on failure. 205 * component directory, or an invalid handle on failure.
206 * The metadata |file_token_*| are 0 on failure.
206 */ 207 */
207 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename); 208 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename,
209 [in] PP_Bool is_executable,
210 [out] uint64_t file_token_lo,
211 [out] uint64_t file_token_hi);
208 212
209 /* This creates a temporary file that will be deleted by the time 213 /* This creates a temporary file that will be deleted by the time
210 * the last handle is closed (or earlier on POSIX systems), and 214 * the last handle is closed (or earlier on POSIX systems), and
211 * returns a posix handle to that temporary file. 215 * returns a posix handle to that temporary file.
212 */ 216 */
213 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); 217 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance);
214 218
215 /* Return the number of processors in the system as reported by the OS */ 219 /* Return the number of processors in the system as reported by the OS */
216 int32_t GetNumberOfProcessors(); 220 int32_t GetNumberOfProcessors();
217 221
(...skipping 29 matching lines...) Expand all
247 * not guaranteed to store the nexe even if |success| is true; if there is 251 * not guaranteed to store the nexe even if |success| is true; if there is
248 * an error on the browser side, or the file is too big for the cache, or 252 * an error on the browser side, or the file is too big for the cache, or
249 * the browser is in incognito mode, no notification will be delivered to 253 * the browser is in incognito mode, no notification will be delivered to
250 * the plugin.) 254 * the plugin.)
251 */ 255 */
252 void ReportTranslationFinished([in] PP_Instance instance, 256 void ReportTranslationFinished([in] PP_Instance instance,
253 [in] PP_Bool success); 257 [in] PP_Bool success);
254 258
255 /* Opens a NaCl executable file in the application's extension directory 259 /* Opens a NaCl executable file in the application's extension directory
256 * corresponding to the file URL and returns a file descriptor, or an invalid 260 * corresponding to the file URL and returns a file descriptor, or an invalid
257 * handle on failure. |metadata| is left unchanged on failure. 261 * handle on failure. The metadata |file_token*| are 0 on failure.
258 */ 262 */
259 PP_FileHandle OpenNaClExecutable([in] PP_Instance instance, 263 PP_FileHandle OpenNaClExecutable([in] PP_Instance instance,
260 [in] str_t file_url, 264 [in] str_t file_url,
261 [out] uint64_t file_token_lo, 265 [out] uint64_t file_token_lo,
262 [out] uint64_t file_token_hi); 266 [out] uint64_t file_token_hi);
263 267
264 268
265 /* Dispatch a progress event on the DOM element where the given instance is 269 /* Dispatch a progress event on the DOM element where the given instance is
266 * embedded. 270 * embedded.
267 */ 271 */
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 /* Sets the time the plugin was initialized. */ 359 /* Sets the time the plugin was initialized. */
356 void SetInitTime([in] PP_Instance instance); 360 void SetInitTime([in] PP_Instance instance);
357 361
358 /* Returns the size of the nexe. */ 362 /* Returns the size of the nexe. */
359 int64_t GetNexeSize([in] PP_Instance instance); 363 int64_t GetNexeSize([in] PP_Instance instance);
360 364
361 /* Sets the size of the nexe. */ 365 /* Sets the size of the nexe. */
362 void SetNexeSize([in] PP_Instance instance, 366 void SetNexeSize([in] PP_Instance instance,
363 [in] int64_t nexe_size); 367 [in] int64_t nexe_size);
364 }; 368 };
OLDNEW
« no previous file with comments | « components/nacl/renderer/ppb_nacl_private_impl.cc ('k') | ppapi/c/private/ppb_nacl_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698