| // Copyright 2015 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_GENERATION_DATA_H_ |
| #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_GENERATION_DATA_H_ |
| |
| #include "base/strings/string16.h" |
| #include "components/autofill/core/common/form_field_data.h" |
| #include "url/gurl.h" |
| |
| namespace autofill { |
| |
| // Structure used for sending information from browser to renderer about on |
| // which fields password should be generated. |
| struct PasswordFormGenerationData { |
| // The name of the form. |
| base::string16 name; |
| |
| // The action target of the form; this URL consists of the scheme, host, port |
| // and path; the rest is stripped. |
| GURL action; |
| |
| // Field in which password should be generated. |
| FormFieldData generation_field; |
| }; |
| |
| } // namespace autofill |
| |
| #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_GENERATION_DATA_H_ |