Chromium Code Reviews| Index: components/autofill/content/renderer/password_autofill_agent.h |
| diff --git a/components/autofill/content/renderer/password_autofill_agent.h b/components/autofill/content/renderer/password_autofill_agent.h |
| index 486e8eb34e3202f29e56a32a4083a2098f530edc..58e248021c0b35962ce74120b80c12adab97183a 100644 |
| --- a/components/autofill/content/renderer/password_autofill_agent.h |
| +++ b/components/autofill/content/renderer/password_autofill_agent.h |
| @@ -88,10 +88,12 @@ class PasswordAutofillAgent : public content::RenderFrameObserver, |
| bool DidClearAutofillSelection( |
| const blink::WebFormControlElement& control_element); |
| - // If the form is non-secure, show the "Not Secure" warning on username and |
| - // password input fields. |
| + // If "Login not secure" feature is enabled and if the form is non-secure. |
|
Mathieu
2017/05/01 13:40:00
// Returns whether a "Login not secure" warning sh
Jialiu Lin
2017/05/01 18:59:10
Done.
|
| bool ShouldShowNotSecureWarning(const blink::WebInputElement& element); |
| + // If the element is a username or password textfield. |
|
Mathieu
2017/05/01 13:40:00
*Returns whether the element is...
Jialiu Lin
2017/05/01 18:59:09
Done.
|
| + bool IsUsernameOrPasswordField(const blink::WebInputElement& element); |
| + |
| // Shows an Autofill popup with username suggestions for |element|. If |
| // |show_all| is |true|, will show all possible suggestions for that element, |
| // otherwise shows suggestions based on current value of |element|. |
| @@ -286,6 +288,9 @@ class PasswordAutofillAgent : public content::RenderFrameObserver, |
| // True indicates that a request for credentials has been sent to the store. |
| bool sent_request_to_store_; |
| + // True indicates that a safe browsing reputation check has been triggered. |
| + bool checked_safe_browsing_reputation_; |
| + |
| // Records the username typed before suggestions preview. |
| base::string16 username_query_prefix_; |