Remove syncer::IncomingInvalidationSource
Since we separated local and remote invalidations in r179546, we no
longer need to differentiate between the two sources with an enum. The
IncomingInvalidationSource is always REMOTE_INVALIDATION.
This commit removes the IncomingInvalidationSource enum and the
'source' parameter that was part of the invalidator callback API. The
callees can now safely assume that all invalidations have a 'remote'
source.
BUG=124143
Review URL: https://chromiumcodereview.appspot.com/12114012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180213 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/sync/notifier/invalidation_handler.h b/sync/notifier/invalidation_handler.h
index 057c37b..be85116 100644
--- a/sync/notifier/invalidation_handler.h
+++ b/sync/notifier/invalidation_handler.h
@@ -11,13 +11,6 @@
namespace syncer {
-enum IncomingInvalidationSource {
- // The server is notifying us that one or more objects have stale data.
- REMOTE_INVALIDATION,
- // Something locally is requesting an optimistic refresh of its data.
- LOCAL_INVALIDATION,
-};
-
class SYNC_EXPORT InvalidationHandler {
public:
// Called when the invalidator state changes.
@@ -27,8 +20,7 @@
// |id_state_map| and the source is in |source|. Note that this may be
// called regardless of the current invalidator state.
virtual void OnIncomingInvalidation(
- const ObjectIdInvalidationMap& invalidation_map,
- IncomingInvalidationSource source) = 0;
+ const ObjectIdInvalidationMap& invalidation_map) = 0;
protected:
virtual ~InvalidationHandler() {}