Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / signin / local_auth.h
blob2342a8142a2da6591238c44e2bba0a85401cd6b0
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
3 // found in the LICENSE file.
4 //
5 // The local-auth module allows for user authentication in the case when
6 // on-line authentication is not possible (e.g. there is no network
7 // connection).
9 #ifndef CHROME_BROWSER_SIGNIN_LOCAL_AUTH_H_
10 #define CHROME_BROWSER_SIGNIN_LOCAL_AUTH_H_
12 #include <string>
14 class Profile;
16 namespace user_prefs {
17 class PrefRegistrySyncable;
20 namespace chrome {
22 void RegisterLocalAuthPrefs(user_prefs::PrefRegistrySyncable* registry);
24 void SetLocalAuthCredentials(size_t profile_info_index,
25 const std::string& password);
27 void SetLocalAuthCredentials(const Profile* profile,
28 const std::string& password);
30 bool ValidateLocalAuthCredentials(size_t profile_info_index,
31 const std::string& password);
33 bool ValidateLocalAuthCredentials(const Profile* profile,
34 const std::string& password);
36 } // namespace chrome
38 #endif // CHROME_BROWSER_SIGNIN_LOCAL_AUTH_H_