| Index: chrome/browser/renderer_host/render_view_host.cc
|
| ===================================================================
|
| --- chrome/browser/renderer_host/render_view_host.cc (revision 39310)
|
| +++ chrome/browser/renderer_host/render_view_host.cc (working copy)
|
| @@ -801,6 +801,8 @@
|
| OnQueryFormFieldAutofill)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_RemoveAutofillEntry,
|
| OnRemoveAutofillEntry)
|
| + IPC_MESSAGE_HANDLER(ViewHostMsg_FillAutoFillFormData,
|
| + OnFillAutoFillFormData)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_ShowDesktopNotification,
|
| OnShowDesktopNotification)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_ShowDesktopNotificationText,
|
| @@ -1590,6 +1592,18 @@
|
| formfield_history_delegate->RemoveFormFieldHistoryEntry(field_name, value);
|
| }
|
|
|
| +void RenderViewHost::OnFillAutoFillFormData(int query_id,
|
| + const FormData& form,
|
| + const string16& name,
|
| + const string16& label) {
|
| + RenderViewHostDelegate::AutoFill* autofill_delegate =
|
| + delegate_->GetAutoFillDelegate();
|
| + if (!autofill_delegate)
|
| + return;
|
| +
|
| + autofill_delegate->FillAutoFillFormData(query_id, form, name, label);
|
| +}
|
| +
|
| void RenderViewHost::AutoFillSuggestionsReturned(
|
| int query_id,
|
| const std::vector<string16>& names,
|
| @@ -1607,6 +1621,11 @@
|
| // Default index -1 means no default suggestion.
|
| }
|
|
|
| +void RenderViewHost::AutoFillFormDataFilled(int query_id,
|
| + const FormData& form) {
|
| + Send(new ViewMsg_AutoFillFormDataFilled(routing_id(), query_id, form));
|
| +}
|
| +
|
| void RenderViewHost::WindowMoveOrResizeStarted() {
|
| Send(new ViewMsg_MoveOrResizeStarted(routing_id()));
|
| }
|
|
|