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 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 const ModifiedValues* nonscript_modified_values, | 58 const ModifiedValues* nonscript_modified_values, |
59 const FormsPredictionsMap* form_predictions); | 59 const FormsPredictionsMap* form_predictions); |
60 | 60 |
61 // Same as CreatePasswordFormFromWebForm() but for input elements that are not | 61 // Same as CreatePasswordFormFromWebForm() but for input elements that are not |
62 // enclosed in <form> element. | 62 // enclosed in <form> element. |
63 scoped_ptr<PasswordForm> CreatePasswordFormFromUnownedInputElements( | 63 scoped_ptr<PasswordForm> CreatePasswordFormFromUnownedInputElements( |
64 const blink::WebFrame& frame, | 64 const blink::WebFrame& frame, |
65 const ModifiedValues* nonscript_modified_values, | 65 const ModifiedValues* nonscript_modified_values, |
66 const FormsPredictionsMap* form_predictions); | 66 const FormsPredictionsMap* form_predictions); |
67 | 67 |
| 68 // Checks in a case-insensitive way if the autocomplete attribute for the given |
| 69 // |element| is present and has the specified |value_in_lowercase|. |
| 70 bool HasAutocompleteAttributeValue(const blink::WebInputElement& element, |
| 71 const char* value_in_lowercase); |
| 72 |
68 } // namespace autofill | 73 } // namespace autofill |
69 | 74 |
70 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H
__ | 75 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H
__ |
OLD | NEW |