- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / signin / local_auth.h
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).
8
9 #ifndef CHROME_BROWSER_SIGNIN_LOCAL_AUTH_H_
10 #define CHROME_BROWSER_SIGNIN_LOCAL_AUTH_H_
11
12 #include <string>
13
14 class Profile;
15
16 namespace user_prefs {
17 class PrefRegistrySyncable;
18 }
19
20 namespace chrome {
21
22 void RegisterLocalAuthPrefs(user_prefs::PrefRegistrySyncable* registry);
23
24 void SetLocalAuthCredentials(Profile* profile,
25                              const std::string& username,
26                              const std::string& password);
27
28 bool ValidateLocalAuthCredentials(Profile* profile,
29                                   const std::string& username,
30                                   const std::string& password);
31
32 }  // namespace chrome
33
34 #endif  // CHROME_BROWSER_SIGNIN_LOCAL_AUTH_H_