| 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 virtual AbortCallback RequestUnmount( | 112 virtual AbortCallback RequestUnmount( |
| 113 const storage::AsyncFileUtil::StatusCallback& callback) = 0; | 113 const storage::AsyncFileUtil::StatusCallback& callback) = 0; |
| 114 | 114 |
| 115 // Requests metadata of the passed |entry_path|. It can be either a file | 115 // Requests metadata of the passed |entry_path|. It can be either a file |
| 116 // or a directory. All |fields| will be returned if supported. Note, that | 116 // or a directory. All |fields| will be returned if supported. Note, that |
| 117 // default fields are always returned. | 117 // default fields are always returned. |
| 118 virtual AbortCallback GetMetadata(const base::FilePath& entry_path, | 118 virtual AbortCallback GetMetadata(const base::FilePath& entry_path, |
| 119 MetadataFieldMask fields, | 119 MetadataFieldMask fields, |
| 120 const GetMetadataCallback& callback) = 0; | 120 const GetMetadataCallback& callback) = 0; |
| 121 | 121 |
| 122 // Requests list of actions for the passed |entry_path|. It can be either a | 122 // Requests list of actions for the passed list of entries at |entry_paths|. |
| 123 // file or a directory. | 123 // They can be either files or directories. |
| 124 virtual AbortCallback GetActions(const base::FilePath& entry_path, | 124 virtual AbortCallback GetActions( |
| 125 const GetActionsCallback& callback) = 0; | 125 const std::vector<base::FilePath>& entry_paths, |
| 126 const GetActionsCallback& callback) = 0; |
| 126 | 127 |
| 127 // Executes the |action_id| action on the entry at |entry_path|. | 128 // Executes the |action_id| action on the list of entries at |entry_paths|. |
| 128 virtual AbortCallback ExecuteAction( | 129 virtual AbortCallback ExecuteAction( |
| 129 const base::FilePath& entry_path, | 130 const std::vector<base::FilePath>& entry_paths, |
| 130 const std::string& action_id, | 131 const std::string& action_id, |
| 131 const storage::AsyncFileUtil::StatusCallback& callback) = 0; | 132 const storage::AsyncFileUtil::StatusCallback& callback) = 0; |
| 132 | 133 |
| 133 // Requests enumerating entries from the passed |directory_path|. The callback | 134 // Requests enumerating entries from the passed |directory_path|. The callback |
| 134 // can be called multiple times until |has_more| is set to false. | 135 // can be called multiple times until |has_more| is set to false. |
| 135 virtual AbortCallback ReadDirectory( | 136 virtual AbortCallback ReadDirectory( |
| 136 const base::FilePath& directory_path, | 137 const base::FilePath& directory_path, |
| 137 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) = 0; | 138 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) = 0; |
| 138 | 139 |
| 139 // Requests opening a file at |file_path|. If the file doesn't exist, then the | 140 // Requests opening a file at |file_path|. If the file doesn't exist, then the |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 virtual void RemoveObserver(ProvidedFileSystemObserver* observer) = 0; | 266 virtual void RemoveObserver(ProvidedFileSystemObserver* observer) = 0; |
| 266 | 267 |
| 267 // Returns a weak pointer to this object. | 268 // Returns a weak pointer to this object. |
| 268 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0; | 269 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0; |
| 269 }; | 270 }; |
| 270 | 271 |
| 271 } // namespace file_system_provider | 272 } // namespace file_system_provider |
| 272 } // namespace chromeos | 273 } // namespace chromeos |
| 273 | 274 |
| 274 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT
ERFACE_H_ | 275 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT
ERFACE_H_ |
| OLD | NEW |