OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // The signin manager encapsulates some functionality tracking | 5 // The signin manager encapsulates some functionality tracking |
6 // which user is signed in. When a user is signed in, a ClientLogin | 6 // which user is signed in. When a user is signed in, a ClientLogin |
7 // request is run on their behalf. Auth tokens are fetched from Google | 7 // request is run on their behalf. Auth tokens are fetched from Google |
8 // and the results are stored in the TokenService. | 8 // and the results are stored in the TokenService. |
9 | 9 |
10 #ifndef CHROME_BROWSER_SYNC_SIGNIN_MANAGER_H_ | 10 #ifndef CHROME_BROWSER_SYNC_SIGNIN_MANAGER_H_ |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 virtual void OnTokenAuthFailure(const GoogleServiceAuthError& error) | 93 virtual void OnTokenAuthFailure(const GoogleServiceAuthError& error) |
94 OVERRIDE; | 94 OVERRIDE; |
95 | 95 |
96 // GaiaOAuthConsumer | 96 // GaiaOAuthConsumer |
97 virtual void OnGetOAuthTokenSuccess(const std::string& oauth_token) OVERRIDE; | 97 virtual void OnGetOAuthTokenSuccess(const std::string& oauth_token) OVERRIDE; |
98 virtual void OnGetOAuthTokenFailure() OVERRIDE; | 98 virtual void OnGetOAuthTokenFailure() OVERRIDE; |
99 virtual void OnOAuthGetAccessTokenSuccess(const std::string& token, | 99 virtual void OnOAuthGetAccessTokenSuccess(const std::string& token, |
100 const std::string& secret) OVERRIDE; | 100 const std::string& secret) OVERRIDE; |
101 virtual void OnOAuthGetAccessTokenFailure( | 101 virtual void OnOAuthGetAccessTokenFailure( |
102 const GoogleServiceAuthError& error) OVERRIDE; | 102 const GoogleServiceAuthError& error) OVERRIDE; |
103 virtual void OnOAuthWrapBridgeSuccess(const std::string& token, | 103 virtual void OnOAuthWrapBridgeSuccess(const std::string& service_name, |
| 104 const std::string& token, |
104 const std::string& expires_in) | 105 const std::string& expires_in) |
105 OVERRIDE; | 106 OVERRIDE; |
106 virtual void OnOAuthWrapBridgeFailure(const GoogleServiceAuthError& error); | 107 virtual void OnOAuthWrapBridgeFailure(const GoogleServiceAuthError& error); |
107 virtual void OnUserInfoSuccess(const std::string& email) OVERRIDE; | 108 virtual void OnUserInfoSuccess(const std::string& email) OVERRIDE; |
108 virtual void OnUserInfoFailure(const GoogleServiceAuthError& error) OVERRIDE; | 109 virtual void OnUserInfoFailure(const GoogleServiceAuthError& error) OVERRIDE; |
109 | 110 |
110 // NotificationObserver | 111 // NotificationObserver |
111 virtual void Observe(int type, | 112 virtual void Observe(int type, |
112 const NotificationSource& source, | 113 const NotificationSource& source, |
113 const NotificationDetails& details) OVERRIDE; | 114 const NotificationDetails& details) OVERRIDE; |
(...skipping 18 matching lines...) Expand all Loading... |
132 // Actual OAuth login handler. | 133 // Actual OAuth login handler. |
133 scoped_ptr<GaiaOAuthFetcher> oauth_login_; | 134 scoped_ptr<GaiaOAuthFetcher> oauth_login_; |
134 | 135 |
135 // Register for notifications from the TokenService. | 136 // Register for notifications from the TokenService. |
136 NotificationRegistrar registrar_; | 137 NotificationRegistrar registrar_; |
137 | 138 |
138 DISALLOW_COPY_AND_ASSIGN(SigninManager); | 139 DISALLOW_COPY_AND_ASSIGN(SigninManager); |
139 }; | 140 }; |
140 | 141 |
141 #endif // CHROME_BROWSER_SYNC_SIGNIN_MANAGER_H_ | 142 #endif // CHROME_BROWSER_SYNC_SIGNIN_MANAGER_H_ |
OLD | NEW |