summaryrefslogtreecommitdiffstats
path: root/components/autofill/renderer/password_autofill_agent.h
diff options
context:
space:
mode:
Diffstat (limited to 'components/autofill/renderer/password_autofill_agent.h')
-rw-r--r--components/autofill/renderer/password_autofill_agent.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/components/autofill/renderer/password_autofill_agent.h b/components/autofill/renderer/password_autofill_agent.h
index 1816ccb..62354f9 100644
--- a/components/autofill/renderer/password_autofill_agent.h
+++ b/components/autofill/renderer/password_autofill_agent.h
@@ -54,6 +54,15 @@ class PasswordAutofillAgent : public content::RenderViewObserver {
private:
friend class PasswordAutofillAgentTest;
+ enum OtherPossibleUsernamesUsage {
+ NOTHING_TO_AUTOFILL,
+ OTHER_POSSIBLE_USERNAMES_ABSENT,
+ OTHER_POSSIBLE_USERNAMES_PRESENT,
+ OTHER_POSSIBLE_USERNAME_SHOWN,
+ OTHER_POSSIBLE_USERNAME_SELECTED,
+ OTHER_POSSIBLE_USERNAMES_MAX
+ };
+
struct PasswordInfo {
WebKit::WebInputElement password_field;
PasswordFormFillData fill_data;
@@ -64,6 +73,7 @@ class PasswordAutofillAgent : public content::RenderViewObserver {
// RenderViewObserver:
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+ virtual void DidStartLoading() OVERRIDE;
virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame) OVERRIDE;
virtual void DidFinishLoad(WebKit::WebFrame* frame) OVERRIDE;
virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE;
@@ -113,6 +123,9 @@ class PasswordAutofillAgent : public content::RenderViewObserver {
// Used to disable and hide the popup.
bool disable_popup_;
+ // Used for UMA stats.
+ OtherPossibleUsernamesUsage usernames_usage_;
+
// Pointer to the WebView. Used to access page scale factor.
WebKit::WebView* web_view_;