| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF
ACE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF
ACE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF
ACE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF
ACE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // Requests creating a directory. If |recursive| is passed, then all non | 104 // Requests creating a directory. If |recursive| is passed, then all non |
| 105 // existing directories on the path will be created. If |exclusive| is true, | 105 // existing directories on the path will be created. If |exclusive| is true, |
| 106 // then creating the directory will fail, if it already exists. | 106 // then creating the directory will fail, if it already exists. |
| 107 virtual void CreateDirectory( | 107 virtual void CreateDirectory( |
| 108 const base::FilePath& directory_path, | 108 const base::FilePath& directory_path, |
| 109 bool exclusive, | 109 bool exclusive, |
| 110 bool recursive, | 110 bool recursive, |
| 111 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0; | 111 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0; |
| 112 | 112 |
| 113 // Requests deleting a directory. If |recursive| is passed and the entry is |
| 114 // a directory, then all contents of it (recursively) will be deleted too. |
| 115 virtual void DeleteEntry( |
| 116 const base::FilePath& entry_path, |
| 117 bool recursive, |
| 118 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0; |
| 119 |
| 113 // Returns a provided file system info for this file system. | 120 // Returns a provided file system info for this file system. |
| 114 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0; | 121 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0; |
| 115 | 122 |
| 116 // Returns a request manager for the file system. | 123 // Returns a request manager for the file system. |
| 117 virtual RequestManager* GetRequestManager() = 0; | 124 virtual RequestManager* GetRequestManager() = 0; |
| 118 | 125 |
| 119 // Returns a weak pointer to this object. | 126 // Returns a weak pointer to this object. |
| 120 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0; | 127 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0; |
| 121 }; | 128 }; |
| 122 | 129 |
| 123 } // namespace file_system_provider | 130 } // namespace file_system_provider |
| 124 } // namespace chromeos | 131 } // namespace chromeos |
| 125 | 132 |
| 126 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT
ERFACE_H_ | 133 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT
ERFACE_H_ |
| OLD | NEW |