| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef GOOGLE_APIS_GAIA_IDENTITY_PROVIDER_H_ | 5 #ifndef GOOGLE_APIS_GAIA_IDENTITY_PROVIDER_H_ |
| 6 #define GOOGLE_APIS_GAIA_IDENTITY_PROVIDER_H_ | 6 #define GOOGLE_APIS_GAIA_IDENTITY_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 protected: | 76 protected: |
| 77 IdentityProvider(); | 77 IdentityProvider(); |
| 78 | 78 |
| 79 // Fires an OnActiveAccountLogin notification. | 79 // Fires an OnActiveAccountLogin notification. |
| 80 void FireOnActiveAccountLogin(); | 80 void FireOnActiveAccountLogin(); |
| 81 | 81 |
| 82 // Fires an OnActiveAccountLogout notification. | 82 // Fires an OnActiveAccountLogout notification. |
| 83 void FireOnActiveAccountLogout(); | 83 void FireOnActiveAccountLogout(); |
| 84 | 84 |
| 85 private: | 85 private: |
| 86 ObserverList<Observer, true> observers_; | 86 base::ObserverList<Observer, true> observers_; |
| 87 ObserverList<OAuth2TokenService::Observer, true> token_service_observers_; | 87 base::ObserverList<OAuth2TokenService::Observer, true> |
| 88 token_service_observers_; |
| 88 int token_service_observer_count_; | 89 int token_service_observer_count_; |
| 89 | 90 |
| 90 DISALLOW_COPY_AND_ASSIGN(IdentityProvider); | 91 DISALLOW_COPY_AND_ASSIGN(IdentityProvider); |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 #endif // GOOGLE_APIS_GAIA_IDENTITY_PROVIDER_H_ | 94 #endif // GOOGLE_APIS_GAIA_IDENTITY_PROVIDER_H_ |
| OLD | NEW |