| 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "chrome/browser/chromeos/login/authenticator.h" | 13 #include "chrome/browser/chromeos/login/authenticator.h" |
| 14 #include "chrome/browser/chromeos/login/login_status_consumer.h" | 14 #include "chrome/browser/chromeos/login/login_status_consumer.h" |
| 15 #include "chrome/browser/chromeos/login/online_attempt_host.h" | 15 #include "chrome/browser/chromeos/login/online_attempt_host.h" |
| 16 #include "chrome/browser/chromeos/login/user.h" | 16 #include "chrome/browser/chromeos/login/user.h" |
| 17 #include "chrome/browser/chromeos/policy/wildcard_login_checker.h" |
| 17 #include "chrome/browser/profiles/profile_manager.h" | 18 #include "chrome/browser/profiles/profile_manager.h" |
| 18 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
| 19 #include "content/public/browser/notification_registrar.h" | 20 #include "content/public/browser/notification_registrar.h" |
| 20 #include "google_apis/gaia/google_service_auth_error.h" | 21 #include "google_apis/gaia/google_service_auth_error.h" |
| 21 | 22 |
| 22 namespace policy { | 23 namespace policy { |
| 23 class WildcardLoginChecker; | 24 class WildcardLoginChecker; |
| 24 } | 25 } |
| 25 | 26 |
| 26 namespace chromeos { | 27 namespace chromeos { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 private: | 120 private: |
| 120 // Starts login completion of externally authenticated user. | 121 // Starts login completion of externally authenticated user. |
| 121 void StartLoginCompletion(); | 122 void StartLoginCompletion(); |
| 122 | 123 |
| 123 // Starts authentication. | 124 // Starts authentication. |
| 124 void StartAuthentication(); | 125 void StartAuthentication(); |
| 125 | 126 |
| 126 // Completion callback for the online wildcard login check for enterprise | 127 // Completion callback for the online wildcard login check for enterprise |
| 127 // devices. Continues the login process or signals whitelist check failure | 128 // devices. Continues the login process or signals whitelist check failure |
| 128 // depending on the value of |result|. | 129 // depending on the value of |result|. |
| 129 void OnlineWildcardLoginCheckCompleted(bool result); | 130 void OnlineWildcardLoginCheckCompleted( |
| 131 policy::WildcardLoginChecker::Result result); |
| 130 | 132 |
| 131 // Used for logging in. | 133 // Used for logging in. |
| 132 scoped_refptr<Authenticator> authenticator_; | 134 scoped_refptr<Authenticator> authenticator_; |
| 133 | 135 |
| 134 // Used to make auxiliary online check. | 136 // Used to make auxiliary online check. |
| 135 OnlineAttemptHost online_attempt_host_; | 137 OnlineAttemptHost online_attempt_host_; |
| 136 | 138 |
| 137 // Represents last login failure that was encountered when communicating to | 139 // Represents last login failure that was encountered when communicating to |
| 138 // sign-in server. LoginFailure.LoginFailureNone() by default. | 140 // sign-in server. LoginFailure.LoginFailureNone() by default. |
| 139 LoginFailure last_login_failure_; | 141 LoginFailure last_login_failure_; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 156 scoped_ptr<policy::WildcardLoginChecker> wildcard_login_checker_; | 158 scoped_ptr<policy::WildcardLoginChecker> wildcard_login_checker_; |
| 157 | 159 |
| 158 base::WeakPtrFactory<LoginPerformer> weak_factory_; | 160 base::WeakPtrFactory<LoginPerformer> weak_factory_; |
| 159 | 161 |
| 160 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); | 162 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); |
| 161 }; | 163 }; |
| 162 | 164 |
| 163 } // namespace chromeos | 165 } // namespace chromeos |
| 164 | 166 |
| 165 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ | 167 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ |
| OLD | NEW |