Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h

Issue 703123003: [fsp] Pass more detailed errors to the providing extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a bug. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 // Requests removing a watcher, which is immediately deleted from the internal 192 // Requests removing a watcher, which is immediately deleted from the internal
193 // list, hence the operation is not abortable. 193 // list, hence the operation is not abortable.
194 virtual void RemoveWatcher( 194 virtual void RemoveWatcher(
195 const GURL& origin, 195 const GURL& origin,
196 const base::FilePath& entry_path, 196 const base::FilePath& entry_path,
197 bool recursive, 197 bool recursive,
198 const storage::AsyncFileUtil::StatusCallback& callback) = 0; 198 const storage::AsyncFileUtil::StatusCallback& callback) = 0;
199 199
200 // Notifies about changes related to the watcher within the file system. 200 // Notifies about changes related to the watcher within the file system.
201 // Invoked by the file system implementation. Returns false if the 201 // Invoked by the file system implementation. Returns an error code via the
202 // notification arguments are malformed or the entry is not watched anymore. 202 // callback if the notification arguments are malformed or the entry is not
203 // watched anymore. On success, returns base::File::FILE_OK.
203 // TODO(mtomasz): Replace [entry_path, recursive] with a watcher id. 204 // TODO(mtomasz): Replace [entry_path, recursive] with a watcher id.
204 virtual bool Notify(const base::FilePath& entry_path, 205 virtual void Notify(
205 bool recursive, 206 const base::FilePath& entry_path,
206 storage::WatcherManager::ChangeType change_type, 207 bool recursive,
207 scoped_ptr<ProvidedFileSystemObserver::Changes> changes, 208 storage::WatcherManager::ChangeType change_type,
208 const std::string& tag) = 0; 209 scoped_ptr<ProvidedFileSystemObserver::Changes> changes,
210 const std::string& tag,
211 const storage::AsyncFileUtil::StatusCallback& callback) = 0;
209 212
210 // Returns a provided file system info for this file system. 213 // Returns a provided file system info for this file system.
211 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0; 214 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0;
212 215
213 // Returns a mutable list of watchers. 216 // Returns a mutable list of watchers.
214 virtual Watchers* GetWatchers() = 0; 217 virtual Watchers* GetWatchers() = 0;
215 218
216 // Returns a request manager for the file system. 219 // Returns a request manager for the file system.
217 virtual RequestManager* GetRequestManager() = 0; 220 virtual RequestManager* GetRequestManager() = 0;
218 221
219 // Adds an observer on the file system. 222 // Adds an observer on the file system.
220 virtual void AddObserver(ProvidedFileSystemObserver* observer) = 0; 223 virtual void AddObserver(ProvidedFileSystemObserver* observer) = 0;
221 224
222 // Removes an observer. 225 // Removes an observer.
223 virtual void RemoveObserver(ProvidedFileSystemObserver* observer) = 0; 226 virtual void RemoveObserver(ProvidedFileSystemObserver* observer) = 0;
224 227
225 // Returns a weak pointer to this object. 228 // Returns a weak pointer to this object.
226 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0; 229 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0;
227 }; 230 };
228 231
229 } // namespace file_system_provider 232 } // namespace file_system_provider
230 } // namespace chromeos 233 } // namespace chromeos
231 234
232 #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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698