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 f0f3267f9871b666b171f1284bd6ad621d0a6867..52808483533821767af128526da88de2691fb0a6 100644 |
--- a/components/autofill/content/renderer/password_autofill_agent.h |
+++ b/components/autofill/content/renderer/password_autofill_agent.h |
@@ -6,6 +6,7 @@ |
#define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
#include <map> |
+#include <set> |
#include <vector> |
#include "base/gtest_prod_util.h" |
@@ -178,6 +179,7 @@ class PasswordAutofillAgent : public content::RenderFrameObserver { |
bool is_same_page_navigation) override; |
void WillSendSubmitEvent(const blink::WebFormElement& form) override; |
void WillSubmitForm(const blink::WebFormElement& form) override; |
+ void FocusedNodeChanged(const blink::WebNode& node) override; |
// Legacy RenderViewObserver: |
void DidStartLoading(); |
@@ -270,6 +272,10 @@ class PasswordAutofillAgent : public content::RenderFrameObserver { |
std::map<const blink::WebInputElement, blink::WebString> |
nonscript_modified_values_; |
+ // Contains all username fields that were in focus. It means that these fields |
+ // are visible to the user. |
+ std::set<const blink::WebInputElement> had_focus_username_fields_; |
+ |
PasswordValueGatekeeper gatekeeper_; |
// True indicates that user debug information should be logged. |