OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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. See SigninManagerBase for full description of | 6 // which user is signed in. See SigninManagerBase for full description of |
7 // responsibilities. The class defined in this file provides functionality | 7 // responsibilities. The class defined in this file provides functionality |
8 // required by all platforms except Chrome OS. | 8 // required by all platforms except Chrome OS. |
9 // | 9 // |
10 // When a user is signed in, a ClientLogin request is run on their behalf. | 10 // When a user is signed in, a ClientLogin request is run on their behalf. |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 virtual void OnClientLoginSuccess(const ClientLoginResult& result) OVERRIDE; | 147 virtual void OnClientLoginSuccess(const ClientLoginResult& result) OVERRIDE; |
148 virtual void OnClientLoginFailure( | 148 virtual void OnClientLoginFailure( |
149 const GoogleServiceAuthError& error) OVERRIDE; | 149 const GoogleServiceAuthError& error) OVERRIDE; |
150 virtual void OnClientOAuthSuccess(const ClientOAuthResult& result) OVERRIDE; | 150 virtual void OnClientOAuthSuccess(const ClientOAuthResult& result) OVERRIDE; |
151 virtual void OnClientOAuthFailure( | 151 virtual void OnClientOAuthFailure( |
152 const GoogleServiceAuthError& error) OVERRIDE; | 152 const GoogleServiceAuthError& error) OVERRIDE; |
153 virtual void OnOAuth2RevokeTokenCompleted() OVERRIDE; | 153 virtual void OnOAuth2RevokeTokenCompleted() OVERRIDE; |
154 virtual void OnGetUserInfoSuccess(const UserInfoMap& data) OVERRIDE; | 154 virtual void OnGetUserInfoSuccess(const UserInfoMap& data) OVERRIDE; |
155 virtual void OnGetUserInfoFailure( | 155 virtual void OnGetUserInfoFailure( |
156 const GoogleServiceAuthError& error) OVERRIDE; | 156 const GoogleServiceAuthError& error) OVERRIDE; |
157 virtual void OnUberAuthTokenSuccess(const std::string& token) OVERRIDE; | |
158 virtual void OnUberAuthTokenFailure( | |
159 const GoogleServiceAuthError& error) OVERRIDE; | |
160 virtual void OnMergeSessionSuccess(const std::string& data) OVERRIDE; | |
161 virtual void OnMergeSessionFailure( | |
162 const GoogleServiceAuthError& error) OVERRIDE; | |
163 | 157 |
164 // content::NotificationObserver | 158 // content::NotificationObserver |
165 virtual void Observe(int type, | 159 virtual void Observe(int type, |
166 const content::NotificationSource& source, | 160 const content::NotificationSource& source, |
167 const content::NotificationDetails& details) OVERRIDE; | 161 const content::NotificationDetails& details) OVERRIDE; |
168 | 162 |
169 | 163 |
170 // Tells the SigninManager whether to prohibit signout for this profile. | 164 // Tells the SigninManager whether to prohibit signout for this profile. |
171 // If |prohibit_signout| is true, then signout will be prohibited. | 165 // If |prohibit_signout| is true, then signout will be prohibited. |
172 void ProhibitSignout(bool prohibit_signout); | 166 void ProhibitSignout(bool prohibit_signout); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 | 290 |
297 // Helper object to listen for changes to the signin allowed preference. | 291 // Helper object to listen for changes to the signin allowed preference. |
298 BooleanPrefMember signin_allowed_; | 292 BooleanPrefMember signin_allowed_; |
299 | 293 |
300 DISALLOW_COPY_AND_ASSIGN(SigninManager); | 294 DISALLOW_COPY_AND_ASSIGN(SigninManager); |
301 }; | 295 }; |
302 | 296 |
303 #endif // !defined(OS_CHROMEOS) | 297 #endif // !defined(OS_CHROMEOS) |
304 | 298 |
305 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_H_ | 299 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_H_ |
OLD | NEW |