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

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

Issue 674413002: [fsp] Rename ObserveEntry with AddWatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. 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/service.h
diff --git a/chrome/browser/chromeos/file_system_provider/service.h b/chrome/browser/chromeos/file_system_provider/service.h
index 2c4f7913ba37623082572beae7d08de58359e2ee..62dc06f49895d6390dafc0079a15b3bbc2ed0646 100644
--- a/chrome/browser/chromeos/file_system_provider/service.h
+++ b/chrome/browser/chromeos/file_system_provider/service.h
@@ -17,10 +17,10 @@
#include "base/observer_list.h"
#include "base/threading/thread_checker.h"
#include "base/values.h"
-#include "chrome/browser/chromeos/file_system_provider/observed_entry.h"
#include "chrome/browser/chromeos/file_system_provider/observer.h"
#include "chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h"
#include "chrome/browser/chromeos/file_system_provider/provided_file_system_observer.h"
+#include "chrome/browser/chromeos/file_system_provider/watcher.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/api/file_system_provider.h"
#include "components/keyed_service/core/keyed_service.h"
@@ -129,18 +129,18 @@ class Service : public KeyedService,
const extensions::Extension* extension) override;
// ProvidedFileSystemInterface::Observer overrides.
- virtual void OnObservedEntryChanged(
+ virtual void OnWatcherChanged(
const ProvidedFileSystemInfo& file_system_info,
- const ObservedEntry& observed_entry,
+ const Watcher& watcher,
ProvidedFileSystemObserver::ChangeType change_type,
const ProvidedFileSystemObserver::Changes& changes,
const base::Closure& callback) override;
- virtual void OnObservedEntryTagUpdated(
+ virtual void OnWatcherTagUpdated(
const ProvidedFileSystemInfo& file_system_info,
- const ObservedEntry& observed_entry) override;
- virtual void OnObservedEntryListChanged(
+ const Watcher& watcher) override;
+ virtual void OnWatcherListChanged(
const ProvidedFileSystemInfo& file_system_info,
- const ObservedEntries& observed_entries) override;
+ const Watchers& watchers) override;
private:
FRIEND_TEST_ALL_PREFIXES(FileSystemProviderServiceTest, RememberFileSystem);
@@ -161,7 +161,7 @@ class Service : public KeyedService,
// Remembers the file system in preferences, in order to remount after a
// reboot.
void RememberFileSystem(const ProvidedFileSystemInfo& file_system_info,
- const ObservedEntries& observed_entries);
+ const Watchers& watchers);
// Removes the file system from preferences, so it is not remounmted anymore
// after a reboot.

Powered by Google App Engine
This is Rietveld 408576698