auth_service_observer.h 721 B

1234567891011121314151617181920212223
  1. // Copyright (c) 2012 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 GOOGLE_APIS_COMMON_AUTH_SERVICE_OBSERVER_H_
  5. #define GOOGLE_APIS_COMMON_AUTH_SERVICE_OBSERVER_H_
  6. namespace google_apis {
  7. // Interface for classes that need to observe events from AuthService.
  8. // All events are notified on UI thread.
  9. class AuthServiceObserver {
  10. public:
  11. // Triggered when a new OAuth2 refresh token is received from AuthService.
  12. virtual void OnOAuth2RefreshTokenChanged() = 0;
  13. protected:
  14. virtual ~AuthServiceObserver() = default;
  15. };
  16. } // namespace google_apis
  17. #endif // GOOGLE_APIS_COMMON_AUTH_SERVICE_OBSERVER_H_