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

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

Issue 1088883002: Add events for configuring and adding new providers to FSP API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 5 years, 8 months 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // watched anymore. On success, returns base::File::FILE_OK. 211 // watched anymore. On success, returns base::File::FILE_OK.
212 // TODO(mtomasz): Replace [entry_path, recursive] with a watcher id. 212 // TODO(mtomasz): Replace [entry_path, recursive] with a watcher id.
213 virtual void Notify( 213 virtual void Notify(
214 const base::FilePath& entry_path, 214 const base::FilePath& entry_path,
215 bool recursive, 215 bool recursive,
216 storage::WatcherManager::ChangeType change_type, 216 storage::WatcherManager::ChangeType change_type,
217 scoped_ptr<ProvidedFileSystemObserver::Changes> changes, 217 scoped_ptr<ProvidedFileSystemObserver::Changes> changes,
218 const std::string& tag, 218 const std::string& tag,
219 const storage::AsyncFileUtil::StatusCallback& callback) = 0; 219 const storage::AsyncFileUtil::StatusCallback& callback) = 0;
220 220
221 // Requests showing UI for configuring the file system by user. Once the
222 // configuration process is completed, base::File::FILE_OK or an error code is
223 // returned via the |callback|.
224 virtual void Configure(
225 const storage::AsyncFileUtil::StatusCallback& callback) = 0;
226
221 // Returns a provided file system info for this file system. 227 // Returns a provided file system info for this file system.
222 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0; 228 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0;
223 229
224 // Returns a mutable list of watchers. 230 // Returns a mutable list of watchers.
225 virtual Watchers* GetWatchers() = 0; 231 virtual Watchers* GetWatchers() = 0;
226 232
227 // Returns a list of opened files. 233 // Returns a list of opened files.
228 virtual const OpenedFiles& GetOpenedFiles() const = 0; 234 virtual const OpenedFiles& GetOpenedFiles() const = 0;
229 235
230 // Returns a request manager for the file system. 236 // Returns a request manager for the file system.
231 virtual RequestManager* GetRequestManager() = 0; 237 virtual RequestManager* GetRequestManager() = 0;
232 238
233 // Adds an observer on the file system. 239 // Adds an observer on the file system.
234 virtual void AddObserver(ProvidedFileSystemObserver* observer) = 0; 240 virtual void AddObserver(ProvidedFileSystemObserver* observer) = 0;
235 241
236 // Removes an observer. 242 // Removes an observer.
237 virtual void RemoveObserver(ProvidedFileSystemObserver* observer) = 0; 243 virtual void RemoveObserver(ProvidedFileSystemObserver* observer) = 0;
238 244
239 // Returns a weak pointer to this object. 245 // Returns a weak pointer to this object.
240 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0; 246 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0;
241 }; 247 };
242 248
243 } // namespace file_system_provider 249 } // namespace file_system_provider
244 } // namespace chromeos 250 } // namespace chromeos
245 251
246 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_ 252 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698