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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h

Issue 985533004: Implement chrome.fileSystem.requestFileSystem(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed kiosk mode. Created 5 years, 9 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_manager/private_api_file_system.h
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h b/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h
index 31da7b9cf2af651eaf4809c6494159a1913b38ba..3e45d6077fe4ef1e6cd8eb4efed8b9e199acd95b 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h
@@ -43,43 +43,6 @@ struct HashAndFilePath;
namespace extensions {
-// Implements the chrome.fileManagerPrivate.requestFileSystem method.
-class FileManagerPrivateRequestFileSystemFunction
- : public LoggedAsyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.requestFileSystem",
- FILEMANAGERPRIVATE_REQUESTFILESYSTEM)
-
- protected:
- ~FileManagerPrivateRequestFileSystemFunction() override {}
-
- // AsyncExtensionFunction overrides.
- bool RunAsync() override;
-
- private:
- void RespondSuccessOnUIThread(const std::string& name,
- const GURL& root_url);
- void RespondFailedOnUIThread(base::File::Error error_code);
-
- // Called when something goes wrong. Records the error to |error_| per the
- // error code and reports that the private API function failed.
- void DidFail(base::File::Error error_code);
-
- // Sets up file system access permissions to the extension identified by
- // |child_id|.
- bool SetupFileSystemAccessPermissions(
- scoped_refptr<storage::FileSystemContext> file_system_context,
- int child_id,
- Profile* profile,
- scoped_refptr<const extensions::Extension> extension,
- const base::FilePath& mount_path,
- const base::FilePath& virtual_path);
-
- // Called when the entry definition is computed.
- void OnEntryDefinition(
- const file_manager::util::EntryDefinition& entry_definition);
-};
-
// Grant permission to request externalfile scheme. The permission is needed to
// start drag for external file URL.
class FileManagerPrivateEnableExternalFileSchemeFunction

Powered by Google App Engine
This is Rietveld 408576698