Extension syncing: Introduce a NeedsSync pref
[chromium-blink-merge.git] / google_apis / drive / auth_service_observer.h
blob2fefbf20f3ce214ef2742b8515eed2ae955d1eeb
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.
5 #ifndef GOOGLE_APIS_DRIVE_AUTH_SERVICE_OBSERVER_H_
6 #define GOOGLE_APIS_DRIVE_AUTH_SERVICE_OBSERVER_H_
8 namespace google_apis {
10 // Interface for classes that need to observe events from AuthService.
11 // All events are notified on UI thread.
12 class AuthServiceObserver {
13 public:
14 // Triggered when a new OAuth2 refresh token is received from AuthService.
15 virtual void OnOAuth2RefreshTokenChanged() = 0;
17 protected:
18 virtual ~AuthServiceObserver() {}
21 } // namespace google_apis
23 #endif // GOOGLE_APIS_DRIVE_AUTH_SERVICE_OBSERVER_H_