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

Side by Side Diff: ppapi/cpp/file_ref.h

Issue 12817009: Add Query() support to FileRef (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef PPAPI_CPP_FILE_REF_H_ 5 #ifndef PPAPI_CPP_FILE_REF_H_
6 #define PPAPI_CPP_FILE_REF_H_ 6 #define PPAPI_CPP_FILE_REF_H_
7 7
8 #include "ppapi/c/pp_stdint.h" 8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/c/ppb_file_ref.h" 9 #include "ppapi/c/ppb_file_ref.h"
10 #include "ppapi/cpp/resource.h" 10 #include "ppapi/cpp/resource.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 /// error to rename a file or directory that is in use. It is not valid to 136 /// error to rename a file or directory that is in use. It is not valid to
137 /// rename a file in the external file system. 137 /// rename a file in the external file system.
138 /// 138 ///
139 /// @param[in] new_file_ref A <code>FileRef</code> corresponding to a new 139 /// @param[in] new_file_ref A <code>FileRef</code> corresponding to a new
140 /// file reference. 140 /// file reference.
141 /// @param[in] cc A <code>CompletionCallback</code> to be called upon 141 /// @param[in] cc A <code>CompletionCallback</code> to be called upon
142 /// completion of Rename(). 142 /// completion of Rename().
143 /// 143 ///
144 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. 144 /// @return An int32_t containing an error code from <code>pp_errors.h</code>.
145 int32_t Rename(const FileRef& new_file_ref, const CompletionCallback& cc); 145 int32_t Rename(const FileRef& new_file_ref, const CompletionCallback& cc);
146
147 ///
148 /// Query() queries info about a file or directory. You must have access to
149 /// read this file or directory if it exists in the external filesystem.
150 ///
151 /// @param[out] info A pointer to a <code>PP_FileInfo</code> which will be
152 /// populated with information about the file or directory.
153 /// @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
154 /// completion of Query().
155 ///
156 /// @return An int32_t containing an error code from <code>pp_errors.h</code>.
157 int32_t Query(PP_FileInfo* info, const CompletionCallback& callback);
dmichael (off chromium) 2013/03/18 23:16:16 Please use "CompletionCallbackWithOutput<PP_FileIn
teravest 2013/03/21 16:45:04 Done.
158
146 }; 159 };
147 160
148 } // namespace pp 161 } // namespace pp
149 162
150 #endif // PPAPI_CPP_FILE_REF_H_ 163 #endif // PPAPI_CPP_FILE_REF_H_
OLDNEW
« no previous file with comments | « ppapi/c/ppb_file_ref.h ('k') | ppapi/cpp/file_ref.cc » ('j') | ppapi/proxy/ppapi_messages.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698