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

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: Merge with ToT. 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 87d54f4a935050194fcfbe147670bef9633d47f8..a4709dfdd3c6db1fbf833413b040d56288688a4e 100644
--- a/chrome/browser/signin/signin_manager.h
+++ b/chrome/browser/signin/signin_manager.h
@@ -40,6 +40,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.
@@ -238,6 +242,19 @@ class SigninManager : public GaiaAuthConsumer,
void HandleAuthError(const GoogleServiceAuthError& error,
bool clear_transient_data);
+#if defined(ENABLE_CONFIGURATION_POLICY) && !defined(OS_CHROMEOS)
+ // Callback invoked once policy registration is complete. If registration
+ // fails, |client| will be null.
+ 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);
+#endif
+
+ // 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.
« no previous file with comments | « chrome/browser/policy/user_policy_signin_service_unittest.cc ('k') | chrome/browser/signin/signin_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698