| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 class FileSystemProviderInternalUnmountRequestedSuccessFunction | 66 class FileSystemProviderInternalUnmountRequestedSuccessFunction |
| 67 : public FileSystemProviderInternalFunction { | 67 : public FileSystemProviderInternalFunction { |
| 68 public: | 68 public: |
| 69 DECLARE_EXTENSION_FUNCTION( | 69 DECLARE_EXTENSION_FUNCTION( |
| 70 "fileSystemProviderInternal.unmountRequestedSuccess", | 70 "fileSystemProviderInternal.unmountRequestedSuccess", |
| 71 FILESYSTEMPROVIDERINTERNAL_UNMOUNTREQUESTEDSUCCESS) | 71 FILESYSTEMPROVIDERINTERNAL_UNMOUNTREQUESTEDSUCCESS) |
| 72 | 72 |
| 73 protected: | 73 protected: |
| 74 ~FileSystemProviderInternalUnmountRequestedSuccessFunction() override {} | 74 ~FileSystemProviderInternalUnmountRequestedSuccessFunction() override {} |
| 75 bool RunWhenValid() override; | 75 ResponseAction Run() override; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 class FileSystemProviderInternalGetMetadataRequestedSuccessFunction | 78 class FileSystemProviderInternalGetMetadataRequestedSuccessFunction |
| 79 : public FileSystemProviderInternalFunction { | 79 : public FileSystemProviderInternalFunction { |
| 80 public: | 80 public: |
| 81 DECLARE_EXTENSION_FUNCTION( | 81 DECLARE_EXTENSION_FUNCTION( |
| 82 "fileSystemProviderInternal.getMetadataRequestedSuccess", | 82 "fileSystemProviderInternal.getMetadataRequestedSuccess", |
| 83 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS) | 83 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS) |
| 84 | 84 |
| 85 protected: | 85 protected: |
| 86 ~FileSystemProviderInternalGetMetadataRequestedSuccessFunction() override {} | 86 ~FileSystemProviderInternalGetMetadataRequestedSuccessFunction() override {} |
| 87 bool RunWhenValid() override; | 87 ResponseAction Run() override; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 class FileSystemProviderInternalGetActionsRequestedSuccessFunction | 90 class FileSystemProviderInternalGetActionsRequestedSuccessFunction |
| 91 : public FileSystemProviderInternalFunction { | 91 : public FileSystemProviderInternalFunction { |
| 92 public: | 92 public: |
| 93 DECLARE_EXTENSION_FUNCTION( | 93 DECLARE_EXTENSION_FUNCTION( |
| 94 "fileSystemProviderInternal.getActionsRequestedSuccess", | 94 "fileSystemProviderInternal.getActionsRequestedSuccess", |
| 95 FILESYSTEMPROVIDERINTERNAL_GETACTIONSREQUESTEDSUCCESS) | 95 FILESYSTEMPROVIDERINTERNAL_GETACTIONSREQUESTEDSUCCESS) |
| 96 | 96 |
| 97 protected: | 97 protected: |
| 98 ~FileSystemProviderInternalGetActionsRequestedSuccessFunction() override {} | 98 ~FileSystemProviderInternalGetActionsRequestedSuccessFunction() override {} |
| 99 bool RunWhenValid() override; | 99 ResponseAction Run() override; |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 class FileSystemProviderInternalReadDirectoryRequestedSuccessFunction | 102 class FileSystemProviderInternalReadDirectoryRequestedSuccessFunction |
| 103 : public FileSystemProviderInternalFunction { | 103 : public FileSystemProviderInternalFunction { |
| 104 public: | 104 public: |
| 105 DECLARE_EXTENSION_FUNCTION( | 105 DECLARE_EXTENSION_FUNCTION( |
| 106 "fileSystemProviderInternal.readDirectoryRequestedSuccess", | 106 "fileSystemProviderInternal.readDirectoryRequestedSuccess", |
| 107 FILESYSTEMPROVIDERINTERNAL_READDIRECTORYREQUESTEDSUCCESS) | 107 FILESYSTEMPROVIDERINTERNAL_READDIRECTORYREQUESTEDSUCCESS) |
| 108 | 108 |
| 109 protected: | 109 protected: |
| 110 ~FileSystemProviderInternalReadDirectoryRequestedSuccessFunction() override {} | 110 ~FileSystemProviderInternalReadDirectoryRequestedSuccessFunction() override {} |
| 111 bool RunWhenValid() override; | 111 ResponseAction Run() override; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 class FileSystemProviderInternalReadFileRequestedSuccessFunction | 114 class FileSystemProviderInternalReadFileRequestedSuccessFunction |
| 115 : public FileSystemProviderInternalFunction { | 115 : public FileSystemProviderInternalFunction { |
| 116 public: | 116 public: |
| 117 DECLARE_EXTENSION_FUNCTION( | 117 DECLARE_EXTENSION_FUNCTION( |
| 118 "fileSystemProviderInternal.readFileRequestedSuccess", | 118 "fileSystemProviderInternal.readFileRequestedSuccess", |
| 119 FILESYSTEMPROVIDERINTERNAL_READFILEREQUESTEDSUCCESS) | 119 FILESYSTEMPROVIDERINTERNAL_READFILEREQUESTEDSUCCESS) |
| 120 | 120 |
| 121 protected: | 121 protected: |
| 122 ~FileSystemProviderInternalReadFileRequestedSuccessFunction() override {} | 122 ~FileSystemProviderInternalReadFileRequestedSuccessFunction() override {} |
| 123 bool RunWhenValid() override; | 123 ResponseAction Run() override; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 class FileSystemProviderInternalOperationRequestedSuccessFunction | 126 class FileSystemProviderInternalOperationRequestedSuccessFunction |
| 127 : public FileSystemProviderInternalFunction { | 127 : public FileSystemProviderInternalFunction { |
| 128 public: | 128 public: |
| 129 DECLARE_EXTENSION_FUNCTION( | 129 DECLARE_EXTENSION_FUNCTION( |
| 130 "fileSystemProviderInternal.operationRequestedSuccess", | 130 "fileSystemProviderInternal.operationRequestedSuccess", |
| 131 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDSUCCESS) | 131 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDSUCCESS) |
| 132 | 132 |
| 133 protected: | 133 protected: |
| 134 ~FileSystemProviderInternalOperationRequestedSuccessFunction() override {} | 134 ~FileSystemProviderInternalOperationRequestedSuccessFunction() override {} |
| 135 bool RunWhenValid() override; | 135 ResponseAction Run() override; |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 class FileSystemProviderInternalOperationRequestedErrorFunction | 138 class FileSystemProviderInternalOperationRequestedErrorFunction |
| 139 : public FileSystemProviderInternalFunction { | 139 : public FileSystemProviderInternalFunction { |
| 140 public: | 140 public: |
| 141 DECLARE_EXTENSION_FUNCTION( | 141 DECLARE_EXTENSION_FUNCTION( |
| 142 "fileSystemProviderInternal.operationRequestedError", | 142 "fileSystemProviderInternal.operationRequestedError", |
| 143 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDERROR) | 143 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDERROR) |
| 144 | 144 |
| 145 protected: | 145 protected: |
| 146 ~FileSystemProviderInternalOperationRequestedErrorFunction() override {} | 146 ~FileSystemProviderInternalOperationRequestedErrorFunction() override {} |
| 147 bool RunWhenValid() override; | 147 ResponseAction Run() 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_ |
| OLD | NEW |