This source file includes following definitions.
- origin_
- GetInfoForVariant
- IsVerified
#include "components/autofill/core/browser/autofill_data_model.h"
#include "components/autofill/core/browser/autofill_type.h"
#include "url/gurl.h"
namespace autofill {
AutofillDataModel::AutofillDataModel(const std::string& guid,
const std::string& origin)
: guid_(guid),
origin_(origin) {}
AutofillDataModel::~AutofillDataModel() {}
base::string16 AutofillDataModel::GetInfoForVariant(
const AutofillType& type,
size_t variant,
const std::string& app_locale) const {
return GetInfo(type, app_locale);
}
bool AutofillDataModel::IsVerified() const {
return !origin_.empty() && !GURL(origin_).is_valid();
}
}