OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_AUTH_AUTH_ATTEMPT_STATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_AUTH_ATTEMPT_STATE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_AUTH_ATTEMPT_STATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_AUTH_ATTEMPT_STATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/chromeos/login/auth/login_status_consumer.h" | 10 #include "chrome/browser/chromeos/login/auth/login_status_consumer.h" |
| 11 #include "chrome/browser/chromeos/login/auth/user_context.h" |
11 #include "chrome/browser/chromeos/login/users/user.h" | 12 #include "chrome/browser/chromeos/login/users/user.h" |
12 #include "google_apis/gaia/gaia_auth_consumer.h" | 13 #include "google_apis/gaia/gaia_auth_consumer.h" |
13 #include "google_apis/gaia/gaia_auth_fetcher.h" | 14 #include "google_apis/gaia/gaia_auth_fetcher.h" |
14 #include "third_party/cros_system_api/dbus/service_constants.h" | 15 #include "third_party/cros_system_api/dbus/service_constants.h" |
15 | 16 |
16 namespace chromeos { | 17 namespace chromeos { |
17 | 18 |
18 // Tracks the state associated with a single attempt to log in to chromium OS. | 19 // Tracks the state associated with a single attempt to log in to chromium OS. |
19 // Enforces that methods are only called on the UI thread. | 20 // Enforces that methods are only called on the UI thread. |
20 class AuthAttemptState { | 21 class AuthAttemptState { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // After the username hash request is completed, this marks whether | 109 // After the username hash request is completed, this marks whether |
109 // the request was successful. | 110 // the request was successful. |
110 bool username_hash_valid_; | 111 bool username_hash_valid_; |
111 | 112 |
112 DISALLOW_COPY_AND_ASSIGN(AuthAttemptState); | 113 DISALLOW_COPY_AND_ASSIGN(AuthAttemptState); |
113 }; | 114 }; |
114 | 115 |
115 } // namespace chromeos | 116 } // namespace chromeos |
116 | 117 |
117 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_AUTH_ATTEMPT_STATE_H_ | 118 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_AUTH_ATTEMPT_STATE_H_ |
OLD | NEW |