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

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

Issue 520583003: Sync new PasswordForm fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove the blank Created 6 years, 3 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
« no previous file with comments | « no previous file | components/password_manager/core/browser/password_syncable_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // User friendly name to show in the UI. 213 // User friendly name to show in the UI.
214 base::string16 display_name; 214 base::string16 display_name;
215 215
216 // The URL of the user's avatar to display in the UI. 216 // The URL of the user's avatar to display in the UI.
217 GURL avatar_url; 217 GURL avatar_url;
218 218
219 // The URL of identity provider used for federated login. 219 // The URL of identity provider used for federated login.
220 GURL federation_url; 220 GURL federation_url;
221 221
222 // If true, Chrome will sign the user in automatically using the credentials. 222 // If true, Chrome will sign the user in automatically using the credentials.
223 // This field isn't synced deliberately.
223 bool is_zero_click; 224 bool is_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 | « no previous file | components/password_manager/core/browser/password_syncable_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698