Lines Matching refs:type
10 AutofillChange::AutofillChange(Type type, const AutofillKey& key)
11 : GenericAutofillChange<AutofillKey>(type, key) {
18 Type type, std::string key, const AutofillProfile* profile)
19 : GenericAutofillChange<std::string>(type, key),
21 DCHECK(type == ADD ? (profile && profile->guid() == key) : true);
22 DCHECK(type == UPDATE ? (profile && profile->guid() == key) : true);
23 DCHECK(type == REMOVE ? !profile : true);
31 return type() == change.type() &&
33 (type() != REMOVE) ? *profile() == *change.profile() : true;
37 Type type, std::string key, const CreditCard* credit_card)
38 : GenericAutofillChange<std::string>(type, key), credit_card_(credit_card) {
39 DCHECK(type == ADD ? (credit_card && credit_card->guid() == key) : true);
40 DCHECK(type == UPDATE ? (credit_card && credit_card->guid() == key) : true);
41 DCHECK(type == REMOVE ? !credit_card : true);
49 return type() == change.type() &&
51 (type() != REMOVE) ? *credit_card() == *change.credit_card() : true;