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

Unified Diff: components/autofill/content/renderer/password_autofill_agent.h

Issue 1161023008: Suggest to fill password change forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renaming and showing password field suggestions rarely Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698