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

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

Issue 163433015: Add sandbox ISA and extra compile flag fields to PNaCl translation cache key (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review 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
« 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 * component directory, or an invalid handle on failure. 103 * component directory, or an invalid handle on failure.
104 */ 104 */
105 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename); 105 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename);
106 106
107 /* This creates a temporary file that will be deleted by the time 107 /* This creates a temporary file that will be deleted by the time
108 * the last handle is closed (or earlier on POSIX systems), and 108 * the last handle is closed (or earlier on POSIX systems), and
109 * returns a posix handle to that temporary file. 109 * returns a posix handle to that temporary file.
110 */ 110 */
111 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); 111 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance);
112 112
113 /* Create a temporary file, which will be deleted by the time the 113 /* Create a temporary file, which will be deleted by the time the last handle
114 * last handle is closed (or earlier on POSIX systems), to use for 114 * is closed (or earlier on POSIX systems), to use for the nexe with the cache
115 * the nexe with the cache information given by |pexe_url|, 115 * information given by |pexe_url|, |abi_version|, |opt_level|,
116 * |abi_version|, |opt_level|, |last_modified|, |etag|, and 116 * |last_modified|, |etag|, |has_no_store_header|, |sandbox_isa|, and
117 * |has_no_store_header|. If the nexe is already present in the 117 * |extra_flags|. If the nexe is already present in the cache, |is_hit| is set
118 * cache, |is_hit| is set to PP_TRUE and the contents of the nexe 118 * to PP_TRUE and the contents of the nexe will be copied into the temporary
119 * will be copied into the temporary file. Otherwise |is_hit| is set 119 * file. Otherwise |is_hit| is set to PP_FALSE and the temporary file will be
120 * to PP_FALSE and the temporary file will be writeable. Currently 120 * writeable. Currently the implementation is a stub, which always sets
121 * the implementation is a stub, which always sets is_hit to false 121 * is_hit to false and calls the implementation of CreateTemporaryFile. In a
122 * and calls the implementation of CreateTemporaryFile. In a 122 * subsequent CL it will call into the browser which will remember the
123 * subsequent CL it will call into the browser which will remember 123 * association between the cache key and the fd, and copy the nexe into the
124 * the association between the cache key and the fd, and copy the 124 * cache after the translation finishes.
125 * nexe into the cache after the translation finishes.
126 */ 125 */
127 int32_t GetNexeFd([in] PP_Instance instance, 126 int32_t GetNexeFd([in] PP_Instance instance,
128 [in] str_t pexe_url, 127 [in] str_t pexe_url,
129 [in] uint32_t abi_version, 128 [in] uint32_t abi_version,
130 [in] uint32_t opt_level, 129 [in] uint32_t opt_level,
131 [in] str_t last_modified, 130 [in] str_t last_modified,
132 [in] str_t etag, 131 [in] str_t etag,
133 [in] PP_Bool has_no_store_header, 132 [in] PP_Bool has_no_store_header,
133 [in] str_t sandbox_isa,
134 [in] str_t extra_flags,
jschuh 2014/02/15 15:36:41 Why are these strings rather than enums/bit-flags?
134 [out] PP_Bool is_hit, 135 [out] PP_Bool is_hit,
135 [out] PP_FileHandle nexe_handle, 136 [out] PP_FileHandle nexe_handle,
136 [in] PP_CompletionCallback callback); 137 [in] PP_CompletionCallback callback);
137 138
138 /* Report to the browser that translation of the pexe for |instance| 139 /* Report to the browser that translation of the pexe for |instance|
139 * has finished, or aborted with an error. If |success| is true, the 140 * has finished, or aborted with an error. If |success| is true, the
140 * browser may then store the translation in the cache. The renderer 141 * browser may then store the translation in the cache. The renderer
141 * must first have called GetNexeFd for the same instance. (The browser is 142 * must first have called GetNexeFd for the same instance. (The browser is
142 * not guaranteed to store the nexe even if |success| is true; if there is 143 * not guaranteed to store the nexe even if |success| is true; if there is
143 * an error on the browser side, or the file is too big for the cache, or 144 * an error on the browser side, or the file is too big for the cache, or
(...skipping 27 matching lines...) Expand all
171 [in] uint64_t loaded_bytes, 172 [in] uint64_t loaded_bytes,
172 [in] uint64_t total_bytes); 173 [in] uint64_t total_bytes);
173 174
174 /* 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
175 * the given instance. 176 * the given instance.
176 */ 177 */
177 void SetReadOnlyProperty([in] PP_Instance instance, 178 void SetReadOnlyProperty([in] PP_Instance instance,
178 [in] PP_Var key, 179 [in] PP_Var key,
179 [in] PP_Var value); 180 [in] PP_Var value);
180 }; 181 };
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