Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: chrome/browser/signin/signin_manager.h

Issue 12220060: Load policy before signin completes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed cros compile errs. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698