root/chrome/browser/signin/local_auth.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// 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_

/* [<][>][^][v][top][bottom][index][help] */