| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 private: | 61 private: |
| 62 // Called when notifying is completed. | 62 // Called when notifying is completed. |
| 63 void OnNotifyCompleted(base::File::Error result); | 63 void OnNotifyCompleted(base::File::Error result); |
| 64 }; | 64 }; |
| 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_GETMETADATAREQUESTEDSUCCESS) | 71 FILESYSTEMPROVIDERINTERNAL_UNMOUNTREQUESTEDSUCCESS) |
| 72 | 72 |
| 73 protected: | 73 protected: |
| 74 ~FileSystemProviderInternalUnmountRequestedSuccessFunction() override {} | 74 ~FileSystemProviderInternalUnmountRequestedSuccessFunction() override {} |
| 75 bool RunWhenValid() override; | 75 bool RunWhenValid() 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 bool RunWhenValid() override; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 class FileSystemProviderInternalGetActionsRequestedSuccessFunction |
| 91 : public FileSystemProviderInternalFunction { |
| 92 public: |
| 93 DECLARE_EXTENSION_FUNCTION( |
| 94 "fileSystemProviderInternal.getActionsRequestedSuccess", |
| 95 FILESYSTEMPROVIDERINTERNAL_GETACTIONSREQUESTEDSUCCESS) |
| 96 |
| 97 protected: |
| 98 ~FileSystemProviderInternalGetActionsRequestedSuccessFunction() override {} |
| 99 bool RunWhenValid() override; |
| 100 }; |
| 101 |
| 90 class FileSystemProviderInternalReadDirectoryRequestedSuccessFunction | 102 class FileSystemProviderInternalReadDirectoryRequestedSuccessFunction |
| 91 : public FileSystemProviderInternalFunction { | 103 : public FileSystemProviderInternalFunction { |
| 92 public: | 104 public: |
| 93 DECLARE_EXTENSION_FUNCTION( | 105 DECLARE_EXTENSION_FUNCTION( |
| 94 "fileSystemProviderInternal.readDirectoryRequestedSuccess", | 106 "fileSystemProviderInternal.readDirectoryRequestedSuccess", |
| 95 FILESYSTEMPROVIDERINTERNAL_READDIRECTORYREQUESTEDSUCCESS) | 107 FILESYSTEMPROVIDERINTERNAL_READDIRECTORYREQUESTEDSUCCESS) |
| 96 | 108 |
| 97 protected: | 109 protected: |
| 98 ~FileSystemProviderInternalReadDirectoryRequestedSuccessFunction() override {} | 110 ~FileSystemProviderInternalReadDirectoryRequestedSuccessFunction() override {} |
| 99 bool RunWhenValid() override; | 111 bool RunWhenValid() override; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDERROR) | 143 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDERROR) |
| 132 | 144 |
| 133 protected: | 145 protected: |
| 134 ~FileSystemProviderInternalOperationRequestedErrorFunction() override {} | 146 ~FileSystemProviderInternalOperationRequestedErrorFunction() override {} |
| 135 bool RunWhenValid() override; | 147 bool RunWhenValid() override; |
| 136 }; | 148 }; |
| 137 | 149 |
| 138 } // namespace extensions | 150 } // namespace extensions |
| 139 | 151 |
| 140 #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 |