OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
6 #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ | 6 #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
247 | 247 |
248 PasswordForm(); | 248 PasswordForm(); |
249 ~PasswordForm(); | 249 ~PasswordForm(); |
250 }; | 250 }; |
251 | 251 |
252 // Map username to PasswordForm* for convenience. See password_form_manager.h. | 252 // Map username to PasswordForm* for convenience. See password_form_manager.h. |
253 typedef std::map<base::string16, PasswordForm*> PasswordFormMap; | 253 typedef std::map<base::string16, PasswordForm*> PasswordFormMap; |
254 | 254 |
255 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; | 255 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; |
256 | 256 |
257 // True if the unique key for the forms is the same. The unique key is | |
Ilya Sherman
2015/02/24 21:45:48
nit: "key for the forms is the same" -> "keys for
vasilii
2015/02/25 09:39:50
Done.
| |
258 // (origin, username_element, username_value, password_element, signon_realm). | |
259 // It's used by Sync and LoginDatabase. | |
Ilya Sherman
2015/02/24 21:45:48
I don't see these uses in the diff. In fact, I on
vasilii
2015/02/25 09:39:50
I move this function temporarily out of here. It w
| |
260 bool IsEqualUniqueKey(const PasswordForm& left, const PasswordForm& right); | |
261 | |
257 // For testing. | 262 // For testing. |
258 std::ostream& operator<<(std::ostream& os, | 263 std::ostream& operator<<(std::ostream& os, |
259 const autofill::PasswordForm& form); | 264 const autofill::PasswordForm& form); |
260 | 265 |
261 } // namespace autofill | 266 } // namespace autofill |
262 | 267 |
263 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ | 268 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
OLD | NEW |