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

Unified Diff: components/autofill/core/common/password_form_generation_data.h

Issue 2728353002: [Password Generation] Process CONFIRMATION_PASSWORD votes on the client side (Closed)
Patch Set: Changed usage of base::Optional Created 3 years, 9 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/core/common/password_form_generation_data.h
diff --git a/components/autofill/core/common/password_form_generation_data.h b/components/autofill/core/common/password_form_generation_data.h
index d010d9a8ddb0b7185407b0dd7ac15e2c684c93b8..f14d295382154df80123c4950d86bc892641777f 100644
--- a/components/autofill/core/common/password_form_generation_data.h
+++ b/components/autofill/core/common/password_form_generation_data.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include "base/optional.h"
#include "base/strings/string16.h"
#include "components/autofill/core/common/form_field_data.h"
#include "components/autofill/core/common/signatures_util.h"
@@ -17,6 +18,12 @@ namespace autofill {
// Structure used for sending information from browser to renderer about on
// which fields password should be generated.
struct PasswordFormGenerationData {
+ PasswordFormGenerationData();
+ PasswordFormGenerationData(FormSignature form_signature,
+ FieldSignature field_signature);
+ PasswordFormGenerationData(const PasswordFormGenerationData& other);
+ ~PasswordFormGenerationData();
+
// The unique signature of form where password should be generated
// (see components/autofill/core/browser/form_structure.h).
FormSignature form_signature;
@@ -24,6 +31,10 @@ struct PasswordFormGenerationData {
// The unique signature of field where password should be generated
// (see components/autofill/core/browser/autofill_field.h).
FieldSignature field_signature;
+
+ // The unique signature of the confirmation field where the generated password
+ // should be copied to.
+ base::Optional<FieldSignature> confirmation_field_signature;
};
} // namespace autofill
« no previous file with comments | « components/autofill/core/common/BUILD.gn ('k') | components/autofill/core/common/password_form_generation_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698