OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_GENERATION_DATA_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_GENERATION_DATA_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_GENERATION_DATA_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_GENERATION_DATA_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
9 #include "components/autofill/core/common/form_field_data.h" | 11 #include "components/autofill/core/common/form_field_data.h" |
| 12 #include "components/autofill/core/common/signatures_util.h" |
10 #include "url/gurl.h" | 13 #include "url/gurl.h" |
11 | 14 |
12 namespace autofill { | 15 namespace autofill { |
13 | 16 |
14 // Structure used for sending information from browser to renderer about on | 17 // Structure used for sending information from browser to renderer about on |
15 // which fields password should be generated. | 18 // which fields password should be generated. |
16 struct PasswordFormGenerationData { | 19 struct PasswordFormGenerationData { |
17 // The name of the form. | 20 // The unique signature of form where password should be generated |
18 base::string16 name; | 21 // (see components/autofill/core/browser/form_structure.h). |
| 22 FormSignature form_signature; |
19 | 23 |
20 // The action target of the form; this URL consists of the scheme, host, port | 24 // The unique signature of field where password should be generated |
21 // and path; the rest is stripped. | 25 // (see components/autofill/core/browser/autofill_field.h). |
22 GURL action; | 26 FieldSignature field_signature; |
23 | |
24 // Field in which password should be generated. | |
25 FormFieldData generation_field; | |
26 }; | 27 }; |
27 | 28 |
28 } // namespace autofill | 29 } // namespace autofill |
29 | 30 |
30 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_GENERATION_DATA_H_ | 31 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_GENERATION_DATA_H_ |
OLD | NEW |