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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 GURL avatar_url; | 231 GURL avatar_url; |
232 | 232 |
233 // The URL of identity provider used for federated login. | 233 // The URL of identity provider used for federated login. |
234 GURL federation_url; | 234 GURL federation_url; |
235 | 235 |
236 // If true, Chrome will not return this credential to a site in response to | 236 // If true, Chrome will not return this credential to a site in response to |
237 // 'navigator.credentials.request()' without user interaction. | 237 // 'navigator.credentials.request()' without user interaction. |
238 // Once user selects this credential the flag is reseted. | 238 // Once user selects this credential the flag is reseted. |
239 bool skip_zero_click; | 239 bool skip_zero_click; |
240 | 240 |
| 241 // If true, this form was parsed using Autofill predictions. |
| 242 bool parsed_using_autofill_predictions; |
| 243 |
241 // Returns true if this match was found using public suffix matching. | 244 // Returns true if this match was found using public suffix matching. |
242 bool IsPublicSuffixMatch() const; | 245 bool IsPublicSuffixMatch() const; |
243 | 246 |
244 // Equality operators for testing. | 247 // Equality operators for testing. |
245 bool operator==(const PasswordForm& form) const; | 248 bool operator==(const PasswordForm& form) const; |
246 bool operator!=(const PasswordForm& form) const; | 249 bool operator!=(const PasswordForm& form) const; |
247 | 250 |
248 PasswordForm(); | 251 PasswordForm(); |
249 ~PasswordForm(); | 252 ~PasswordForm(); |
250 }; | 253 }; |
251 | 254 |
252 // Map username to PasswordForm* for convenience. See password_form_manager.h. | 255 // Map username to PasswordForm* for convenience. See password_form_manager.h. |
253 typedef std::map<base::string16, PasswordForm*> PasswordFormMap; | 256 typedef std::map<base::string16, PasswordForm*> PasswordFormMap; |
254 | 257 |
255 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; | 258 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; |
256 | 259 |
257 // For testing. | 260 // For testing. |
258 std::ostream& operator<<(std::ostream& os, | 261 std::ostream& operator<<(std::ostream& os, |
259 const autofill::PasswordForm& form); | 262 const autofill::PasswordForm& form); |
260 | 263 |
261 } // namespace autofill | 264 } // namespace autofill |
262 | 265 |
263 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ | 266 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
OLD | NEW |