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

Side by Side Diff: components/autofill/core/common/password_form_generation_data.h

Issue 2318533002: [Password Generation] Use signatures for form matching (Closed)
Patch Set: Sent to review Created 4 years, 3 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 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 FormSignature form_signature;
dcheng 2016/09/07 19:56:39 This (or the mojom or both) needs some comments to
kolos1 2016/09/08 08:34:27 Done.
18 base::string16 name;
19 21
20 // The action target of the form; this URL consists of the scheme, host, port 22 FieldSignature field_signature;
21 // and path; the rest is stripped.
22 GURL action;
23
24 // Field in which password should be generated.
25 FormFieldData generation_field;
26 }; 23 };
27 24
28 } // namespace autofill 25 } // namespace autofill
29 26
30 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_GENERATION_DATA_H_ 27 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_GENERATION_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698