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

Unified Diff: components/autofill/content/public/interfaces/autofill_types.mojom

Issue 2101533002: [Autofill] Add typemap for PasswordForm and PasswordFormGenerationData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: origin --> origin_with_path Created 4 years, 5 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/public/interfaces/autofill_types.mojom
diff --git a/components/autofill/content/public/interfaces/autofill_types.mojom b/components/autofill/content/public/interfaces/autofill_types.mojom
index 4473f558ee9c03b3b261f858cfe8abf423726c9a..8fab0aad9691a3a308813ff6cfe353f69297dbb0 100644
--- a/components/autofill/content/public/interfaces/autofill_types.mojom
+++ b/components/autofill/content/public/interfaces/autofill_types.mojom
@@ -4,6 +4,8 @@
module autofill.mojom;
+import "mojo/common/common_custom_types.mojom";
+import "url/mojo/origin.mojom";
import "url/mojo/url.mojom";
// autofill::FormFieldData::CheckStatus
@@ -27,6 +29,35 @@ enum TextDirection {
TEXT_DIRECTION_NUM_DIRECTIONS = 3
};
+// autofill::PasswordForm::GenerationUploadStatus
+enum GenerationUploadStatus {
+ NO_SIGNAL_SENT,
+ POSITIVE_SIGNAL_SENT,
+ NEGATIVE_SIGNAL_SENT,
+ UNKNOWN_STATUS = 10
+};
+
+// autofill::PasswordForm::Layout
+enum PasswordFormLayout {
+ LAYOUT_OTHER,
+ LAYOUT_LOGIN_AND_SIGNUP
+};
+
+// autofill::PasswordForm::Type
+enum PasswordFormType {
+ TYPE_MANUAL,
+ TYPE_GENERATED,
+ TYPE_API
+};
+
+enum PasswordFormScheme {
+ SCHEME_HTML,
+ SCHEME_BASIC,
+ SCHEME_DIGEST,
+ SCHEME_OTHER,
+ SCHEME_USERNAME_ONLY
+};
+
struct FormFieldData {
string label;
string name;
@@ -97,3 +128,47 @@ struct PasswordFormFillData {
bool wait_for_username;
bool is_possible_change_password_form;
};
+
+struct PasswordFormGenerationData {
+ string name;
+ url.mojom.Url action;
+ FormFieldData generation_field;
+};
+
+struct PasswordForm {
+ PasswordFormScheme scheme;
+ string signon_realm;
+ url.mojom.Url origin_with_path;
+ url.mojom.Url action;
+ string affiliated_web_realm;
+ string submit_element;
+ string username_element;
+ bool username_marked_by_site;
+ string username_value;
+ array<string> other_possible_usernames;
+ string password_element;
+ string password_value;
+ bool password_value_is_default;
+ string new_password_element;
+ string new_password_value;
+ bool new_password_value_is_default;
+ bool new_password_marked_by_site;
+ bool ssl_valid;
+ bool preferred;
+ mojo.common.mojom.Time date_created;
+ mojo.common.mojom.Time date_synced;
+ bool blacklisted_by_user;
+ PasswordFormType type;
+ int32 times_used;
+ FormData form_data;
+ GenerationUploadStatus generation_upload_status;
+ string display_name;
+ url.mojom.Url icon_url;
+ url.mojom.Origin federation_origin;
+ bool skip_zero_click;
+ PasswordFormLayout layout;
+ bool was_parsed_using_autofill_predictions;
+ bool is_public_suffix_match;
+ bool is_affiliation_based_match;
+ bool does_look_like_signup_form;
+};

Powered by Google App Engine
This is Rietveld 408576698