fcm_registration_token_observer.h 721 B

123456789101112131415161718192021
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_SYNC_INVALIDATIONS_FCM_REGISTRATION_TOKEN_OBSERVER_H_
  5. #define COMPONENTS_SYNC_INVALIDATIONS_FCM_REGISTRATION_TOKEN_OBSERVER_H_
  6. #include "base/observer_list_types.h"
  7. namespace syncer {
  8. // An interface to observe changes on FCM registration token.
  9. class FCMRegistrationTokenObserver : public base::CheckedObserver {
  10. public:
  11. // Called on each change of FCM registration token.
  12. virtual void OnFCMRegistrationTokenChanged() = 0;
  13. };
  14. } // namespace syncer
  15. #endif // COMPONENTS_SYNC_INVALIDATIONS_FCM_REGISTRATION_TOKEN_OBSERVER_H_