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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
249 GURL federation_url; | 249 GURL federation_url; |
250 | 250 |
251 // If true, Chrome will not return this credential to a site in response to | 251 // If true, Chrome will not return this credential to a site in response to |
252 // 'navigator.credentials.request()' without user interaction. | 252 // 'navigator.credentials.request()' without user interaction. |
253 // Once user selects this credential the flag is reseted. | 253 // Once user selects this credential the flag is reseted. |
254 bool skip_zero_click; | 254 bool skip_zero_click; |
255 | 255 |
256 // The layout as determined during parsing. Default value is LAYOUT_OTHER. | 256 // The layout as determined during parsing. Default value is LAYOUT_OTHER. |
257 Layout layout; | 257 Layout layout; |
258 | 258 |
259 // If true, this form was parsed using Autofill predictions. | |
260 bool parsed_using_autofill_predictions; | |
Ilya Sherman
2015/03/31 00:45:04
nit: I'd name this with a "was_" prefix, i.e. "was
dvadym
2015/03/31 09:54:03
Done.
| |
261 | |
259 // Returns true if this match was found using public suffix matching. | 262 // Returns true if this match was found using public suffix matching. |
260 bool IsPublicSuffixMatch() const; | 263 bool IsPublicSuffixMatch() const; |
261 | 264 |
262 // Equality operators for testing. | 265 // Equality operators for testing. |
263 bool operator==(const PasswordForm& form) const; | 266 bool operator==(const PasswordForm& form) const; |
264 bool operator!=(const PasswordForm& form) const; | 267 bool operator!=(const PasswordForm& form) const; |
265 | 268 |
266 PasswordForm(); | 269 PasswordForm(); |
267 ~PasswordForm(); | 270 ~PasswordForm(); |
268 }; | 271 }; |
269 | 272 |
270 // Map username to PasswordForm* for convenience. See password_form_manager.h. | 273 // Map username to PasswordForm* for convenience. See password_form_manager.h. |
271 typedef std::map<base::string16, PasswordForm*> PasswordFormMap; | 274 typedef std::map<base::string16, PasswordForm*> PasswordFormMap; |
272 | 275 |
273 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; | 276 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; |
274 | 277 |
275 // For testing. | 278 // For testing. |
276 std::ostream& operator<<(std::ostream& os, PasswordForm::Layout layout); | 279 std::ostream& operator<<(std::ostream& os, PasswordForm::Layout layout); |
277 std::ostream& operator<<(std::ostream& os, | 280 std::ostream& operator<<(std::ostream& os, |
278 const autofill::PasswordForm& form); | 281 const autofill::PasswordForm& form); |
279 | 282 |
280 } // namespace autofill | 283 } // namespace autofill |
281 | 284 |
282 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ | 285 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
OLD | NEW |