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_FILL_DATA_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_FILL_DATA_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_FILL_DATA_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_FILL_DATA_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 22 matching lines...) Expand all Loading... | |
33 | 33 |
34 // Structure used for autofilling password forms. Note that the realms in this | 34 // Structure used for autofilling password forms. Note that the realms in this |
35 // struct are only set when the password's realm differs from the realm of the | 35 // struct are only set when the password's realm differs from the realm of the |
36 // form that we are filling. | 36 // form that we are filling. |
37 struct PasswordFormFillData { | 37 struct PasswordFormFillData { |
38 typedef std::map<base::string16, PasswordAndRealm> LoginCollection; | 38 typedef std::map<base::string16, PasswordAndRealm> LoginCollection; |
39 typedef std::map<UsernamesCollectionKey, | 39 typedef std::map<UsernamesCollectionKey, |
40 std::vector<base::string16> > UsernamesCollection; | 40 std::vector<base::string16> > UsernamesCollection; |
41 | 41 |
42 // Identifies the HTML form on the page and preferred username/password for | 42 // Identifies the HTML form on the page and preferred username/password for |
43 // login. | 43 // login. |
Ilya Sherman
2014/11/04 23:05:31
This comment seems obsolete.
Pritam Nikam
2014/11/05 05:58:15
Done.
| |
44 FormData basic_data; | 44 // The name of the form. |
45 base::string16 name; | |
Ilya Sherman
2014/11/04 23:05:31
nit: Please leave blank lines between individual f
Pritam Nikam
2014/11/05 05:58:15
Done.
| |
46 // The URL (minus query parameters) containing the form. | |
47 GURL origin; | |
48 // The action target of the form. | |
49 GURL action; | |
50 // true if this form was submitted by a user gesture and not javascript. | |
Ilya Sherman
2014/11/04 23:05:31
nit: "true" -> "True"
Pritam Nikam
2014/11/05 05:58:14
Done.
| |
51 bool user_submitted; | |
52 | |
53 FormFieldData username_field; | |
54 FormFieldData password_field; | |
Ilya Sherman
2014/11/04 23:05:31
Please document these fields.
Pritam Nikam
2014/11/05 05:58:15
Done.
| |
45 | 55 |
46 // The signon realm of the preferred user/pass pair. | 56 // The signon realm of the preferred user/pass pair. |
47 std::string preferred_realm; | 57 std::string preferred_realm; |
48 | 58 |
49 // A list of other matching username->PasswordAndRealm pairs for the form. | 59 // A list of other matching username->PasswordAndRealm pairs for the form. |
50 LoginCollection additional_logins; | 60 LoginCollection additional_logins; |
51 | 61 |
52 // A list of possible usernames in the case where we aren't completely sure | 62 // A list of possible usernames in the case where we aren't completely sure |
53 // that the original saved username is correct. This data is keyed by the | 63 // that the original saved username is correct. This data is keyed by the |
54 // saved username/password to ensure uniqueness, though the username is not | 64 // saved username/password to ensure uniqueness, though the username is not |
(...skipping 23 matching lines...) Expand all Loading... | |
78 const PasswordForm& form_on_page, | 88 const PasswordForm& form_on_page, |
79 const PasswordFormMap& matches, | 89 const PasswordFormMap& matches, |
80 const PasswordForm* const preferred_match, | 90 const PasswordForm* const preferred_match, |
81 bool wait_for_username_before_autofill, | 91 bool wait_for_username_before_autofill, |
82 bool enable_other_possible_usernames, | 92 bool enable_other_possible_usernames, |
83 PasswordFormFillData* result); | 93 PasswordFormFillData* result); |
84 | 94 |
85 } // namespace autofill | 95 } // namespace autofill |
86 | 96 |
87 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_FILL_DATA_H__ | 97 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_FILL_DATA_H__ |
OLD | NEW |