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

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

Issue 2771833002: Password Manager should skip fields with credit card autocomplete attribute. (Closed)
Patch Set: Do not create string in HasAutocompleteAttributeValue Created 3 years, 9 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 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 std::unique_ptr<PasswordForm> CreatePasswordFormFromUnownedInputElements( 57 std::unique_ptr<PasswordForm> CreatePasswordFormFromUnownedInputElements(
58 const blink::WebFrame& frame, 58 const blink::WebFrame& frame,
59 const FieldValueAndPropertiesMaskMap* nonscript_modified_values, 59 const FieldValueAndPropertiesMaskMap* nonscript_modified_values,
60 const FormsPredictionsMap* form_predictions); 60 const FormsPredictionsMap* form_predictions);
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
68 // the given |element| are present.
69 bool HasCreditCardAutocompleteAttributes(const blink::WebInputElement& element);
70
67 } // namespace autofill 71 } // namespace autofill
68 72
69 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H __ 73 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H __
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698