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

Side by Side Diff: ppapi/api/ppb_file_ref.idl

Issue 12817009: Add Query() support to FileRef (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: callback type, PP_FileInfo initialization Created 7 years, 9 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
« no previous file with comments | « no previous file | ppapi/c/ppb_file_ref.h » ('j') | ppapi/cpp/file_ref.cc » ('J')
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 /** 6 /**
7 * This file defines the API to create a file reference or "weak pointer" to a 7 * This file defines the API to create a file reference or "weak pointer" to a
8 * file in a file system. 8 * file in a file system.
9 */ 9 */
10 10
11 label Chrome { 11 label Chrome {
12 M14 = 1.0 12 M14 = 1.0,
13 M27 = 1.1
13 }; 14 };
14 15
15 /** 16 /**
16 * The <code>PPB_FileRef</code> struct represents a "weak pointer" to a file in 17 * The <code>PPB_FileRef</code> struct represents a "weak pointer" to a file in
17 * a file system. This struct contains a <code>PP_FileSystemType</code> 18 * a file system. This struct contains a <code>PP_FileSystemType</code>
18 * identifier and a file path string. 19 * identifier and a file path string.
19 */ 20 */
20 interface PPB_FileRef { 21 interface PPB_FileRef {
21 /** 22 /**
22 * Create() creates a weak pointer to a file in the given file system. File 23 * Create() creates a weak pointer to a file in the given file system. File
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 * @param[in] new_file_ref A <code>PP_Resource</code> corresponding to a new 160 * @param[in] new_file_ref A <code>PP_Resource</code> corresponding to a new
160 * file reference. 161 * file reference.
161 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon 162 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
162 * completion of Rename(). 163 * completion of Rename().
163 * 164 *
164 * @return An int32_t containing an error code from <code>pp_errors.h</code>. 165 * @return An int32_t containing an error code from <code>pp_errors.h</code>.
165 */ 166 */
166 int32_t Rename([in] PP_Resource file_ref, 167 int32_t Rename([in] PP_Resource file_ref,
167 [in] PP_Resource new_file_ref, 168 [in] PP_Resource new_file_ref,
168 [in] PP_CompletionCallback callback); 169 [in] PP_CompletionCallback callback);
170
171 /*
172 * Query() queries info about a file or directory. You must have access to
173 * read this file or directory if it exists in the external filesystem.
174 *
175 * @param[in] file_ref A <code>PP_Resource</code> corresponding to a file
176 * reference.
177 * @param[out] info A pointer to a <code>PP_FileInfo</code> which will be
178 * populated with information about the file or directory.
179 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
180 * completion of Query().
181 *
182 * @return An int32_t containing an error code from <code>pp_errors.h</code>.
183 */
184 [version=1.1]
185 int32_t Query([in] PP_Resource file_ref,
186 [out] PP_FileInfo info,
187 [in] PP_CompletionCallback callback);
169 }; 188 };
170 189
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/ppb_file_ref.h » ('j') | ppapi/cpp/file_ref.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698