Chromium Code Reviews| Index: chrome/browser/signin/signin_manager.h |
| diff --git a/chrome/browser/signin/signin_manager.h b/chrome/browser/signin/signin_manager.h |
| index 43a50254bbf99c26977e797f7d8f8bcc78bf4d84..603ae144858c466d255e6f2e534e5ab4197f4134 100644 |
| --- a/chrome/browser/signin/signin_manager.h |
| +++ b/chrome/browser/signin/signin_manager.h |
| @@ -39,6 +39,10 @@ class Profile; |
| class PrefService; |
| class SigninGlobalError; |
| +namespace policy { |
| +class CloudPolicyClient; |
| +} |
| + |
| // Details for the Notification type GOOGLE_SIGNIN_SUCCESSFUL. |
| // A listener might use this to make note of a username / password |
| // pair for encryption keys. |
| @@ -232,6 +236,17 @@ class SigninManager : public GaiaAuthConsumer, |
| void HandleAuthError(const GoogleServiceAuthError& error, |
| bool clear_transient_data); |
| + // Callback invoked once policy registration is complete. If registration |
| + // fails, |policy_token| will be empty. |
|
Joao da Silva
2013/02/07 23:01:25
|policy_token| -> |client|?
Andrew T Wilson (Slow)
2013/02/08 10:48:07
Done.
|
| + void OnRegisteredForPolicy(scoped_ptr<policy::CloudPolicyClient> client); |
| + |
| + // Callback invoked when a policy fetch request has completed. |success| is |
| + // true if policy was successfully fetched. |
| + void OnPolicyFetchComplete(bool success); |
|
Joao da Silva
2013/02/07 23:01:25
These 2 methods #ifdefd
Andrew T Wilson (Slow)
2013/02/08 10:48:07
Done.
|
| + |
| + // Invoked once policy has been loaded to complete user signin. |
| + void CompleteSigninAfterPolicyLoad(); |
| + |
| // ClientLogin identity. |
| std::string possibly_invalid_username_; |
| std::string password_; // This is kept empty whenever possible. |