Commit 099a02d6 authored by Marc Treib's avatar Marc Treib Committed by Commit Bot

Add TODOs to remove legacy invalidations implementation

The old (Tango-based) implementation of invalidations has been (mostly)
replaced by a new (FCM-based) one. The old one can not quite be deleted
yet, so this CL marks all the old classes/files with a TODO for removal.
It also removes a few unnecessary includes of the to-be-removed files.

Bug: 1029481
Change-Id: Ic10da302ba20731487fc4784971c923bec07a88d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1943177
Auto-Submit: Marc Treib <treib@chromium.org>
Reviewed-by: default avatarTim Schumann <tschumann@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#720194}
parent 2c0aeb21
...@@ -22,6 +22,8 @@ class ObjectIdInvalidationMap; ...@@ -22,6 +22,8 @@ class ObjectIdInvalidationMap;
// keep track of registered handlers and which object ID registrations are // keep track of registered handlers and which object ID registrations are
// associated with which handlers, so implementors can just reuse the logic // associated with which handlers, so implementors can just reuse the logic
// here to dispatch invalidations and other interesting notifications. // here to dispatch invalidations and other interesting notifications.
// TODO(crbug.com/1029481): Part of the legacy implementation of invalidations,
// scheduled for deletion.
class INVALIDATION_EXPORT DeprecatedInvalidatorRegistrar { class INVALIDATION_EXPORT DeprecatedInvalidatorRegistrar {
public: public:
DeprecatedInvalidatorRegistrar(); DeprecatedInvalidatorRegistrar();
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include "components/invalidation/impl/fake_invalidation_state_tracker.h" #include "components/invalidation/impl/fake_invalidation_state_tracker.h"
#include "components/invalidation/impl/fcm_invalidation_listener.h" #include "components/invalidation/impl/fcm_invalidation_listener.h"
#include "components/invalidation/impl/per_user_topic_registration_manager.h" #include "components/invalidation/impl/per_user_topic_registration_manager.h"
#include "components/invalidation/impl/push_client_channel.h"
#include "components/invalidation/impl/unacked_invalidation_set_test_util.h" #include "components/invalidation/impl/unacked_invalidation_set_test_util.h"
#include "components/invalidation/public/invalidation_util.h" #include "components/invalidation/public/invalidation_util.h"
#include "components/invalidation/public/invalidator_state.h" #include "components/invalidation/public/invalidator_state.h"
......
...@@ -22,11 +22,8 @@ ...@@ -22,11 +22,8 @@
#include "components/invalidation/impl/fcm_invalidation_listener.h" #include "components/invalidation/impl/fcm_invalidation_listener.h"
#include "components/invalidation/impl/fcm_network_handler.h" #include "components/invalidation/impl/fcm_network_handler.h"
#include "components/invalidation/impl/fcm_sync_network_channel.h" #include "components/invalidation/impl/fcm_sync_network_channel.h"
#include "components/invalidation/impl/gcm_invalidation_bridge.h"
#include "components/invalidation/impl/invalidation_prefs.h" #include "components/invalidation/impl/invalidation_prefs.h"
#include "components/invalidation/impl/invalidation_service_test_template.h" #include "components/invalidation/impl/invalidation_service_test_template.h"
#include "components/invalidation/impl/invalidation_state_tracker.h"
#include "components/invalidation/impl/invalidator.h"
#include "components/invalidation/impl/profile_identity_provider.h" #include "components/invalidation/impl/profile_identity_provider.h"
#include "components/invalidation/public/topic_invalidation_map.h" #include "components/invalidation/public/topic_invalidation_map.h"
#include "components/prefs/pref_registry_simple.h" #include "components/prefs/pref_registry_simple.h"
......
...@@ -35,6 +35,8 @@ class IdentityProvider; ...@@ -35,6 +35,8 @@ class IdentityProvider;
// Core lives on IO thread. Core implements GCMNetworkChannelDelegate and posts // Core lives on IO thread. Core implements GCMNetworkChannelDelegate and posts
// all function calls to GCMInvalidationBridge which does actual work to perform // all function calls to GCMInvalidationBridge which does actual work to perform
// them. // them.
// TODO(crbug.com/1029481): Part of the legacy implementation of invalidations,
// scheduled for deletion.
class GCMInvalidationBridge : public gcm::GCMAppHandler, class GCMInvalidationBridge : public gcm::GCMAppHandler,
public gcm::GCMConnectionObserver { public gcm::GCMConnectionObserver {
public: public:
......
...@@ -50,6 +50,8 @@ struct GCMNetworkChannelDiagnostic { ...@@ -50,6 +50,8 @@ struct GCMNetworkChannelDiagnostic {
// GCMNetworkChannel is an implementation of SyncNetworkChannel that routes // GCMNetworkChannel is an implementation of SyncNetworkChannel that routes
// messages through GCMService. // messages through GCMService.
// TODO(crbug.com/1029481): Part of the legacy implementation of invalidations,
// scheduled for deletion.
class INVALIDATION_EXPORT GCMNetworkChannel class INVALIDATION_EXPORT GCMNetworkChannel
: public SyncNetworkChannel, : public SyncNetworkChannel,
public network::NetworkConnectionTracker::NetworkConnectionObserver { public network::NetworkConnectionTracker::NetworkConnectionObserver {
......
...@@ -22,6 +22,8 @@ namespace syncer { ...@@ -22,6 +22,8 @@ namespace syncer {
// in HTTP message to server. // in HTTP message to server.
// GCMNetworkChannel lives on IO thread therefore calls will be made on IO // GCMNetworkChannel lives on IO thread therefore calls will be made on IO
// thread and callbacks should be invoked there as well. // thread and callbacks should be invoked there as well.
// TODO(crbug.com/1029481): Part of the legacy implementation of invalidations,
// scheduled for deletion.
class GCMNetworkChannelDelegate { class GCMNetworkChannelDelegate {
public: public:
typedef base::Callback<void(const GoogleServiceAuthError& error, typedef base::Callback<void(const GoogleServiceAuthError& error,
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
namespace syncer { namespace syncer {
// Handlers registration and message recieving events. // Handlers registration and message receiving events.
class InvalidationListener { class InvalidationListener {
public: public:
virtual ~InvalidationListener() {} virtual ~InvalidationListener() {}
......
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
namespace syncer { namespace syncer {
// This class must live on the IO thread. // This class must live on the IO thread.
// TODO(crbug.com/1029481): Part of the legacy implementation of invalidations,
// scheduled for deletion.
class INVALIDATION_EXPORT InvalidationNotifier class INVALIDATION_EXPORT InvalidationNotifier
: public Invalidator, : public Invalidator,
public SyncInvalidationListener::Delegate { public SyncInvalidationListener::Delegate {
......
...@@ -26,6 +26,8 @@ class InvalidationLogger; ...@@ -26,6 +26,8 @@ class InvalidationLogger;
// This InvalidationService is used to deliver invalidations on Android. The // This InvalidationService is used to deliver invalidations on Android. The
// Android operating system has its own mechanisms for delivering invalidations. // Android operating system has its own mechanisms for delivering invalidations.
// TODO(crbug.com/1029481): Part of the legacy implementation of invalidations,
// scheduled for deletion.
class InvalidationServiceAndroid : public InvalidationService { class InvalidationServiceAndroid : public InvalidationService {
public: public:
explicit InvalidationServiceAndroid(); explicit InvalidationServiceAndroid();
......
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
namespace syncer { namespace syncer {
// TODO(crbug.com/1029481): Part of the legacy implementation of invalidations,
// scheduled for deletion.
class INVALIDATION_EXPORT InvalidationStateTracker { class INVALIDATION_EXPORT InvalidationStateTracker {
public: public:
InvalidationStateTracker(); InvalidationStateTracker();
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
namespace syncer { namespace syncer {
class InvalidationHandler; class InvalidationHandler;
// TODO(crbug.com/1029481): Part of the legacy implementation of invalidations,
// scheduled for deletion.
class INVALIDATION_EXPORT Invalidator { class INVALIDATION_EXPORT Invalidator {
public: public:
Invalidator(); Invalidator();
......
...@@ -22,6 +22,8 @@ namespace invalidation { ...@@ -22,6 +22,8 @@ namespace invalidation {
// Wraps PrefService in an InvalidationStateTracker to allow SyncNotifiers // Wraps PrefService in an InvalidationStateTracker to allow SyncNotifiers
// to use PrefService as persistence for invalidation state. It is not thread // to use PrefService as persistence for invalidation state. It is not thread
// safe, and lives on the UI thread. // safe, and lives on the UI thread.
// TODO(crbug.com/1029481): Part of the legacy implementation of invalidations,
// scheduled for deletion.
class InvalidatorStorage : public syncer::InvalidationStateTracker { class InvalidatorStorage : public syncer::InvalidationStateTracker {
public: public:
// |pref_service| may not be NULL and must outlive |this|. // |pref_service| may not be NULL and must outlive |this|.
......
...@@ -42,6 +42,8 @@ class GCMNetworkChannelDelegate; ...@@ -42,6 +42,8 @@ class GCMNetworkChannelDelegate;
using NetworkChannelCreator = using NetworkChannelCreator =
base::Callback<std::unique_ptr<SyncNetworkChannel>(void)>; base::Callback<std::unique_ptr<SyncNetworkChannel>(void)>;
// TODO(crbug.com/1029481): Part of the legacy implementation of invalidations,
// scheduled for deletion.
class INVALIDATION_EXPORT NonBlockingInvalidator class INVALIDATION_EXPORT NonBlockingInvalidator
: public Invalidator, : public Invalidator,
public InvalidationStateTracker { public InvalidationStateTracker {
......
...@@ -24,6 +24,8 @@ namespace syncer { ...@@ -24,6 +24,8 @@ namespace syncer {
// A PushClientChannel is an implementation of NetworkChannel that // A PushClientChannel is an implementation of NetworkChannel that
// routes messages through a PushClient. // routes messages through a PushClient.
// TODO(crbug.com/1029481): Part of the legacy implementation of invalidations,
// scheduled for deletion.
class INVALIDATION_EXPORT PushClientChannel class INVALIDATION_EXPORT PushClientChannel
: public SyncNetworkChannel, : public SyncNetworkChannel,
public notifier::PushClientObserver { public notifier::PushClientObserver {
......
...@@ -33,6 +33,8 @@ using ::invalidation::InvalidationListener; ...@@ -33,6 +33,8 @@ using ::invalidation::InvalidationListener;
// implementations include the syncer thread (both versions) and XMPP // implementations include the syncer thread (both versions) and XMPP
// retries. The most sophisticated one is URLRequestThrottler; making // retries. The most sophisticated one is URLRequestThrottler; making
// that generic should work for everyone. // that generic should work for everyone.
// TODO(crbug.com/1029481): Part of the legacy implementation of invalidations,
// scheduled for deletion.
class INVALIDATION_EXPORT RegistrationManager { class INVALIDATION_EXPORT RegistrationManager {
public: public:
// Constants for exponential backoff (used by tests). // Constants for exponential backoff (used by tests).
......
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
namespace syncer { namespace syncer {
// TODO(crbug.com/1029481): Part of the legacy implementation of invalidations,
// scheduled for deletion.
class INVALIDATION_EXPORT StateWriter { class INVALIDATION_EXPORT StateWriter {
public: public:
virtual ~StateWriter() {} virtual ~StateWriter() {}
......
...@@ -32,6 +32,8 @@ class RegistrationManager; ...@@ -32,6 +32,8 @@ class RegistrationManager;
// SyncInvalidationListener is not thread-safe and lives on the sync // SyncInvalidationListener is not thread-safe and lives on the sync
// thread. // thread.
// TODO(crbug.com/1029481): Part of the legacy implementation of invalidations,
// scheduled for deletion.
class INVALIDATION_EXPORT SyncInvalidationListener class INVALIDATION_EXPORT SyncInvalidationListener
: public invalidation::InvalidationListener, : public invalidation::InvalidationListener,
public StateWriter, public StateWriter,
......
...@@ -31,6 +31,9 @@ class NetworkConnectionTracker; ...@@ -31,6 +31,9 @@ class NetworkConnectionTracker;
class SharedURLLoaderFactoryInfo; class SharedURLLoaderFactoryInfo;
} // namespace network } // namespace network
// TODO(crbug.com/1029481): Part of the legacy implementation of invalidations,
// scheduled for deletion.
namespace syncer { namespace syncer {
class GCMNetworkChannelDelegate; class GCMNetworkChannelDelegate;
......
...@@ -44,6 +44,8 @@ class GCMInvalidationBridge; ...@@ -44,6 +44,8 @@ class GCMInvalidationBridge;
// This InvalidationService wraps the C++ Invalidation Client (TICL) library. // This InvalidationService wraps the C++ Invalidation Client (TICL) library.
// It provides invalidations for desktop platforms (Win, Mac, Linux). // It provides invalidations for desktop platforms (Win, Mac, Linux).
// TODO(crbug.com/1029481): Part of the legacy implementation of invalidations,
// scheduled for deletion.
class TiclInvalidationService : public InvalidationService, class TiclInvalidationService : public InvalidationService,
public IdentityProvider::Observer, public IdentityProvider::Observer,
public syncer::InvalidationHandler { public syncer::InvalidationHandler {
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "build/build_config.h" #include "build/build_config.h"
#include "components/invalidation/impl/invalidation_logger.h" #include "components/invalidation/impl/invalidation_logger.h"
#include "components/invalidation/impl/invalidation_switches.h" #include "components/invalidation/impl/invalidation_switches.h"
#include "components/invalidation/impl/invalidator_storage.h"
#include "components/invalidation/impl/profile_invalidation_provider.h" #include "components/invalidation/impl/profile_invalidation_provider.h"
#include "components/invalidation/public/invalidation_service.h" #include "components/invalidation/public/invalidation_service.h"
#include "components/invalidation/public/invalidator_state.h" #include "components/invalidation/public/invalidator_state.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment