const std::string& signon_realm,
autofill::PasswordForm::Scheme scheme);
- // Returns the PasswordForm for the Keychain entry that matches |form| on all
- // of the fields that uniquely identify a Keychain item, or NULL if there is
- // no such entry.
- // Caller is responsible for deleting the returned form.
- autofill::PasswordForm* PasswordExactlyMatchingForm(
- const autofill::PasswordForm& query_form);
+ // Returns true if there is the Keychain entry that matches |query_form| on
+ // all of the fields that uniquely identify a Keychain item.
+ bool HasPasswordExactlyMatchingForm(const autofill::PasswordForm& query_form);
// Returns true if the keychain contains any items that are mergeable with
// |query_form|. This is different from actually extracting the passwords
// that are non-NULL will be set. If there is no port, port will be 0.
// If the return value is false, the state of the out params is undefined.
bool ExtractSignonRealmComponents(const std::string& signon_realm,
- std::string* server, int* port,
+ std::string* server,
+ UInt32* port,
bool* is_secure,
std::string* security_domain);