| OLD | NEW |
| 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 16 matching lines...) Expand all Loading... |
| 27 // This message is the result of an Autofill query. It holds the field type | 27 // This message is the result of an Autofill query. It holds the field type |
| 28 // information. | 28 // information. |
| 29 // Next available id: 7 | 29 // Next available id: 7 |
| 30 message AutofillQueryResponseContents { | 30 message AutofillQueryResponseContents { |
| 31 optional bool upload_required = 1; | 31 optional bool upload_required = 1; |
| 32 repeated group Field = 2 { required fixed32 autofill_type = 3; } | 32 repeated group Field = 2 { required fixed32 autofill_type = 3; } |
| 33 } | 33 } |
| 34 | 34 |
| 35 // This message contains information about the field types in a single form. | 35 // This message contains information about the field types in a single form. |
| 36 // It is sent by the toolbar to contribute to the field type statistics. | 36 // It is sent by the toolbar to contribute to the field type statistics. |
| 37 // Next available id: 17 | 37 // Next available id: 18 |
| 38 message AutofillUploadContents { | 38 message AutofillUploadContents { |
| 39 required string client_version = 1; | 39 required string client_version = 1; |
| 40 required fixed64 form_signature = 2; | 40 required fixed64 form_signature = 2; |
| 41 | 41 |
| 42 // True if the autofill feature was used to fill this form, false otherwise. | 42 // True if the autofill feature was used to fill this form, false otherwise. |
| 43 required bool autofill_used = 3; | 43 required bool autofill_used = 3; |
| 44 | 44 |
| 45 // A string representing a bit array of what personal information items | 45 // A string representing a bit array of what personal information items |
| 46 // the user has entered in the autofill settings dialog. | 46 // the user has entered in the autofill settings dialog. |
| 47 // The corresponding bit is set if the user has that particular | 47 // The corresponding bit is set if the user has that particular |
| (...skipping 17 matching lines...) Expand all Loading... |
| 65 | 65 |
| 66 // The value of the autocomplete attribute on the field, if present. | 66 // The value of the autocomplete attribute on the field, if present. |
| 67 optional string autocomplete = 9; | 67 optional string autocomplete = 9; |
| 68 | 68 |
| 69 // 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). |
| 70 optional string type = 10; | 70 optional string type = 10; |
| 71 | 71 |
| 72 // The label that is used alongside the field. Its value is truncated at | 72 // The label that is used alongside the field. Its value is truncated at |
| 73 // 200 characters. | 73 // 200 characters. |
| 74 optional string label = 11; | 74 optional string label = 11; |
| 75 |
| 76 enum PasswordGenerationType { |
| 77 NO_GENERATION = 0; |
| 78 AUTOMATICALLY_TRIGGERED_GENERATION_ON_SIGN_UP_FORM = 1; |
| 79 AUTOMATICALLY_TRIGGERED_GENERATION_ON_CHANGE_PASSWORD_FORM = 2; |
| 80 MANUALLY_TRIGGERED_GENERATION_ON_SIGN_UP_FORM = 3; |
| 81 MANUALLY_TRIGGERED_GENERATION_ON_CHANGE_PASSWORD_FORM = 4; |
| 82 } |
| 83 // The type of password generation, if it happened. |
| 84 optional PasswordGenerationType generation_type = 17; |
| 75 } | 85 } |
| 76 // Signature of the form action host (e.g. Hash64Bit("example.com")). | 86 // Signature of the form action host (e.g. Hash64Bit("example.com")). |
| 77 optional fixed64 action_signature = 13; | 87 optional fixed64 action_signature = 13; |
| 78 | 88 |
| 79 // Signature of the form which is used for password generation debugging. | 89 // Signature of the form which is used for password generation debugging. |
| 80 // Currently is used when password generated on a password field of a | 90 // Currently is used when password generated on a password field of a |
| 81 // registration form is used on a password field of a login form. | 91 // registration form is used on a password field of a login form. |
| 82 optional fixed64 login_form_signature = 14; | 92 optional fixed64 login_form_signature = 14; |
| 83 | 93 |
| 84 // Whether a form submission event was observed. | 94 // Whether a form submission event was observed. |
| 85 optional bool submission = 15; | 95 optional bool submission = 15; |
| 86 | 96 |
| 87 // The form name. | 97 // The form name. |
| 88 optional string form_name = 16; | 98 optional string form_name = 16; |
| 89 } | 99 } |
| OLD | NEW |