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 in response to |
222 // This field isn't synced deliberately. | 222 // 'navigator.credentials.request()' without user interaction. |
223 bool is_zero_click; | 223 // Once user selects this credential the flag is reseted. |
224 bool skip_next_zero_click; | |
Garrett Casto
2015/02/04 06:58:40
As someone that isn't particularly involved here,
vasilii
2015/02/04 12:44:02
Done.
| |
224 | 225 |
225 // Returns true if this match was found using public suffix matching. | 226 // Returns true if this match was found using public suffix matching. |
226 bool IsPublicSuffixMatch() const; | 227 bool IsPublicSuffixMatch() const; |
227 | 228 |
228 // Equality operators for testing. | 229 // Equality operators for testing. |
229 bool operator==(const PasswordForm& form) const; | 230 bool operator==(const PasswordForm& form) const; |
230 bool operator!=(const PasswordForm& form) const; | 231 bool operator!=(const PasswordForm& form) const; |
231 | 232 |
232 PasswordForm(); | 233 PasswordForm(); |
233 ~PasswordForm(); | 234 ~PasswordForm(); |
234 }; | 235 }; |
235 | 236 |
236 // Map username to PasswordForm* for convenience. See password_form_manager.h. | 237 // Map username to PasswordForm* for convenience. See password_form_manager.h. |
237 typedef std::map<base::string16, PasswordForm*> PasswordFormMap; | 238 typedef std::map<base::string16, PasswordForm*> PasswordFormMap; |
238 | 239 |
239 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; | 240 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; |
240 | 241 |
241 // For testing. | 242 // For testing. |
242 std::ostream& operator<<(std::ostream& os, | 243 std::ostream& operator<<(std::ostream& os, |
243 const autofill::PasswordForm& form); | 244 const autofill::PasswordForm& form); |
244 | 245 |
245 } // namespace autofill | 246 } // namespace autofill |
246 | 247 |
247 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ | 248 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
OLD | NEW |