Index: components/autofill/core/common/password_form.h |
diff --git a/components/autofill/core/common/password_form.h b/components/autofill/core/common/password_form.h |
index 927befc0b623096b80b6515a960ef9b11ae84de0..783eda54786c8e433d20807d7799e65c5523b62b 100644 |
--- a/components/autofill/core/common/password_form.h |
+++ b/components/autofill/core/common/password_form.h |
@@ -38,6 +38,16 @@ namespace autofill { |
// entry to the database and how they can affect the matching process. |
struct PasswordForm { |
+ // Enum to keep track of what information has been sent to the server about |
+ // this form regarding password generation. |
+ enum GenerationUploadStatus { |
+ NO_SIGNAL_SENT, |
+ POSITIVE_SIGNAL_SENT, |
+ NEGATIVE_SIGNAL_SENT, |
+ // Reserve a few values for future use. |
+ UNKNOWN_STATUS = 10 |
+ }; |
+ |
// Enum to differentiate between HTML form based authentication, and dialogs |
// using basic or digest schemes. Default is SCHEME_HTML. Only PasswordForms |
// of the same Scheme will be matched/autofilled against each other. |
@@ -207,6 +217,9 @@ struct PasswordForm { |
// When parsing an HTML form, this is normally set. |
FormData form_data; |
+ // What information has been sent to the Autofill server about this form. |
+ GenerationUploadStatus generation_upload_status; |
+ |
// These following fields are set by a website using the Credential Manager |
// API. They will be empty and remain unused for sites which do not use that |
// API. |