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

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

Issue 894583003: Rename PasswordForm::is_zero_click to PasswordForm::skip_next_zero_click. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix linux Created 5 years, 10 months 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
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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_zero_click;
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__
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_store_mac_unittest.cc ('k') | components/autofill/core/common/password_form.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698