| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 public: | 193 public: |
| 194 DECLARE_EXTENSION_FUNCTION("fileSystem.getWritableEntry", | 194 DECLARE_EXTENSION_FUNCTION("fileSystem.getWritableEntry", |
| 195 FILESYSTEM_GETWRITABLEENTRY) | 195 FILESYSTEM_GETWRITABLEENTRY) |
| 196 | 196 |
| 197 protected: | 197 protected: |
| 198 ~FileSystemGetWritableEntryFunction() override {} | 198 ~FileSystemGetWritableEntryFunction() override {} |
| 199 bool RunAsync() override; | 199 bool RunAsync() override; |
| 200 | 200 |
| 201 private: | 201 private: |
| 202 void CheckPermissionAndSendResponse(); | 202 void CheckPermissionAndSendResponse(); |
| 203 void SetIsDirectoryOnFileThread(); | 203 void SetIsDirectoryAsync(); |
| 204 | 204 |
| 205 // The path to the file for which a writable entry has been requested. | 205 // The path to the file for which a writable entry has been requested. |
| 206 base::FilePath path_; | 206 base::FilePath path_; |
| 207 }; | 207 }; |
| 208 | 208 |
| 209 class FileSystemIsWritableEntryFunction : public UIThreadExtensionFunction { | 209 class FileSystemIsWritableEntryFunction : public UIThreadExtensionFunction { |
| 210 public: | 210 public: |
| 211 DECLARE_EXTENSION_FUNCTION("fileSystem.isWritableEntry", | 211 DECLARE_EXTENSION_FUNCTION("fileSystem.isWritableEntry", |
| 212 FILESYSTEM_ISWRITABLEENTRY) | 212 FILESYSTEM_ISWRITABLEENTRY) |
| 213 | 213 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 ExtensionFunction::ResponseAction Run() override; | 412 ExtensionFunction::ResponseAction Run() override; |
| 413 | 413 |
| 414 private: | 414 private: |
| 415 ChromeExtensionFunctionDetails chrome_details_; | 415 ChromeExtensionFunctionDetails chrome_details_; |
| 416 }; | 416 }; |
| 417 #endif | 417 #endif |
| 418 | 418 |
| 419 } // namespace extensions | 419 } // namespace extensions |
| 420 | 420 |
| 421 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ | 421 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ |
| OLD | NEW |