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

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

Issue 2335213004: [Extensions] Convert some ChromeSyncExtensionFunctions (Closed)
Patch Set: Created 4 years, 3 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 75113b61cb858483786ce09852587dcfb34fa5cb..740c44706c185d021514b170b0a882f33a68cc4e 100644
--- a/chrome/browser/extensions/api/file_system/file_system_api.h
+++ b/chrome/browser/extensions/api/file_system/file_system_api.h
@@ -143,14 +143,14 @@ class ConsentProviderDelegate : public ConsentProvider::DelegateInterface {
} // namespace file_system_api
-class FileSystemGetDisplayPathFunction : public ChromeSyncExtensionFunction {
+class FileSystemGetDisplayPathFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("fileSystem.getDisplayPath",
FILESYSTEM_GETDISPLAYPATH)
protected:
~FileSystemGetDisplayPathFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
class FileSystemEntryFunction : public ChromeAsyncExtensionFunction {
@@ -206,14 +206,14 @@ class FileSystemGetWritableEntryFunction : public FileSystemEntryFunction {
base::FilePath path_;
};
-class FileSystemIsWritableEntryFunction : public ChromeSyncExtensionFunction {
+class FileSystemIsWritableEntryFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("fileSystem.isWritableEntry",
FILESYSTEM_ISWRITABLEENTRY)
protected:
~FileSystemIsWritableEntryFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
class FileSystemChooseEntryFunction : public FileSystemEntryFunction {
@@ -299,13 +299,13 @@ class FileSystemRetainEntryFunction : public ChromeAsyncExtensionFunction {
std::unique_ptr<base::File::Info> file_info);
};
-class FileSystemIsRestorableFunction : public ChromeSyncExtensionFunction {
+class FileSystemIsRestorableFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("fileSystem.isRestorable", FILESYSTEM_ISRESTORABLE)
protected:
~FileSystemIsRestorableFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
class FileSystemRestoreEntryFunction : public FileSystemEntryFunction {
@@ -317,35 +317,34 @@ class FileSystemRestoreEntryFunction : public FileSystemEntryFunction {
bool RunAsync() override;
};
-class FileSystemObserveDirectoryFunction : public ChromeSyncExtensionFunction {
+class FileSystemObserveDirectoryFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("fileSystem.observeDirectory",
FILESYSTEM_OBSERVEDIRECTORY)
protected:
~FileSystemObserveDirectoryFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
-class FileSystemUnobserveEntryFunction : public ChromeSyncExtensionFunction {
+class FileSystemUnobserveEntryFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("fileSystem.unobserveEntry",
FILESYSTEM_UNOBSERVEENTRY)
protected:
~FileSystemUnobserveEntryFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
-class FileSystemGetObservedEntriesFunction
- : public ChromeSyncExtensionFunction {
+class FileSystemGetObservedEntriesFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("fileSystem.getObservedEntries",
FILESYSTEM_GETOBSERVEDENTRIES);
protected:
~FileSystemGetObservedEntriesFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
#if !defined(OS_CHROMEOS)

Powered by Google App Engine
This is Rietveld 408576698