| 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_ATTEMPT_STATE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_ATTEMPT_STATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_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/login_status_consumer.h" |
| 11 #include "chrome/common/net/gaia/gaia_auth_consumer.h" | 11 #include "google_apis/gaia/gaia_auth_consumer.h" |
| 12 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" | 12 #include "google_apis/gaia/gaia_auth_fetcher.h" |
| 13 #include "third_party/cros_system_api/dbus/service_constants.h" | 13 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 | 16 |
| 17 // Tracks the state associated with a single attempt to log in to chromium os. | 17 // Tracks the state associated with a single attempt to log in to chromium os. |
| 18 // Enforces that methods are only called on the IO thread. | 18 // Enforces that methods are only called on the IO thread. |
| 19 | 19 |
| 20 class AuthAttemptState { | 20 class AuthAttemptState { |
| 21 public: | 21 public: |
| 22 // Used to initialize for a login attempt. | 22 // Used to initialize for a login attempt. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 std::string oauth1_access_token_; | 101 std::string oauth1_access_token_; |
| 102 std::string oauth1_access_secret_; | 102 std::string oauth1_access_secret_; |
| 103 | 103 |
| 104 private: | 104 private: |
| 105 DISALLOW_COPY_AND_ASSIGN(AuthAttemptState); | 105 DISALLOW_COPY_AND_ASSIGN(AuthAttemptState); |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 } // namespace chromeos | 108 } // namespace chromeos |
| 109 | 109 |
| 110 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_ATTEMPT_STATE_H_ | 110 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_ATTEMPT_STATE_H_ |
| OLD | NEW |