OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_ |
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // Used by PasswordManager to determine whether or not to display | 106 // Used by PasswordManager to determine whether or not to display |
107 // a SavePasswordBar when given the green light to save the PasswordForm | 107 // a SavePasswordBar when given the green light to save the PasswordForm |
108 // managed by this. | 108 // managed by this. |
109 bool IsNewLogin() const; | 109 bool IsNewLogin() const; |
110 | 110 |
111 // Returns true if the current pending credentials were found using | 111 // Returns true if the current pending credentials were found using |
112 // origin matching of the public suffix, instead of the signon realm of the | 112 // origin matching of the public suffix, instead of the signon realm of the |
113 // form. | 113 // form. |
114 bool IsPendingCredentialsPublicSuffixMatch() const; | 114 bool IsPendingCredentialsPublicSuffixMatch() const; |
115 | 115 |
116 // Checks if the form is a valid password form. Forms which lack password | |
117 // field are not considered valid. | |
118 bool HasValidPasswordForm() const; | |
119 | |
120 // Through |driver|, supply the associated frame with appropriate information | 116 // Through |driver|, supply the associated frame with appropriate information |
121 // (fill data, whether to allow password generation, etc.). If this is called | 117 // (fill data, whether to allow password generation, etc.). If this is called |
122 // before |this| has data from the PasswordStore, the execution will be | 118 // before |this| has data from the PasswordStore, the execution will be |
123 // delayed until the data arrives. | 119 // delayed until the data arrives. |
124 void ProcessFrame(const base::WeakPtr<PasswordManagerDriver>& driver); | 120 void ProcessFrame(const base::WeakPtr<PasswordManagerDriver>& driver); |
125 | 121 |
126 void OnGetPasswordStoreResults( | 122 void OnGetPasswordStoreResults( |
127 ScopedVector<autofill::PasswordForm> results) override; | 123 ScopedVector<autofill::PasswordForm> results) override; |
128 | 124 |
129 // A user opted to 'never remember' passwords for this form. | 125 // A user opted to 'never remember' passwords for this form. |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 // as our classification of the form can change depending on what data the | 442 // as our classification of the form can change depending on what data the |
447 // user has entered. | 443 // user has entered. |
448 FormType form_type_; | 444 FormType form_type_; |
449 | 445 |
450 DISALLOW_COPY_AND_ASSIGN(PasswordFormManager); | 446 DISALLOW_COPY_AND_ASSIGN(PasswordFormManager); |
451 }; | 447 }; |
452 | 448 |
453 } // namespace password_manager | 449 } // namespace password_manager |
454 | 450 |
455 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_ | 451 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_ |
OLD | NEW |