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

Unified Diff: chrome/browser/extensions/api/file_system/file_system_api.h

Issue 10692104: Add isWritableFileEntry to the fileSystem API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
Index: chrome/browser/extensions/api/file_system/file_system_api.h
diff --git a/chrome/browser/extensions/api/file_system/file_system_api.h b/chrome/browser/extensions/api/file_system/file_system_api.h
index ec3293d4022061cda0b067e6024ba367d944de09..4b171eee6d9ea504982f7dfc9b345828c2ce740e 100644
--- a/chrome/browser/extensions/api/file_system/file_system_api.h
+++ b/chrome/browser/extensions/api/file_system/file_system_api.h
@@ -29,8 +29,6 @@ class FileSystemEntryFunction : public AsyncExtensionFunction {
virtual ~FileSystemEntryFunction() {}
- bool HasFileSystemWritePermission();
-
// Called on the FILE thread. This is called when a writable file entry is
// being returned. The function will ensure the file exists, creating it if
// necessary, and also check that the file is not a link.
@@ -55,6 +53,15 @@ class FileSystemGetWritableFileEntryFunction : public FileSystemEntryFunction {
virtual bool RunImpl() OVERRIDE;
};
+class FileSystemIsWritableFileEntryFunction : public SyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION_NAME("fileSystem.isWritableFileEntry");
+
+ protected:
+ virtual ~FileSystemIsWritableFileEntryFunction() {}
+ virtual bool RunImpl() OVERRIDE;
+};
+
class FileSystemChooseFileFunction : public FileSystemEntryFunction {
public:
// Allow picker UI to be skipped in testing.

Powered by Google App Engine
This is Rietveld 408576698