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_AUTH_ATTEMPT_STATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_AUTH_ATTEMPT_STATE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_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/login_status_consumer.h" | 10 #include "chrome/browser/chromeos/login/auth/login_status_consumer.h" |
11 #include "chrome/browser/chromeos/login/user.h" | 11 #include "chrome/browser/chromeos/login/users/user.h" |
12 #include "google_apis/gaia/gaia_auth_consumer.h" | 12 #include "google_apis/gaia/gaia_auth_consumer.h" |
13 #include "google_apis/gaia/gaia_auth_fetcher.h" | 13 #include "google_apis/gaia/gaia_auth_fetcher.h" |
14 #include "third_party/cros_system_api/dbus/service_constants.h" | 14 #include "third_party/cros_system_api/dbus/service_constants.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 | 17 |
18 // Tracks the state associated with a single attempt to log in to chromium os. | 18 // 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. | 19 // Enforces that methods are only called on the UI thread. |
20 | 20 |
21 class AuthAttemptState { | 21 class AuthAttemptState { |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 // After the username hash request is completed, this marks whether | 116 // After the username hash request is completed, this marks whether |
117 // the request was successful. | 117 // the request was successful. |
118 bool username_hash_valid_; | 118 bool username_hash_valid_; |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(AuthAttemptState); | 120 DISALLOW_COPY_AND_ASSIGN(AuthAttemptState); |
121 }; | 121 }; |
122 | 122 |
123 } // namespace chromeos | 123 } // namespace chromeos |
124 | 124 |
125 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_ATTEMPT_STATE_H_ | 125 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_AUTH_ATTEMPT_STATE_H_ |
OLD | NEW |