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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
211 // | 211 // |
212 // User friendly name to show in the UI. | 212 // User friendly name to show in the UI. |
213 base::string16 display_name; | 213 base::string16 display_name; |
214 | 214 |
215 // The URL of the user's avatar to display in the UI. | 215 // The URL of the user's avatar to display in the UI. |
216 GURL avatar_url; | 216 GURL avatar_url; |
217 | 217 |
218 // The URL of identity provider used for federated login. | 218 // The URL of identity provider used for federated login. |
219 GURL federation_url; | 219 GURL federation_url; |
220 | 220 |
221 // If true, Chrome will sign the user in automatically using the credentials. | 221 // If true, Chrome will not return this credential to a site automatically. |
Mike West
2015/02/03 14:15:41
Can you add something about the API to which this
vasilii
2015/02/03 19:49:17
Done.
| |
222 // This field isn't synced deliberately. | 222 // Once user selects this credential the flag is reseted. |
223 bool is_zero_click; | 223 bool skip_next_zero_click; |
224 | 224 |
225 // Returns true if this match was found using public suffix matching. | 225 // Returns true if this match was found using public suffix matching. |
226 bool IsPublicSuffixMatch() const; | 226 bool IsPublicSuffixMatch() const; |
227 | 227 |
228 // Equality operators for testing. | 228 // Equality operators for testing. |
229 bool operator==(const PasswordForm& form) const; | 229 bool operator==(const PasswordForm& form) const; |
230 bool operator!=(const PasswordForm& form) const; | 230 bool operator!=(const PasswordForm& form) const; |
231 | 231 |
232 PasswordForm(); | 232 PasswordForm(); |
233 ~PasswordForm(); | 233 ~PasswordForm(); |
234 }; | 234 }; |
235 | 235 |
236 // Map username to PasswordForm* for convenience. See password_form_manager.h. | 236 // Map username to PasswordForm* for convenience. See password_form_manager.h. |
237 typedef std::map<base::string16, PasswordForm*> PasswordFormMap; | 237 typedef std::map<base::string16, PasswordForm*> PasswordFormMap; |
238 | 238 |
239 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; | 239 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; |
240 | 240 |
241 // For testing. | 241 // For testing. |
242 std::ostream& operator<<(std::ostream& os, | 242 std::ostream& operator<<(std::ostream& os, |
243 const autofill::PasswordForm& form); | 243 const autofill::PasswordForm& form); |
244 | 244 |
245 } // namespace autofill | 245 } // namespace autofill |
246 | 246 |
247 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ | 247 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
OLD | NEW |