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

Side by Side Diff: extensions/shell/browser/api/file_system/shell_file_system_delegate.h

Issue 2962793002: AppShell: Enable chrome.fileSystem.retainEntry/restoreEntry (Closed)
Patch Set: Remove extraneous DEPS Created 3 years, 5 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 unified diff | Download patch
OLDNEW
(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 _
OLDNEW
« no previous file with comments | « extensions/shell/BUILD.gn ('k') | extensions/shell/browser/api/file_system/shell_file_system_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698