ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / chrome / browser / chromeos / extensions / file_system_provider / file_system_provider_api.h
blob224ac9a94cc4637c0307775ccc91933ec968dce6
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_PROVIDER_API_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_PROVIDER_API_H_
8 #include "chrome/browser/chromeos/extensions/file_system_provider/provider_function.h"
9 #include "chrome/browser/extensions/chrome_extension_function.h"
11 namespace extensions {
13 class FileSystemProviderMountFunction : public ChromeSyncExtensionFunction {
14 public:
15 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.mount",
16 FILESYSTEMPROVIDER_MOUNT)
18 protected:
19 ~FileSystemProviderMountFunction() override {}
20 bool RunSync() override;
23 class FileSystemProviderUnmountFunction : public ChromeSyncExtensionFunction {
24 public:
25 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.unmount",
26 FILESYSTEMPROVIDER_UNMOUNT)
28 protected:
29 ~FileSystemProviderUnmountFunction() override {}
30 bool RunSync() override;
33 class FileSystemProviderGetAllFunction : public ChromeSyncExtensionFunction {
34 public:
35 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.getAll",
36 FILESYSTEMPROVIDER_GETALL)
38 protected:
39 ~FileSystemProviderGetAllFunction() override {}
40 bool RunSync() override;
43 class FileSystemProviderGetFunction : public ChromeSyncExtensionFunction {
44 public:
45 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.get", FILESYSTEMPROVIDER_GET)
47 protected:
48 ~FileSystemProviderGetFunction() override {}
49 bool RunSync() override;
52 class FileSystemProviderNotifyFunction : public ChromeAsyncExtensionFunction {
53 public:
54 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.notify",
55 FILESYSTEMPROVIDER_NOTIFY)
57 protected:
58 ~FileSystemProviderNotifyFunction() override {}
59 bool RunAsync() override;
61 private:
62 // Called when notifying is completed.
63 void OnNotifyCompleted(base::File::Error result);
66 class FileSystemProviderInternalUnmountRequestedSuccessFunction
67 : public FileSystemProviderInternalFunction {
68 public:
69 DECLARE_EXTENSION_FUNCTION(
70 "fileSystemProviderInternal.unmountRequestedSuccess",
71 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS)
73 protected:
74 ~FileSystemProviderInternalUnmountRequestedSuccessFunction() override {}
75 bool RunWhenValid() override;
78 class FileSystemProviderInternalGetMetadataRequestedSuccessFunction
79 : public FileSystemProviderInternalFunction {
80 public:
81 DECLARE_EXTENSION_FUNCTION(
82 "fileSystemProviderInternal.getMetadataRequestedSuccess",
83 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS)
85 protected:
86 ~FileSystemProviderInternalGetMetadataRequestedSuccessFunction() override {}
87 bool RunWhenValid() override;
90 class FileSystemProviderInternalReadDirectoryRequestedSuccessFunction
91 : public FileSystemProviderInternalFunction {
92 public:
93 DECLARE_EXTENSION_FUNCTION(
94 "fileSystemProviderInternal.readDirectoryRequestedSuccess",
95 FILESYSTEMPROVIDERINTERNAL_READDIRECTORYREQUESTEDSUCCESS)
97 protected:
98 ~FileSystemProviderInternalReadDirectoryRequestedSuccessFunction() override {}
99 bool RunWhenValid() override;
102 class FileSystemProviderInternalReadFileRequestedSuccessFunction
103 : public FileSystemProviderInternalFunction {
104 public:
105 DECLARE_EXTENSION_FUNCTION(
106 "fileSystemProviderInternal.readFileRequestedSuccess",
107 FILESYSTEMPROVIDERINTERNAL_READFILEREQUESTEDSUCCESS)
109 protected:
110 ~FileSystemProviderInternalReadFileRequestedSuccessFunction() override {}
111 bool RunWhenValid() override;
114 class FileSystemProviderInternalOperationRequestedSuccessFunction
115 : public FileSystemProviderInternalFunction {
116 public:
117 DECLARE_EXTENSION_FUNCTION(
118 "fileSystemProviderInternal.operationRequestedSuccess",
119 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDSUCCESS)
121 protected:
122 ~FileSystemProviderInternalOperationRequestedSuccessFunction() override {}
123 bool RunWhenValid() override;
126 class FileSystemProviderInternalOperationRequestedErrorFunction
127 : public FileSystemProviderInternalFunction {
128 public:
129 DECLARE_EXTENSION_FUNCTION(
130 "fileSystemProviderInternal.operationRequestedError",
131 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDERROR)
133 protected:
134 ~FileSystemProviderInternalOperationRequestedErrorFunction() override {}
135 bool RunWhenValid() override;
138 } // namespace extensions
140 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_PROVIDER_API_H_