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

Unified Diff: chrome/browser/chromeos/file_system_provider/provided_file_system.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.h
diff --git a/chrome/browser/chromeos/file_system_provider/provided_file_system.h b/chrome/browser/chromeos/file_system_provider/provided_file_system.h
index 6c651fc0d697dc47441e151f2edb2fd2ce162f67..8e5d11e7bbb543b38e2c8789ae1f7fca35a545f7 100644
--- a/chrome/browser/chromeos/file_system_provider/provided_file_system.h
+++ b/chrome/browser/chromeos/file_system_provider/provided_file_system.h
@@ -142,17 +142,18 @@ class ProvidedFileSystem : public ProvidedFileSystemInterface {
const storage::AsyncFileUtil::StatusCallback& callback) override;
virtual void UnobserveEntry(
const base::FilePath& entry_path,
+ bool recursive,
const storage::AsyncFileUtil::StatusCallback& callback) override;
virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const override;
virtual RequestManager* GetRequestManager() override;
virtual ObservedEntries* GetObservedEntries() override;
virtual void AddObserver(ProvidedFileSystemObserver* observer) override;
virtual void RemoveObserver(ProvidedFileSystemObserver* observer) override;
- virtual bool Notify(
- const base::FilePath& observed_path,
- ProvidedFileSystemObserver::ChangeType change_type,
- scoped_ptr<ProvidedFileSystemObserver::ChildChanges> child_changes,
- const std::string& tag) override;
+ virtual bool Notify(const base::FilePath& observed_path,
+ bool recursive,
+ ProvidedFileSystemObserver::ChangeType change_type,
+ scoped_ptr<ProvidedFileSystemObserver::Changes> changes,
+ const std::string& tag) override;
virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() override;
private:
@@ -173,8 +174,9 @@ class ProvidedFileSystem : public ProvidedFileSystemInterface {
// updates the tag from |last_tag| to |tag| for the entry at |observed_path|.
void OnNotifyCompleted(
const base::FilePath& observed_path,
+ bool recursive,
ProvidedFileSystemObserver::ChangeType change_type,
- scoped_ptr<ProvidedFileSystemObserver::ChildChanges> child_changes,
+ scoped_ptr<ProvidedFileSystemObserver::Changes> changes,
const std::string& last_tag,
const std::string& tag);

Powered by Google App Engine
This is Rietveld 408576698