OLD | NEW |
---|---|
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 Loading... | |
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_ |
OLD | NEW |