| 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_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 storage::WatcherManager::ChangeType change_type, | 163 storage::WatcherManager::ChangeType change_type, |
| 164 scoped_ptr<ProvidedFileSystemObserver::Changes> changes, | 164 scoped_ptr<ProvidedFileSystemObserver::Changes> changes, |
| 165 const std::string& tag, | 165 const std::string& tag, |
| 166 const storage::AsyncFileUtil::StatusCallback& callback) override; | 166 const storage::AsyncFileUtil::StatusCallback& callback) override; |
| 167 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() override; | 167 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() override; |
| 168 | 168 |
| 169 private: | 169 private: |
| 170 // Aborts an operation executed with a request id equal to | 170 // Aborts an operation executed with a request id equal to |
| 171 // |operation_request_id|. The request is removed immediately on the C++ side | 171 // |operation_request_id|. The request is removed immediately on the C++ side |
| 172 // despite being handled by the providing extension or not. | 172 // despite being handled by the providing extension or not. |
| 173 void Abort(int operation_request_id, | 173 void Abort(int operation_request_id); |
| 174 const storage::AsyncFileUtil::StatusCallback& callback); | |
| 175 | 174 |
| 176 // Called when adding a watcher is completed with either success or en error. | 175 // Called when adding a watcher is completed with either success or en error. |
| 177 void OnAddWatcherCompleted( | 176 void OnAddWatcherCompleted( |
| 178 const base::FilePath& entry_path, | 177 const base::FilePath& entry_path, |
| 179 bool recursive, | 178 bool recursive, |
| 180 const Subscriber& subscriber, | 179 const Subscriber& subscriber, |
| 181 const storage::AsyncFileUtil::StatusCallback& callback, | 180 const storage::AsyncFileUtil::StatusCallback& callback, |
| 182 base::File::Error result); | 181 base::File::Error result); |
| 183 | 182 |
| 184 // Called when all observers finished handling the change notification. It | 183 // Called when all observers finished handling the change notification. It |
| (...skipping 15 matching lines...) Expand all Loading... |
| 200 ObserverList<ProvidedFileSystemObserver> observers_; | 199 ObserverList<ProvidedFileSystemObserver> observers_; |
| 201 | 200 |
| 202 base::WeakPtrFactory<ProvidedFileSystem> weak_ptr_factory_; | 201 base::WeakPtrFactory<ProvidedFileSystem> weak_ptr_factory_; |
| 203 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem); | 202 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem); |
| 204 }; | 203 }; |
| 205 | 204 |
| 206 } // namespace file_system_provider | 205 } // namespace file_system_provider |
| 207 } // namespace chromeos | 206 } // namespace chromeos |
| 208 | 207 |
| 209 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ | 208 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ |
| OLD | NEW |