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

Side by Side Diff: components/autofill/core/browser/proto/server.proto

Issue 2640783002: [Password Generation] Send id attribute to server for HTML based form classifier (Closed)
Patch Set: Fixed failed test Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 option optimize_for = LITE_RUNTIME; 7 option optimize_for = LITE_RUNTIME;
8 8
9 package autofill; 9 package autofill;
10 10
(...skipping 15 matching lines...) Expand all
26 // This message is the result of an Autofill query. It holds the field type 26 // This message is the result of an Autofill query. It holds the field type
27 // information. 27 // information.
28 // Next available id: 7 28 // Next available id: 7
29 message AutofillQueryResponseContents { 29 message AutofillQueryResponseContents {
30 optional bool upload_required = 1; 30 optional bool upload_required = 1;
31 repeated group Field = 2 { required fixed32 autofill_type = 3; } 31 repeated group Field = 2 { required fixed32 autofill_type = 3; }
32 } 32 }
33 33
34 // This message contains information about the field types in a single form. 34 // This message contains information about the field types in a single form.
35 // It is sent by the toolbar to contribute to the field type statistics. 35 // It is sent by the toolbar to contribute to the field type statistics.
36 // Next available id: 21 36 // Next available id: 22
37 message AutofillUploadContents { 37 message AutofillUploadContents {
38 required string client_version = 1; 38 required string client_version = 1;
39 required fixed64 form_signature = 2; 39 required fixed64 form_signature = 2;
40 40
41 // True if the autofill feature was used to fill this form, false otherwise. 41 // True if the autofill feature was used to fill this form, false otherwise.
42 required bool autofill_used = 3; 42 required bool autofill_used = 3;
43 43
44 // A string representing a bit array of what personal information items 44 // A string representing a bit array of what personal information items
45 // the user has entered in the autofill settings dialog. 45 // the user has entered in the autofill settings dialog.
46 // The corresponding bit is set if the user has that particular 46 // The corresponding bit is set if the user has that particular
47 // item entered and is not set otherwise. 47 // item entered and is not set otherwise.
48 required string data_present = 4; 48 required string data_present = 4;
49 49
50 // List of the fields in the form and their types. 50 // List of the fields in the form and their types.
51 repeated group Field = 5 { 51 repeated group Field = 5 {
52 // Field identification inside the current form. 52 // Field identification inside the current form.
53 required fixed32 signature = 6; 53 required fixed32 signature = 6;
54 54
55 // Type of the field, e.g. what type of personal information did the user 55 // Type of the field, e.g. what type of personal information did the user
56 // enter in that field before form submission. There is a predefined 56 // enter in that field before form submission. There is a predefined
57 // enum of types located at 57 // enum of types located at
58 // components/autofill/core/browser/field_types.h 58 // components/autofill/core/browser/field_types.h
59 // AutoFillFieldType 59 // AutoFillFieldType
60 required fixed32 autofill_type = 7; 60 required fixed32 autofill_type = 7;
61 61
62 // The value of the name attribute on the field, if present. 62 // The value of the name attribute on the field, if present. Otherwise, the
63 // value of the id attribute. See HTMLFormControlElement::nameForAutofill.
63 optional string name = 8; 64 optional string name = 8;
64 65
65 // The value of the autocomplete attribute on the field, if present. 66 // The value of the autocomplete attribute on the field, if present.
66 optional string autocomplete = 9; 67 optional string autocomplete = 9;
67 68
68 // The type of input control for this field (e.g. text, textarea, email). 69 // The type of input control for this field (e.g. text, textarea, email).
69 optional string type = 10; 70 optional string type = 10;
70 71
71 enum PasswordGenerationType { 72 enum PasswordGenerationType {
72 NO_GENERATION = 0; 73 NO_GENERATION = 0;
(...skipping 13 matching lines...) Expand all
86 } 87 }
87 // The outcome of HTML parsing based form classifier. 88 // The outcome of HTML parsing based form classifier.
88 optional FormClassifierOutcome form_classifier_outcome = 18; 89 optional FormClassifierOutcome form_classifier_outcome = 18;
89 90
90 // The value of the class attribute on the field, if present. 91 // The value of the class attribute on the field, if present.
91 optional string css_classes = 19; 92 optional string css_classes = 19;
92 93
93 // The properties mask (i.e. whether the field was autofilled, user 94 // The properties mask (i.e. whether the field was autofilled, user
94 // modified, etc.) See FieldPropertiesFlags. 95 // modified, etc.) See FieldPropertiesFlags.
95 optional uint32 properties_mask = 20; 96 optional uint32 properties_mask = 20;
97
98 // The value of the id attribute, if it differs from the name attribute.
99 // Otherwise, this field is absent.
100 optional string id = 21;
96 } 101 }
97 // Signature of the form action host (e.g. Hash64Bit("example.com")). 102 // Signature of the form action host (e.g. Hash64Bit("example.com")).
98 optional fixed64 action_signature = 13; 103 optional fixed64 action_signature = 13;
99 104
100 // Signature of the form which is used for password generation debugging. 105 // Signature of the form which is used for password generation debugging.
101 // Currently is used when password generated on a password field of a 106 // Currently is used when password generated on a password field of a
102 // registration form is used on a password field of a login form. 107 // registration form is used on a password field of a login form.
103 optional fixed64 login_form_signature = 14; 108 optional fixed64 login_form_signature = 14;
104 109
105 // Whether a form submission event was observed. 110 // Whether a form submission event was observed.
106 optional bool submission = 15; 111 optional bool submission = 15;
107 112
108 // The form name. 113 // The form name.
109 optional string form_name = 16; 114 optional string form_name = 16;
110 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698