Index: chrome/browser/sync/glue/bridged_invalidator.cc |
diff --git a/chrome/browser/sync/glue/bridged_sync_notifier.cc b/chrome/browser/sync/glue/bridged_invalidator.cc |
similarity index 62% |
rename from chrome/browser/sync/glue/bridged_sync_notifier.cc |
rename to chrome/browser/sync/glue/bridged_invalidator.cc |
index f7834188171a3a029dfcf4507babef66a70d580c..14ecfa80d0084e163163911e6312b925547f94fa 100644 |
--- a/chrome/browser/sync/glue/bridged_sync_notifier.cc |
+++ b/chrome/browser/sync/glue/bridged_invalidator.cc |
@@ -2,61 +2,61 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "chrome/browser/sync/glue/bridged_sync_notifier.h" |
+#include "chrome/browser/sync/glue/bridged_invalidator.h" |
#include "chrome/browser/sync/glue/chrome_sync_notification_bridge.h" |
namespace browser_sync { |
-BridgedSyncNotifier::BridgedSyncNotifier( |
+BridgedInvalidator::BridgedInvalidator( |
ChromeSyncNotificationBridge* bridge, |
- syncer::SyncNotifier* delegate) |
+ syncer::Invalidator* delegate) |
: bridge_(bridge), delegate_(delegate) { |
DCHECK(bridge_); |
} |
-BridgedSyncNotifier::~BridgedSyncNotifier() { |
+BridgedInvalidator::~BridgedInvalidator() { |
} |
-void BridgedSyncNotifier::RegisterHandler( |
- syncer::SyncNotifierObserver* handler) { |
+void BridgedInvalidator::RegisterHandler( |
+ syncer::InvalidationHandler* handler) { |
if (delegate_.get()) |
delegate_->RegisterHandler(handler); |
bridge_->RegisterHandler(handler); |
} |
-void BridgedSyncNotifier::UpdateRegisteredIds( |
- syncer::SyncNotifierObserver* handler, |
+void BridgedInvalidator::UpdateRegisteredIds( |
+ syncer::InvalidationHandler* handler, |
const syncer::ObjectIdSet& ids) { |
if (delegate_.get()) |
delegate_->UpdateRegisteredIds(handler, ids); |
bridge_->UpdateRegisteredIds(handler, ids); |
} |
-void BridgedSyncNotifier::UnregisterHandler( |
- syncer::SyncNotifierObserver* handler) { |
+void BridgedInvalidator::UnregisterHandler( |
+ syncer::InvalidationHandler* handler) { |
if (delegate_.get()) |
delegate_->UnregisterHandler(handler); |
bridge_->UnregisterHandler(handler); |
} |
-void BridgedSyncNotifier::SetUniqueId(const std::string& unique_id) { |
+void BridgedInvalidator::SetUniqueId(const std::string& unique_id) { |
if (delegate_.get()) |
delegate_->SetUniqueId(unique_id); |
} |
-void BridgedSyncNotifier::SetStateDeprecated(const std::string& state) { |
+void BridgedInvalidator::SetStateDeprecated(const std::string& state) { |
if (delegate_.get()) |
delegate_->SetStateDeprecated(state); |
} |
-void BridgedSyncNotifier::UpdateCredentials( |
+void BridgedInvalidator::UpdateCredentials( |
const std::string& email, const std::string& token) { |
if (delegate_.get()) |
delegate_->UpdateCredentials(email, token); |
} |
-void BridgedSyncNotifier::SendNotification( |
+void BridgedInvalidator::SendNotification( |
syncer::ModelTypeSet changed_types) { |
if (delegate_.get()) |
delegate_->SendNotification(changed_types); |