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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 const base::FilePath& file_path, | 115 const base::FilePath& file_path, |
116 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0; | 116 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0; |
117 | 117 |
118 // Requests deleting a directory. If |recursive| is passed and the entry is | 118 // Requests deleting a directory. If |recursive| is passed and the entry is |
119 // a directory, then all contents of it (recursively) will be deleted too. | 119 // a directory, then all contents of it (recursively) will be deleted too. |
120 virtual void DeleteEntry( | 120 virtual void DeleteEntry( |
121 const base::FilePath& entry_path, | 121 const base::FilePath& entry_path, |
122 bool recursive, | 122 bool recursive, |
123 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0; | 123 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0; |
124 | 124 |
| 125 // Requests copying an entry (recursively in case of a directory) within the |
| 126 // same file system. |
| 127 virtual void CopyEntry( |
| 128 const base::FilePath& source_path, |
| 129 const base::FilePath& target_path, |
| 130 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0; |
| 131 |
125 // Returns a provided file system info for this file system. | 132 // Returns a provided file system info for this file system. |
126 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0; | 133 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0; |
127 | 134 |
128 // Returns a request manager for the file system. | 135 // Returns a request manager for the file system. |
129 virtual RequestManager* GetRequestManager() = 0; | 136 virtual RequestManager* GetRequestManager() = 0; |
130 | 137 |
131 // Returns a weak pointer to this object. | 138 // Returns a weak pointer to this object. |
132 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0; | 139 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0; |
133 }; | 140 }; |
134 | 141 |
135 } // namespace file_system_provider | 142 } // namespace file_system_provider |
136 } // namespace chromeos | 143 } // namespace chromeos |
137 | 144 |
138 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT
ERFACE_H_ | 145 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT
ERFACE_H_ |
OLD | NEW |