Index: chrome/browser/chromeos/extensions/file_browser_private_api.h |
diff --git a/chrome/browser/chromeos/extensions/file_browser_private_api.h b/chrome/browser/chromeos/extensions/file_browser_private_api.h |
index a5d463ecc977e7ce1958579e46775040a187584c..38c251fbaba7f696c134f5b39db46c942a3a3bf1 100644 |
--- a/chrome/browser/chromeos/extensions/file_browser_private_api.h |
+++ b/chrome/browser/chromeos/extensions/file_browser_private_api.h |
@@ -367,4 +367,28 @@ class FileDialogStringsFunction : public SyncExtensionFunction { |
DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); |
}; |
+// Retrieve property information for multiple files, returning a list of the |
+// same length as the input list of file URLs. If a particular file isn't |
+// found, then return a dictionary with the key "error" set to the string |
+// "NOT_FOUND" for that entry in the returned list. If an entry is a directory |
+// instead of a file, then an empty attribute dictionary is returned at that |
+// position in the list. |
+class GetGDataFilePropertiesFunction |
+ : public FileBrowserFunction { |
+ public: |
+ GetGDataFilePropertiesFunction(); |
+ |
+ protected: |
+ virtual ~GetGDataFilePropertiesFunction(); |
+ |
+ // AsyncExtensionFunction overrides. |
+ virtual bool RunImpl() OVERRIDE; |
+ |
+ private: |
+ // A callback method to handle the result of |
+ // GetLocalPathsOnFileThreadAndRunCallbackOnUIThread. |
+ void GetLocalPathsResponseOnUIThread(const FilePathList& files); |
+ |
+ DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getGDataFileProperties"); |
+}; |
#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |