| 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" |
| 11 #include "components/autofill/core/common/password_form_field_prediction_map.h" |
| 11 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 12 | 13 |
| 13 namespace blink { | 14 namespace blink { |
| 14 class WebDocument; | 15 class WebDocument; |
| 15 class WebFormElement; | 16 class WebFormElement; |
| 16 class WebInputElement; | 17 class WebInputElement; |
| 17 class WebString; | 18 class WebString; |
| 18 } | 19 } |
| 19 | 20 |
| 20 namespace autofill { | 21 namespace autofill { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 35 // to identify..which sucks. | 36 // to identify..which sucks. |
| 36 // If an element of |form| has an entry in |nonscript_modified_values|, the | 37 // If an element of |form| has an entry in |nonscript_modified_values|, the |
| 37 // associated string is used instead of the element's value to create | 38 // associated string is used instead of the element's value to create |
| 38 // the PasswordForm. | 39 // the PasswordForm. |
| 39 // |form_predictions| is Autofill server response, if present it's used for | 40 // |form_predictions| is Autofill server response, if present it's used for |
| 40 // overwriting default username element selection. | 41 // overwriting default username element selection. |
| 41 scoped_ptr<PasswordForm> CreatePasswordForm( | 42 scoped_ptr<PasswordForm> CreatePasswordForm( |
| 42 const blink::WebFormElement& form, | 43 const blink::WebFormElement& form, |
| 43 const std::map<const blink::WebInputElement, blink::WebString>* | 44 const std::map<const blink::WebInputElement, blink::WebString>* |
| 44 nonscript_modified_values, | 45 nonscript_modified_values, |
| 45 const std::map<autofill::FormData, autofill::FormFieldData>* | 46 const std::map<autofill::FormData, |
| 46 form_predictions); | 47 autofill::PasswordFormFieldPredictionMap>* form_predictions); |
| 47 | 48 |
| 48 } // namespace autofill | 49 } // namespace autofill |
| 49 | 50 |
| 50 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H
__ | 51 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H
__ |
| OLD | NEW |