blob: 3838c8bfc6b39a1d5805ba157cc71feb9e7b7fe1 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GOOGLE_APIS_COMMON_AUTH_SERVICE_OBSERVER_H_
#define GOOGLE_APIS_COMMON_AUTH_SERVICE_OBSERVER_H_
namespace google_apis {
// Interface for classes that need to observe events from AuthService.
// All events are notified on UI thread.
class AuthServiceObserver {
public:
// Triggered when a new OAuth2 refresh token is received from AuthService.
virtual void OnOAuth2RefreshTokenChanged() = 0;
protected:
virtual ~AuthServiceObserver() = default;
};
} // namespace google_apis
#endif // GOOGLE_APIS_COMMON_AUTH_SERVICE_OBSERVER_H_