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

Unified Diff: chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h

Issue 679573002: [fsp] Separate recursive and non-recursive watchers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h
diff --git a/chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h b/chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h
index 109d04cedc9e0b5c5a8a153d351bc7d54584f96e..573991d9a8450aa8232b54e69e875e0489968230 100644
--- a/chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h
+++ b/chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h
@@ -57,7 +57,7 @@ struct EntryMetadata {
// fails synchronously.
class ProvidedFileSystemInterface {
public:
- struct ChildChange;
+ struct Change;
// Mode of opening a file. Used by OpenFile().
enum OpenFileMode { OPEN_FILE_MODE_READ, OPEN_FILE_MODE_WRITE };
@@ -185,16 +185,17 @@ class ProvidedFileSystemInterface {
// internal list, hence the operation is not abortable.
virtual void UnobserveEntry(
const base::FilePath& entry_path,
+ bool recursive,
const storage::AsyncFileUtil::StatusCallback& callback) = 0;
// Notifies about changes to the observed entries within the file system.
// Invoked by the file system implementation. Returns false if the
// notification arguments are malformed or the entry is not observed anymore.
- virtual bool Notify(
- const base::FilePath& observed_path,
- ProvidedFileSystemObserver::ChangeType change_type,
- scoped_ptr<ProvidedFileSystemObserver::ChildChanges> child_changes,
- const std::string& tag) = 0;
+ virtual bool Notify(const base::FilePath& observed_path,
+ bool recursive,
+ ProvidedFileSystemObserver::ChangeType change_type,
+ scoped_ptr<ProvidedFileSystemObserver::Changes> changes,
+ const std::string& tag) = 0;
// Returns a provided file system info for this file system.
virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0;

Powered by Google App Engine
This is Rietveld 408576698