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

Side by Side Diff: chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_PROV IDER_API_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_PROV IDER_API_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_PROV IDER_API_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_PROV IDER_API_H_
7 7
8 #include "chrome/browser/chromeos/extensions/file_system_provider/provider_funct ion.h" 8 #include "chrome/browser/chromeos/extensions/file_system_provider/provider_funct ion.h"
9 #include "chrome/browser/extensions/chrome_extension_function.h" 9 #include "chrome/browser/extensions/chrome_extension_function.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 class FileSystemProviderMountFunction : public ChromeSyncExtensionFunction { 13 class FileSystemProviderMountFunction : public UIThreadExtensionFunction {
14 public: 14 public:
15 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.mount", 15 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.mount",
16 FILESYSTEMPROVIDER_MOUNT) 16 FILESYSTEMPROVIDER_MOUNT)
17 17
18 protected: 18 protected:
19 ~FileSystemProviderMountFunction() override {} 19 ~FileSystemProviderMountFunction() override {}
20 bool RunSync() override; 20 ResponseAction Run() override;
21 }; 21 };
22 22
23 class FileSystemProviderUnmountFunction : public ChromeSyncExtensionFunction { 23 class FileSystemProviderUnmountFunction : public UIThreadExtensionFunction {
24 public: 24 public:
25 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.unmount", 25 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.unmount",
26 FILESYSTEMPROVIDER_UNMOUNT) 26 FILESYSTEMPROVIDER_UNMOUNT)
27 27
28 protected: 28 protected:
29 ~FileSystemProviderUnmountFunction() override {} 29 ~FileSystemProviderUnmountFunction() override {}
30 bool RunSync() override; 30 ResponseAction Run() override;
31 }; 31 };
32 32
33 class FileSystemProviderGetAllFunction : public ChromeSyncExtensionFunction { 33 class FileSystemProviderGetAllFunction : public UIThreadExtensionFunction {
34 public: 34 public:
35 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.getAll", 35 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.getAll",
36 FILESYSTEMPROVIDER_GETALL) 36 FILESYSTEMPROVIDER_GETALL)
37 37
38 protected: 38 protected:
39 ~FileSystemProviderGetAllFunction() override {} 39 ~FileSystemProviderGetAllFunction() override {}
40 bool RunSync() override; 40 ResponseAction Run() override;
41 }; 41 };
42 42
43 class FileSystemProviderGetFunction : public ChromeSyncExtensionFunction { 43 class FileSystemProviderGetFunction : public UIThreadExtensionFunction {
44 public: 44 public:
45 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.get", FILESYSTEMPROVIDER_GET) 45 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.get", FILESYSTEMPROVIDER_GET)
46 46
47 protected: 47 protected:
48 ~FileSystemProviderGetFunction() override {} 48 ~FileSystemProviderGetFunction() override {}
49 bool RunSync() override; 49 ResponseAction Run() override;
50 }; 50 };
51 51
52 class FileSystemProviderNotifyFunction : public ChromeAsyncExtensionFunction { 52 class FileSystemProviderNotifyFunction : public ChromeAsyncExtensionFunction {
53 public: 53 public:
54 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.notify", 54 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.notify",
55 FILESYSTEMPROVIDER_NOTIFY) 55 FILESYSTEMPROVIDER_NOTIFY)
56 56
57 protected: 57 protected:
58 ~FileSystemProviderNotifyFunction() override {} 58 ~FileSystemProviderNotifyFunction() override {}
59 bool RunAsync() override; 59 bool RunAsync() override;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDERROR) 143 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDERROR)
144 144
145 protected: 145 protected:
146 ~FileSystemProviderInternalOperationRequestedErrorFunction() override {} 146 ~FileSystemProviderInternalOperationRequestedErrorFunction() override {}
147 bool RunWhenValid() override; 147 bool RunWhenValid() override;
148 }; 148 };
149 149
150 } // namespace extensions 150 } // namespace extensions
151 151
152 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_P ROVIDER_API_H_ 152 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_P ROVIDER_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698