OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_ |
7 | 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "ui/gfx/native_widget_types.h" |
| 10 |
8 namespace password_manager_util { | 11 namespace password_manager_util { |
9 | 12 |
10 // Attempts to (re-)authenticate the user of the OS account. Returns true if | 13 // Attempts to (re-)authenticate the user of the OS account. Returns true if |
11 // the user was successfully authenticated, or if authentication was not | 14 // the user was successfully authenticated, or if authentication was not |
12 // possible. On platforms where reauthentication is not possible or does not | 15 // possible. On platforms where reauthentication is not possible or does not |
13 // make sense, the default implementation always returns true. | 16 // make sense, the default implementation always returns true. |
14 bool AuthenticateUser(); | 17 bool AuthenticateUser(gfx::NativeWindow window); |
15 | 18 |
16 } // namespace password_manager_util | 19 } // namespace password_manager_util |
17 | 20 |
18 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_ | 21 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_ |
OLD | NEW |