OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CORE_BROWSER_PASSWORD_MANAGER_UTIL_WIN_H
_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_WIN_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_UTIL_WIN_H
_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_WIN_H_ |
7 | 7 |
8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
9 | 9 |
10 namespace password_manager_util_win { | 10 namespace password_manager_util_win { |
11 | 11 |
12 // Attempts to (re-)authenticate the user of the OS account. Returns true if | 12 // Attempts to (re-)authenticate the user of the OS account. Returns true if |
13 // the user was successfully authenticated, or if authentication was not | 13 // the user was successfully authenticated, or if authentication was not |
14 // possible. | 14 // possible. |
15 bool AuthenticateUser(gfx::NativeWindow window); | 15 bool AuthenticateUser(gfx::NativeWindow window); |
16 | 16 |
17 // Query the system to determine whether the current logged on user has a | 17 // Query the system to determine whether the current logged on user has a |
18 // password set on their OS account, and log the result with UMA. It should be | 18 // password set on their OS account, and log the result with UMA. It should be |
19 // called on UI thread. The query is executed with a time delay to avoid calling | 19 // called on UI thread. The query is executed with a time delay to avoid calling |
20 // a few Windows APIs on startup. | 20 // a few Windows APIs on startup. |
21 void DelayReportOsPassword(); | 21 void DelayReportOsPassword(); |
22 | 22 |
23 } // namespace password_manager_util_win | 23 } // namespace password_manager_util_win |
24 | 24 |
25 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_UTIL_WI
N_H_ | 25 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_WIN_H_ |
OLD | NEW |