Chromium Code Reviews| Index: chrome/browser/sync/signin_manager.h |
| =================================================================== |
| --- chrome/browser/sync/signin_manager.h (revision 89672) |
| +++ chrome/browser/sync/signin_manager.h (working copy) |
| @@ -16,6 +16,8 @@ |
| #include "base/memory/scoped_ptr.h" |
| #include "chrome/common/net/gaia/gaia_auth_consumer.h" |
| #include "chrome/common/net/gaia/google_service_auth_error.h" |
| +#include "content/common/notification_observer.h" |
| +#include "content/common/notification_registrar.h" |
| class GaiaAuthFetcher; |
| class Profile; |
| @@ -33,7 +35,7 @@ |
| std::string password; |
| }; |
| -class SigninManager : public GaiaAuthConsumer { |
| +class SigninManager : public GaiaAuthConsumer , public NotificationObserver { |
| public: |
| SigninManager(); |
| virtual ~SigninManager(); |
| @@ -75,6 +77,11 @@ |
| virtual void OnGetUserInfoKeyNotFound(const std::string& key); |
| virtual void OnGetUserInfoFailure(const GoogleServiceAuthError& error); |
| + // NotificationObserver |
| + virtual void Observe(NotificationType type, |
| + const NotificationSource& source, |
| + const NotificationDetails& details); |
|
sky
2011/06/21 02:46:43
OVERRIDE
Roger Tawa OOO till Jul 10th
2011/06/21 03:21:13
Done.
|
| + |
| private: |
| Profile* profile_; |
| std::string username_; |
| @@ -87,6 +94,9 @@ |
| // Actual client login handler. |
| scoped_ptr<GaiaAuthFetcher> client_login_; |
| + |
| + // Register for notifications from the TokenService. |
| + NotificationRegistrar registrar_; |
| }; |
|
sky
2011/06/21 02:46:43
DISALLOW_COPY_AND_ASSIGN
Roger Tawa OOO till Jul 10th
2011/06/21 03:21:13
Done.
|
| #endif // CHROME_BROWSER_SYNC_SIGNIN_MANAGER_H_ |