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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/cpp/file_ref.h
diff --git a/ppapi/cpp/file_ref.h b/ppapi/cpp/file_ref.h
index 05cdc3691b02fe9790693bc6faa0a92c3f95172f..593225acddde4e11343d75da44f557714551c0ab 100644
--- a/ppapi/cpp/file_ref.h
+++ b/ppapi/cpp/file_ref.h
@@ -143,6 +143,19 @@ class FileRef : public Resource {
///
/// @return An int32_t containing an error code from <code>pp_errors.h</code>.
int32_t Rename(const FileRef& new_file_ref, const CompletionCallback& cc);
+
+ ///
+ /// Query() queries info about a file or directory. You must have access to
+ /// read this file or directory if it exists in the external filesystem.
+ ///
+ /// @param[out] info A pointer to a <code>PP_FileInfo</code> which will be
+ /// populated with information about the file or directory.
+ /// @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
+ /// completion of Query().
+ ///
+ /// @return An int32_t containing an error code from <code>pp_errors.h</code>.
+ 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.
+
};
} // namespace pp
« 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