| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef EXTENSIONS_SHELL_BROWSER_API_FILE_SYSTEM_SHELL_FILE_SYSTEM_DELEGATE_H_ |
| 6 #define EXTENSIONS_SHELL_BROWSER_API_FILE_SYSTEM_SHELL_FILE_SYSTEM_DELEGATE_H_ |
| 7 |
| 8 #include "extensions/browser/api/file_system/file_system_delegate.h" |
| 9 |
| 10 namespace extensions { |
| 11 |
| 12 class ShellFileSystemDelegate : public FileSystemDelegate { |
| 13 public: |
| 14 ShellFileSystemDelegate(); |
| 15 ~ShellFileSystemDelegate() override; |
| 16 |
| 17 // FileSystemDelegate: |
| 18 base::FilePath GetDefaultDirectory() override; |
| 19 bool ShowSelectFileDialog( |
| 20 scoped_refptr<UIThreadExtensionFunction> extension_function, |
| 21 ui::SelectFileDialog::Type type, |
| 22 const base::FilePath& default_path, |
| 23 const ui::SelectFileDialog::FileTypeInfo* file_types, |
| 24 FileSystemDelegate::FilesSelectedCallback files_selected_callback, |
| 25 base::OnceClosure file_selection_canceled_callback) override; |
| 26 void ConfirmSensitiveDirectoryAccess(bool has_write_permission, |
| 27 const base::string16& app_name, |
| 28 content::WebContents* web_contents, |
| 29 const base::Closure& on_accept, |
| 30 const base::Closure& on_cancel) override; |
| 31 int GetDescriptionIdForAcceptType(const std::string& accept_type) override; |
| 32 SavedFilesServiceInterface* GetSavedFilesService( |
| 33 content::BrowserContext* browser_context) override; |
| 34 |
| 35 private: |
| 36 DISALLOW_COPY_AND_ASSIGN(ShellFileSystemDelegate); |
| 37 }; |
| 38 |
| 39 } // namespace extensions |
| 40 |
| 41 #endif // EXTENSIONS_SHELL_BROWSER_API_FILE_SYSTEM_SHELL_FILE_SYSTEM_DELEGATE_H
_ |
| OLD | NEW |