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

Side by Side Diff: components/autofill/content/renderer/password_form_conversion_utils.h

Issue 2874803002: Prevent autofilling credit card security number fields with passwords. (Closed)
Patch Set: Fix build. Created 3 years, 7 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
« no previous file with comments | « no previous file | components/autofill/content/renderer/password_form_conversion_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Checks in a case-insensitive way if the autocomplete attribute for the given 62 // Checks in a case-insensitive way if the autocomplete attribute for the given
63 // |element| is present and has the specified |value_in_lowercase|. 63 // |element| is present and has the specified |value_in_lowercase|.
64 bool HasAutocompleteAttributeValue(const blink::WebInputElement& element, 64 bool HasAutocompleteAttributeValue(const blink::WebInputElement& element,
65 const char* value_in_lowercase); 65 const char* value_in_lowercase);
66 66
67 // Checks in a case-insensitive way if credit card autocomplete attributes for 67 // Checks in a case-insensitive way if credit card autocomplete attributes for
68 // the given |element| are present. 68 // the given |element| are present.
69 bool HasCreditCardAutocompleteAttributes(const blink::WebInputElement& element); 69 bool HasCreditCardAutocompleteAttributes(const blink::WebInputElement& element);
70 70
71 // Returns whether the form |field| has a "password" type, but looks like a
72 // credit card verification field.
73 bool IsCreditCardVerificationPasswordField(const blink::WebInputElement& field);
74
71 } // namespace autofill 75 } // namespace autofill
72 76
73 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H __ 77 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H __
OLDNEW
« no previous file with comments | « no previous file | components/autofill/content/renderer/password_form_conversion_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698