| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_INTERNAL_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_INTERNAL_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_INTERNAL_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_INTERNAL_H_ |
| 7 | 7 |
| 8 #include <Security/Security.h> | 8 #include <Security/Security.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/macros.h" |
| 13 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
| 14 #include "components/autofill/core/common/password_form.h" | 15 #include "components/autofill/core/common/password_form.h" |
| 15 #include "crypto/apple_keychain.h" | 16 #include "crypto/apple_keychain.h" |
| 16 | 17 |
| 17 using crypto::AppleKeychain; | 18 using crypto::AppleKeychain; |
| 18 | 19 |
| 19 // Adapter that wraps a AppleKeychain and provides interaction in terms of | 20 // Adapter that wraps a AppleKeychain and provides interaction in terms of |
| 20 // PasswordForms instead of Keychain items. | 21 // PasswordForms instead of Keychain items. |
| 21 class MacKeychainPasswordFormAdapter { | 22 class MacKeychainPasswordFormAdapter { |
| 22 public: | 23 public: |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // Returns PasswordForm instances populated with password data for each keychain | 213 // Returns PasswordForm instances populated with password data for each keychain |
| 213 // entry in |item_form_pairs| that could be merged with |query_form|. | 214 // entry in |item_form_pairs| that could be merged with |query_form|. |
| 214 ScopedVector<autofill::PasswordForm> ExtractPasswordsMergeableWithForm( | 215 ScopedVector<autofill::PasswordForm> ExtractPasswordsMergeableWithForm( |
| 215 const AppleKeychain& keychain, | 216 const AppleKeychain& keychain, |
| 216 const std::vector<ItemFormPair>& item_form_pairs, | 217 const std::vector<ItemFormPair>& item_form_pairs, |
| 217 const autofill::PasswordForm& query_form); | 218 const autofill::PasswordForm& query_form); |
| 218 | 219 |
| 219 } // namespace internal_keychain_helpers | 220 } // namespace internal_keychain_helpers |
| 220 | 221 |
| 221 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_INTERNAL_H_ | 222 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_INTERNAL_H_ |
| OLD | NEW |