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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/browser/api/file_system/shell_file_system_delegate.h
diff --git a/extensions/shell/browser/api/file_system/shell_file_system_delegate.h b/extensions/shell/browser/api/file_system/shell_file_system_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..df41e02b944ab7da3d7c0d1e106f04f33028a4f0
--- /dev/null
+++ b/extensions/shell/browser/api/file_system/shell_file_system_delegate.h
@@ -0,0 +1,41 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef EXTENSIONS_SHELL_BROWSER_API_FILE_SYSTEM_SHELL_FILE_SYSTEM_DELEGATE_H_
+#define EXTENSIONS_SHELL_BROWSER_API_FILE_SYSTEM_SHELL_FILE_SYSTEM_DELEGATE_H_
+
+#include "extensions/browser/api/file_system/file_system_delegate.h"
+
+namespace extensions {
+
+class ShellFileSystemDelegate : public FileSystemDelegate {
+ public:
+ ShellFileSystemDelegate();
+ ~ShellFileSystemDelegate() override;
+
+ // FileSystemDelegate:
+ base::FilePath GetDefaultDirectory() override;
+ bool ShowSelectFileDialog(
+ scoped_refptr<UIThreadExtensionFunction> extension_function,
+ ui::SelectFileDialog::Type type,
+ const base::FilePath& default_path,
+ const ui::SelectFileDialog::FileTypeInfo* file_types,
+ FileSystemDelegate::FilesSelectedCallback files_selected_callback,
+ base::OnceClosure file_selection_canceled_callback) override;
+ void ConfirmSensitiveDirectoryAccess(bool has_write_permission,
+ const base::string16& app_name,
+ content::WebContents* web_contents,
+ const base::Closure& on_accept,
+ const base::Closure& on_cancel) override;
+ int GetDescriptionIdForAcceptType(const std::string& accept_type) override;
+ SavedFilesServiceInterface* GetSavedFilesService(
+ content::BrowserContext* browser_context) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ShellFileSystemDelegate);
+};
+
+} // namespace extensions
+
+#endif // EXTENSIONS_SHELL_BROWSER_API_FILE_SYSTEM_SHELL_FILE_SYSTEM_DELEGATE_H_
« 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