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/cryptohome_op.h" | 5 #include "chrome/browser/chromeos/login/cryptohome_op.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "chrome/browser/chromeos/boot_times_loader.h" | 10 #include "chrome/browser/chromeos/boot_times_loader.h" |
11 #include "chrome/browser/chromeos/cros/cros_library.h" | 11 #include "chrome/browser/chromeos/cros/cros_library.h" |
12 #include "chrome/browser/chromeos/cros/cryptohome_library.h" | 12 #include "chrome/browser/chromeos/cros/cryptohome_library.h" |
13 #include "chrome/browser/chromeos/login/auth_attempt_state.h" | 13 #include "chrome/browser/chromeos/login/auth_attempt_state.h" |
14 #include "chrome/browser/chromeos/login/auth_attempt_state_resolver.h" | 14 #include "chrome/browser/chromeos/login/auth_attempt_state_resolver.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 | 16 |
| 17 using content::BrowserThread; |
| 18 |
17 namespace chromeos { | 19 namespace chromeos { |
18 | 20 |
19 CryptohomeOp::CryptohomeOp(AuthAttemptState* current_attempt, | 21 CryptohomeOp::CryptohomeOp(AuthAttemptState* current_attempt, |
20 AuthAttemptStateResolver* callback) | 22 AuthAttemptStateResolver* callback) |
21 : attempt_(current_attempt), | 23 : attempt_(current_attempt), |
22 resolver_(callback) { | 24 resolver_(callback) { |
23 CHECK(chromeos::CrosLibrary::Get()->EnsureLoaded()); | 25 CHECK(chromeos::CrosLibrary::Get()->EnsureLoaded()); |
24 } | 26 } |
25 | 27 |
26 CryptohomeOp::~CryptohomeOp() {} | 28 CryptohomeOp::~CryptohomeOp() {} |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 189 |
188 // static | 190 // static |
189 CryptohomeOp* CryptohomeOp::CreateCheckKeyAttempt( | 191 CryptohomeOp* CryptohomeOp::CreateCheckKeyAttempt( |
190 AuthAttemptState* current_attempt, | 192 AuthAttemptState* current_attempt, |
191 AuthAttemptStateResolver* callback) { | 193 AuthAttemptStateResolver* callback) { |
192 | 194 |
193 return new CheckKeyAttempt(current_attempt, callback); | 195 return new CheckKeyAttempt(current_attempt, callback); |
194 } | 196 } |
195 | 197 |
196 } // namespace chromeos | 198 } // namespace chromeos |
OLD | NEW |