#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_CLIENT_H_
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_CLIENT_H_
#include "base/metrics/field_trial.h"
#include "components/autofill/core/common/password_form.h"
#include "components/autofill/core/common/password_form_fill_data.h"
class PasswordFormManager;
class PasswordManagerDriver;
class PasswordStore;
class PrefService;
class PasswordManagerLogger;
class PasswordManagerClient {
public:
PasswordManagerClient() {}
virtual ~PasswordManagerClient() {}
virtual void PromptUserToSavePassword(PasswordFormManager* form_to_save) = 0;
virtual void PasswordWasAutofilled(
const autofill::PasswordFormMap& best_matches) const {}
virtual void AuthenticateAutofillAndFillForm(
scoped_ptr<autofill::PasswordFormFillData> fill_data) = 0;
virtual PrefService* GetPrefs() = 0;
virtual PasswordStore* GetPasswordStore() = 0;
virtual PasswordManagerDriver* GetDriver() = 0;
virtual base::FieldTrial::Probability GetProbabilityForExperiment(
const std::string& experiment_name);
virtual bool IsPasswordSyncEnabled();
virtual void SetLogger(PasswordManagerLogger* logger);
virtual void LogSavePasswordProgress(const std::string& text);
private:
DISALLOW_COPY_AND_ASSIGN(PasswordManagerClient);
};
#endif