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_MANAGED_MANAGED_USER_AUTHENTICATOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_MANAGED_USER_AUTHENTICATOR_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_MANAGED_USER_AUTHENTICATOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_MANAGED_USER_AUTHENTICATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "chrome/browser/chromeos/cros/cryptohome_library.h" | |
15 #include "third_party/cros_system_api/dbus/service_constants.h" | 14 #include "third_party/cros_system_api/dbus/service_constants.h" |
16 | 15 |
17 namespace chromeos { | 16 namespace chromeos { |
18 | 17 |
19 // Authenticates locally managed users against the cryptohome. | 18 // Authenticates locally managed users against the cryptohome. |
20 // | 19 // |
21 // Typical flow: | 20 // Typical flow: |
22 // AuthenticateToMount() calls a Cryptohome to perform offline login, | 21 // AuthenticateToMount() calls a Cryptohome to perform offline login, |
23 // AuthenticateToCreate() calls a Cryptohome to create new cryptohome. | 22 // AuthenticateToCreate() calls a Cryptohome to create new cryptohome. |
24 class ManagedUserAuthenticator | 23 class ManagedUserAuthenticator |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 102 |
104 scoped_ptr<AuthAttempt> current_state_; | 103 scoped_ptr<AuthAttempt> current_state_; |
105 StatusConsumer* consumer_; | 104 StatusConsumer* consumer_; |
106 | 105 |
107 DISALLOW_COPY_AND_ASSIGN(ManagedUserAuthenticator); | 106 DISALLOW_COPY_AND_ASSIGN(ManagedUserAuthenticator); |
108 }; | 107 }; |
109 | 108 |
110 } // namespace chromeos | 109 } // namespace chromeos |
111 | 110 |
112 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_MANAGED_USER_AUTHENTICATOR_H_ | 111 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_MANAGED_USER_AUTHENTICATOR_H_ |
OLD | NEW |