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

Unified Diff: chrome/browser/extensions/api/file_handlers/non_native_file_system_delegate_chromeos.h

Issue 2666763005: API delegate for non-native file systems (Closed)
Patch Set: rebase Created 3 years, 10 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/extensions/api/file_handlers/non_native_file_system_delegate_chromeos.h
diff --git a/chrome/browser/extensions/api/file_handlers/non_native_file_system_delegate_chromeos.h b/chrome/browser/extensions/api/file_handlers/non_native_file_system_delegate_chromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..c1bb44307a667e2c7d8273398b452ed8e0ed2124
--- /dev/null
+++ b/chrome/browser/extensions/api/file_handlers/non_native_file_system_delegate_chromeos.h
@@ -0,0 +1,46 @@
+// 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 CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_NON_NATIVE_FILE_SYSTEM_DELEGATE_CHROMEOS_H_
+#define CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_NON_NATIVE_FILE_SYSTEM_DELEGATE_CHROMEOS_H_
+
+#include "base/callback.h"
+#include "base/files/file_path.h"
+#include "extensions/browser/api/file_handlers/non_native_file_system_delegate.h"
+
+namespace content {
+class BrowserContext;
+}
+
+namespace extensions {
+
+class NonNativeFileSystemDelegateChromeOS
+ : public extensions::NonNativeFileSystemDelegate {
+ public:
+ NonNativeFileSystemDelegateChromeOS();
+ ~NonNativeFileSystemDelegateChromeOS() override;
+
+ // extensions::NonNativeFileSystemDelegate:
+ bool IsUnderNonNativeLocalPath(content::BrowserContext* context,
+ const base::FilePath& path) override;
+ void GetNonNativeLocalPathMimeType(
+ content::BrowserContext* context,
+ const base::FilePath& path,
+ const base::Callback<void(bool, const std::string&)>& callback) override;
+ void IsNonNativeLocalPathDirectory(
+ content::BrowserContext* context,
+ const base::FilePath& path,
+ const base::Callback<void(bool)>& callback) override;
+ void PrepareNonNativeLocalFileForWritableApp(
+ content::BrowserContext* context,
+ const base::FilePath& path,
+ const base::Callback<void(bool)>& callback) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NonNativeFileSystemDelegateChromeOS);
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_NON_NATIVE_FILE_SYSTEM_DELEGATE_CHROMEOS_H_

Powered by Google App Engine
This is Rietveld 408576698