| OLD | NEW |
| 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 Loading... |
| 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
__ |
| OLD | NEW |