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

Unified Diff: sync/notifier/sync_notifier.h

Issue 10702074: Refactor sync-specific parts out of SyncNotifier/SyncNotifierObserver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 8 years, 5 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: sync/notifier/sync_notifier.h
diff --git a/sync/notifier/sync_notifier.h b/sync/notifier/sync_notifier.h
index 24c59a018c4f8126ef6a7f0457cae941a6597a47..1cbabee56ef273667ece1978e098a45581043a59 100644
--- a/sync/notifier/sync_notifier.h
+++ b/sync/notifier/sync_notifier.h
@@ -21,8 +21,9 @@ class SyncNotifier {
SyncNotifier() {}
virtual ~SyncNotifier() {}
- virtual void AddObserver(SyncNotifierObserver* observer) = 0;
- virtual void RemoveObserver(SyncNotifierObserver* observer) = 0;
+ virtual void AddHandler(SyncNotifierObserver* observer) = 0;
+ virtual void RemoveHandler(SyncNotifierObserver* observer) = 0;
+ virtual void ReloadHandlers() = 0;
// SetUniqueId must be called once, before any call to
// UpdateCredentials. |unique_id| should be a non-empty globally
@@ -40,8 +41,6 @@ class SyncNotifier {
virtual void UpdateCredentials(
const std::string& email, const std::string& token) = 0;
- virtual void UpdateEnabledTypes(syncer::ModelTypeSet enabled_types) = 0;
-
// This is here only to support the old p2p notification implementation,
// which is still used by sync integration tests.
// TODO(akalin): Remove this once we move the integration tests off p2p

Powered by Google App Engine
This is Rietveld 408576698