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

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

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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_FILL_DATA_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_FILL_DATA_H_
6 #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_FILL_DATA_H_ 6 #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_FILL_DATA_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // before we autofill the password. By default, this is off unless the 70 // before we autofill the password. By default, this is off unless the
71 // PasswordManager determined there is an additional risk associated with this 71 // PasswordManager determined there is an additional risk associated with this
72 // form. This can happen, for example, if action URI's of the observed form 72 // form. This can happen, for example, if action URI's of the observed form
73 // and our saved representation don't match up. 73 // and our saved representation don't match up.
74 bool wait_for_username; 74 bool wait_for_username;
75 75
76 // True if this form is a change password form. 76 // True if this form is a change password form.
77 bool is_possible_change_password_form; 77 bool is_possible_change_password_form;
78 78
79 PasswordFormFillData(); 79 PasswordFormFillData();
80 PasswordFormFillData(const PasswordFormFillData& other);
80 ~PasswordFormFillData(); 81 ~PasswordFormFillData();
81 }; 82 };
82 83
83 // Create a FillData structure in preparation for autofilling a form, 84 // Create a FillData structure in preparation for autofilling a form,
84 // from basic_data identifying which form to fill, and a collection of 85 // from basic_data identifying which form to fill, and a collection of
85 // matching stored logins to use as username/password values. 86 // matching stored logins to use as username/password values.
86 // |preferred_match| should equal (address) one of matches. 87 // |preferred_match| should equal (address) one of matches.
87 // |wait_for_username_before_autofill| is true if we should not autofill 88 // |wait_for_username_before_autofill| is true if we should not autofill
88 // anything until the user typed in a valid username and blurred the field. 89 // anything until the user typed in a valid username and blurred the field.
89 // If |enable_possible_usernames| is true, we will populate possible_usernames 90 // If |enable_possible_usernames| is true, we will populate possible_usernames
90 // in |result|. 91 // in |result|.
91 void InitPasswordFormFillData( 92 void InitPasswordFormFillData(
92 const PasswordForm& form_on_page, 93 const PasswordForm& form_on_page,
93 const PasswordFormMap& matches, 94 const PasswordFormMap& matches,
94 const PasswordForm* const preferred_match, 95 const PasswordForm* const preferred_match,
95 bool wait_for_username_before_autofill, 96 bool wait_for_username_before_autofill,
96 bool enable_other_possible_usernames, 97 bool enable_other_possible_usernames,
97 PasswordFormFillData* result); 98 PasswordFormFillData* result);
98 99
99 } // namespace autofill 100 } // namespace autofill
100 101
101 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_FILL_DATA_H__ 102 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_FILL_DATA_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698