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

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

Issue 663713002: [fsp] Extract ObservedEntry and ObservedEntries to a separate file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Added missing files. 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_observer.h
diff --git a/chrome/browser/chromeos/file_system_provider/provided_file_system_observer.h b/chrome/browser/chromeos/file_system_provider/provided_file_system_observer.h
index 2e2541a00eed227ddedfbe125311b450911d74ad..c2239355ba489510645c3567939fc924ac9fdffa 100644
--- a/chrome/browser/chromeos/file_system_provider/provided_file_system_observer.h
+++ b/chrome/browser/chromeos/file_system_provider/provided_file_system_observer.h
@@ -10,6 +10,7 @@
#include "base/callback.h"
#include "base/files/file_path.h"
+#include "chrome/browser/chromeos/file_system_provider/observed_entry.h"
namespace chromeos {
namespace file_system_provider {
@@ -29,16 +30,6 @@ class ProvidedFileSystemObserver {
// Lust of child changes.
typedef std::vector<ChildChange> ChildChanges;
- // Represents an observed entry on the file system.
- struct ObservedEntry {
- ObservedEntry();
- ~ObservedEntry();
-
- base::FilePath entry_path;
- bool recursive;
- std::string last_tag;
- };
-
// Describes a change in an entry contained in an observed directory.
struct ChildChange {
ChildChange();
@@ -63,11 +54,13 @@ class ProvidedFileSystemObserver {
// Called when tag value is updated for the observed entry.
virtual void OnObservedEntryTagUpdated(
const ProvidedFileSystemInfo& file_system_info,
- const base::FilePath& observed_path) = 0;
+ const base::FilePath& observed_path,
+ const std::string& tag) = 0;
// Called when list of observed entries is changed.
virtual void OnObservedEntryListChanged(
- const ProvidedFileSystemInfo& file_system_info) = 0;
+ const ProvidedFileSystemInfo& file_system_info,
+ const ObservedEntries& observed_entries) = 0;
};
} // namespace file_system_provider

Powered by Google App Engine
This is Rietveld 408576698