summaryrefslogtreecommitdiff
path: root/chrome/browser/signin/local_auth.h
blob: 2342a8142a2da6591238c44e2bba0a85401cd6b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// The local-auth module allows for user authentication in the case when
// on-line authentication is not possible (e.g. there is no network
// connection).

#ifndef CHROME_BROWSER_SIGNIN_LOCAL_AUTH_H_
#define CHROME_BROWSER_SIGNIN_LOCAL_AUTH_H_

#include <string>

class Profile;

namespace user_prefs {
class PrefRegistrySyncable;
}

namespace chrome {

void RegisterLocalAuthPrefs(user_prefs::PrefRegistrySyncable* registry);

void SetLocalAuthCredentials(size_t profile_info_index,
                             const std::string& password);

void SetLocalAuthCredentials(const Profile* profile,
                             const std::string& password);

bool ValidateLocalAuthCredentials(size_t profile_info_index,
                                  const std::string& password);

bool ValidateLocalAuthCredentials(const Profile* profile,
                                  const std::string& password);

}  // namespace chrome

#endif  // CHROME_BROWSER_SIGNIN_LOCAL_AUTH_H_