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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_private_api.h

Issue 9545006: This adds some GData private API to the file manager (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 10 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: 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_

Powered by Google App Engine
This is Rietveld 408576698