Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / password_manager / password_store_mac_internal.h
index 0252343..245ecbb 100644 (file)
@@ -30,12 +30,9 @@ class MacKeychainPasswordFormAdapter {
       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
@@ -199,7 +196,8 @@ std::vector<ItemFormPair> ExtractAllKeychainItemAttributesIntoPasswordForms(
 // 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);