| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 virtual void UnobserveEntry( | 200 virtual void UnobserveEntry( |
| 201 const base::FilePath& entry_path, | 201 const base::FilePath& entry_path, |
| 202 const storage::AsyncFileUtil::StatusCallback& callback) = 0; | 202 const storage::AsyncFileUtil::StatusCallback& callback) = 0; |
| 203 | 203 |
| 204 // Notifies about changes to the observed entries within the file system. | 204 // Notifies about changes to the observed entries within the file system. |
| 205 // Invoked by the file system implementation. Returns false if the | 205 // Invoked by the file system implementation. Returns false if the |
| 206 // notification arguments are malformed or the entry is not observed anymore. | 206 // notification arguments are malformed or the entry is not observed anymore. |
| 207 virtual bool Notify( | 207 virtual bool Notify( |
| 208 const base::FilePath& observed_path, | 208 const base::FilePath& observed_path, |
| 209 ProvidedFileSystemObserver::ChangeType change_type, | 209 ProvidedFileSystemObserver::ChangeType change_type, |
| 210 const ProvidedFileSystemObserver::ChildChanges& child_changes, | 210 scoped_ptr<ProvidedFileSystemObserver::ChildChanges> child_changes, |
| 211 const std::string& tag) = 0; | 211 const std::string& tag) = 0; |
| 212 | 212 |
| 213 // Returns a provided file system info for this file system. | 213 // Returns a provided file system info for this file system. |
| 214 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0; | 214 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0; |
| 215 | 215 |
| 216 // Returns a mutable list of observed entries. | 216 // Returns a mutable list of observed entries. |
| 217 virtual ObservedEntries* GetObservedEntries() = 0; | 217 virtual ObservedEntries* GetObservedEntries() = 0; |
| 218 | 218 |
| 219 // Returns a request manager for the file system. | 219 // Returns a request manager for the file system. |
| 220 virtual RequestManager* GetRequestManager() = 0; | 220 virtual RequestManager* GetRequestManager() = 0; |
| 221 | 221 |
| 222 // Adds an observer on the file system. | 222 // Adds an observer on the file system. |
| 223 virtual void AddObserver(ProvidedFileSystemObserver* observer) = 0; | 223 virtual void AddObserver(ProvidedFileSystemObserver* observer) = 0; |
| 224 | 224 |
| 225 // Removes an observer. | 225 // Removes an observer. |
| 226 virtual void RemoveObserver(ProvidedFileSystemObserver* observer) = 0; | 226 virtual void RemoveObserver(ProvidedFileSystemObserver* observer) = 0; |
| 227 | 227 |
| 228 // Returns a weak pointer to this object. | 228 // Returns a weak pointer to this object. |
| 229 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0; | 229 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0; |
| 230 }; | 230 }; |
| 231 | 231 |
| 232 } // namespace file_system_provider | 232 } // namespace file_system_provider |
| 233 } // namespace chromeos | 233 } // namespace chromeos |
| 234 | 234 |
| 235 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT
ERFACE_H_ | 235 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT
ERFACE_H_ |
| OLD | NEW |