Index: chrome/browser/extensions/api/file_system/file_system_api.h |
diff --git a/chrome/browser/extensions/api/file_system/file_system_api.h b/chrome/browser/extensions/api/file_system/file_system_api.h |
index f65649ed53df65d00c02822f1aafd80bf5c83d32..e86b9f47630d96288da0705c3f53dbfff560fdd8 100644 |
--- a/chrome/browser/extensions/api/file_system/file_system_api.h |
+++ b/chrome/browser/extensions/api/file_system/file_system_api.h |
@@ -7,6 +7,9 @@ |
#include "chrome/browser/extensions/extension_function.h" |
#include "chrome/browser/ui/select_file_dialog.h" |
+#include "chrome/common/extensions/api/file_system.h" |
+ |
+namespace file_system = extensions::api::file_system; |
namespace extensions { |
@@ -72,12 +75,22 @@ class FileSystemChooseFileFunction : public FileSystemEntryFunction { |
DECLARE_EXTENSION_FUNCTION_NAME("fileSystem.chooseFile"); |
+ static void BuildFileTypeInfo( |
+ SelectFileDialog::FileTypeInfo* file_type_info, |
+ const FilePath::StringType& suggested_extension, |
+ const std::vector<linked_ptr<file_system::AcceptOption> >* accepts, |
+ const bool* acceptsAllTypes); |
+ static void BuildSuggestion(const std::string* opt_name, |
+ FilePath* suggested_name, |
+ FilePath::StringType* suggested_extension); |
+ |
protected: |
class FilePicker; |
virtual ~FileSystemChooseFileFunction() {} |
virtual bool RunImpl() OVERRIDE; |
bool ShowPicker(const FilePath& suggested_path, |
+ const SelectFileDialog::FileTypeInfo& file_type_info, |
SelectFileDialog::Type picker_type, |
EntryType entry_type); |