// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SYNC_INVALIDATIONS_SYNC_INVALIDATIONS_SERVICE_H_ #define COMPONENTS_SYNC_INVALIDATIONS_SYNC_INVALIDATIONS_SERVICE_H_ #include <optional> #include <string> #include "base/functional/callback.h" #include "components/keyed_service/core/keyed_service.h" #include "components/sync/base/data_type.h" namespace syncer { class FCMRegistrationTokenObserver; class InvalidationsListener; class InterestedDataTypesHandler; // Service which is used to register with FCM. It is used to obtain an FCM token // which is used to send invalidations from the server. The service also // provides incoming invalidations handling and an interface to subscribe to // invalidations. To subscribe for invalidations a new InvalidationsListener // should be added. class SyncInvalidationsService : public KeyedService { … }; } // namespace syncer #endif // COMPONENTS_SYNC_INVALIDATIONS_SYNC_INVALIDATIONS_SERVICE_H_