OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/chromeos/login/auth_attempt_state.h" | 5 #include "chrome/browser/chromeos/login/auth_attempt_state.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "chrome/common/net/gaia/gaia_auth_consumer.h" | 9 #include "chrome/common/net/gaia/gaia_auth_consumer.h" |
10 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" | 10 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" |
11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
12 #include "third_party/cros/chromeos_cryptohome.h" | 12 #include "third_party/cros/chromeos_cryptohome.h" |
13 | 13 |
| 14 using content::BrowserThread; |
| 15 |
14 namespace chromeos { | 16 namespace chromeos { |
15 | 17 |
16 AuthAttemptState::AuthAttemptState(const std::string& username, | 18 AuthAttemptState::AuthAttemptState(const std::string& username, |
17 const std::string& password, | 19 const std::string& password, |
18 const std::string& ascii_hash, | 20 const std::string& ascii_hash, |
19 const std::string& login_token, | 21 const std::string& login_token, |
20 const std::string& login_captcha, | 22 const std::string& login_captcha, |
21 const bool user_is_new) | 23 const bool user_is_new) |
22 : username(username), | 24 : username(username), |
23 password(password), | 25 password(password), |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 } | 144 } |
143 | 145 |
144 void AuthAttemptState::SetOAuth1Token(const std::string& token, | 146 void AuthAttemptState::SetOAuth1Token(const std::string& token, |
145 const std::string& secret) { | 147 const std::string& secret) { |
146 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 148 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
147 oauth1_access_token_ = token; | 149 oauth1_access_token_ = token; |
148 oauth1_access_secret_ = secret; | 150 oauth1_access_secret_ = secret; |
149 } | 151 } |
150 | 152 |
151 } // namespace chromeos | 153 } // namespace chromeos |
OLD | NEW |