OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/renderer/autofill/autofill_agent.h" | 5 #include "chrome/renderer/autofill/autofill_agent.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/string_split.h" | 9 #include "base/string_split.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
699 &data_list_labels, | 699 &data_list_labels, |
700 &data_list_icons, | 700 &data_list_icons, |
701 &data_list_unique_ids); | 701 &data_list_unique_ids); |
702 | 702 |
703 Send(new AutofillHostMsg_SetDataList(routing_id(), | 703 Send(new AutofillHostMsg_SetDataList(routing_id(), |
704 data_list_values, | 704 data_list_values, |
705 data_list_labels, | 705 data_list_labels, |
706 data_list_icons, | 706 data_list_icons, |
707 data_list_unique_ids)); | 707 data_list_unique_ids)); |
708 | 708 |
709 // Additonally fill SSL Status in the formdata before messaging | |
710 // QueryFormFieldAutofill to browser process. | |
Ilya Sherman
2012/12/13 02:29:23
This comment is entirely redundant with the code.
Raman Kakilate
2012/12/13 21:34:34
Done.
| |
711 form.ssl_status = render_view()->GetSSLStatusOfFrame( | |
712 element.document().frame()); | |
709 Send(new AutofillHostMsg_QueryFormFieldAutofill(routing_id(), | 713 Send(new AutofillHostMsg_QueryFormFieldAutofill(routing_id(), |
710 autofill_query_id_, | 714 autofill_query_id_, |
711 form, | 715 form, |
712 field, | 716 field, |
713 bounding_box, | 717 bounding_box, |
714 display_warning_if_disabled)); | 718 display_warning_if_disabled)); |
715 } | 719 } |
716 | 720 |
717 void AutofillAgent::FillAutofillFormData(const WebNode& node, | 721 void AutofillAgent::FillAutofillFormData(const WebNode& node, |
718 int unique_id, | 722 int unique_id, |
(...skipping 30 matching lines...) Expand all Loading... | |
749 web_view->hidePopups(); | 753 web_view->hidePopups(); |
750 | 754 |
751 HideHostPopups(); | 755 HideHostPopups(); |
752 } | 756 } |
753 | 757 |
754 void AutofillAgent::HideHostPopups() { | 758 void AutofillAgent::HideHostPopups() { |
755 Send(new AutofillHostMsg_HideAutofillPopup(routing_id())); | 759 Send(new AutofillHostMsg_HideAutofillPopup(routing_id())); |
756 } | 760 } |
757 | 761 |
758 } // namespace autofill | 762 } // namespace autofill |
OLD | NEW |