Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: components/autofill/core/common/password_form.h

Issue 107383002: Use base namespace for string16 in components and cloud_print. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // PasswordManager. 88 // PasswordManager.
89 // 89 //
90 // When parsing an HTML form, this must always be set. 90 // When parsing an HTML form, this must always be set.
91 GURL action; 91 GURL action;
92 92
93 // The name of the submit button used. Optional; only used in scoring 93 // The name of the submit button used. Optional; only used in scoring
94 // of PasswordForm results from the database to make matches as tight as 94 // of PasswordForm results from the database to make matches as tight as
95 // possible. 95 // possible.
96 // 96 //
97 // When parsing an HTML form, this must always be set. 97 // When parsing an HTML form, this must always be set.
98 string16 submit_element; 98 base::string16 submit_element;
99 99
100 // The name of the username input element. Optional (improves scoring). 100 // The name of the username input element. Optional (improves scoring).
101 // 101 //
102 // When parsing an HTML form, this must always be set. 102 // When parsing an HTML form, this must always be set.
103 string16 username_element; 103 base::string16 username_element;
104 104
105 // The username. Optional. 105 // The username. Optional.
106 // 106 //
107 // When parsing an HTML form, this is typically empty unless the site 107 // When parsing an HTML form, this is typically empty unless the site
108 // has implemented some form of autofill. 108 // has implemented some form of autofill.
109 string16 username_value; 109 base::string16 username_value;
110 110
111 // This member is populated in cases where we there are multiple input 111 // This member is populated in cases where we there are multiple input
112 // elements that could possibly be the username. Used when our heuristics for 112 // elements that could possibly be the username. Used when our heuristics for
113 // determining the username are incorrect. Optional. 113 // determining the username are incorrect. Optional.
114 // 114 //
115 // When parsing an HTML form, this is typically empty. 115 // When parsing an HTML form, this is typically empty.
116 std::vector<string16> other_possible_usernames; 116 std::vector<base::string16> other_possible_usernames;
117 117
118 // The name of the password input element, Optional (improves scoring). 118 // The name of the password input element, Optional (improves scoring).
119 // 119 //
120 // When parsing an HTML form, this must always be set. 120 // When parsing an HTML form, this must always be set.
121 string16 password_element; 121 base::string16 password_element;
122 122
123 // The password. Required. 123 // The password. Required.
124 // 124 //
125 // When parsing an HTML form, this is typically empty. 125 // When parsing an HTML form, this is typically empty.
126 string16 password_value; 126 base::string16 password_value;
127 127
128 // If the form was a change password form, the name of the 128 // If the form was a change password form, the name of the
129 // 'old password' input element. Optional. 129 // 'old password' input element. Optional.
130 string16 old_password_element; 130 base::string16 old_password_element;
131 131
132 // The old password. Optional. 132 // The old password. Optional.
133 string16 old_password_value; 133 base::string16 old_password_value;
134 134
135 // Whether or not this login was saved under an HTTPS session with a valid 135 // Whether or not this login was saved under an HTTPS session with a valid
136 // SSL cert. We will never match or autofill a PasswordForm where 136 // SSL cert. We will never match or autofill a PasswordForm where
137 // ssl_valid == true with a PasswordForm where ssl_valid == false. This means 137 // ssl_valid == true with a PasswordForm where ssl_valid == false. This means
138 // passwords saved under HTTPS will never get autofilled onto an HTTP page. 138 // passwords saved under HTTPS will never get autofilled onto an HTTP page.
139 // When importing, this should be set to true if the page URL is HTTPS, thus 139 // When importing, this should be set to true if the page URL is HTTPS, thus
140 // giving it "the benefit of the doubt" that the SSL cert was valid when it 140 // giving it "the benefit of the doubt" that the SSL cert was valid when it
141 // was saved. Default to false. 141 // was saved. Default to false.
142 bool ssl_valid; 142 bool ssl_valid;
143 143
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 // Equality operators for testing. 190 // Equality operators for testing.
191 bool operator==(const PasswordForm& form) const; 191 bool operator==(const PasswordForm& form) const;
192 bool operator!=(const PasswordForm& form) const; 192 bool operator!=(const PasswordForm& form) const;
193 193
194 PasswordForm(); 194 PasswordForm();
195 ~PasswordForm(); 195 ~PasswordForm();
196 }; 196 };
197 197
198 // Map username to PasswordForm* for convenience. See password_form_manager.h. 198 // Map username to PasswordForm* for convenience. See password_form_manager.h.
199 typedef std::map<string16, PasswordForm*> PasswordFormMap; 199 typedef std::map<base::string16, PasswordForm*> PasswordFormMap;
200 200
201 // For testing. 201 // For testing.
202 std::ostream& operator<<(std::ostream& os, 202 std::ostream& operator<<(std::ostream& os,
203 const autofill::PasswordForm& form); 203 const autofill::PasswordForm& form);
204 204
205 } // namespace autofill 205 } // namespace autofill
206 206
207 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ 207 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__
OLDNEW
« no previous file with comments | « components/autofill/core/common/form_field_data.cc ('k') | components/breakpad/app/hard_error_handler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698