OLD | NEW |
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 |
(...skipping 12 matching lines...) Expand all Loading... |
23 class FileSystemProviderUnmountFunction : public ChromeSyncExtensionFunction { | 23 class FileSystemProviderUnmountFunction : public ChromeSyncExtensionFunction { |
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 virtual ~FileSystemProviderUnmountFunction() {} | 29 virtual ~FileSystemProviderUnmountFunction() {} |
30 virtual bool RunSync() OVERRIDE; | 30 virtual bool RunSync() OVERRIDE; |
31 }; | 31 }; |
32 | 32 |
| 33 class FileSystemProviderGetAllFunction : public ChromeSyncExtensionFunction { |
| 34 public: |
| 35 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.getAll", |
| 36 FILESYSTEMPROVIDER_GETALL) |
| 37 |
| 38 protected: |
| 39 virtual ~FileSystemProviderGetAllFunction() {} |
| 40 virtual bool RunSync() OVERRIDE; |
| 41 }; |
| 42 |
33 class FileSystemProviderInternalUnmountRequestedSuccessFunction | 43 class FileSystemProviderInternalUnmountRequestedSuccessFunction |
34 : public FileSystemProviderInternalFunction { | 44 : public FileSystemProviderInternalFunction { |
35 public: | 45 public: |
36 DECLARE_EXTENSION_FUNCTION( | 46 DECLARE_EXTENSION_FUNCTION( |
37 "fileSystemProviderInternal.unmountRequestedSuccess", | 47 "fileSystemProviderInternal.unmountRequestedSuccess", |
38 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS) | 48 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS) |
39 | 49 |
40 protected: | 50 protected: |
41 virtual ~FileSystemProviderInternalUnmountRequestedSuccessFunction() {} | 51 virtual ~FileSystemProviderInternalUnmountRequestedSuccessFunction() {} |
42 virtual bool RunWhenValid() OVERRIDE; | 52 virtual bool RunWhenValid() OVERRIDE; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDERROR) | 108 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDERROR) |
99 | 109 |
100 protected: | 110 protected: |
101 virtual ~FileSystemProviderInternalOperationRequestedErrorFunction() {} | 111 virtual ~FileSystemProviderInternalOperationRequestedErrorFunction() {} |
102 virtual bool RunWhenValid() OVERRIDE; | 112 virtual bool RunWhenValid() OVERRIDE; |
103 }; | 113 }; |
104 | 114 |
105 } // namespace extensions | 115 } // namespace extensions |
106 | 116 |
107 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_P
ROVIDER_API_H_ | 117 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_P
ROVIDER_API_H_ |
OLD | NEW |