diff options
Diffstat (limited to 'components/autofill/content/browser/content_autofill_driver.cc')
-rw-r--r-- | components/autofill/content/browser/content_autofill_driver.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/components/autofill/content/browser/content_autofill_driver.cc b/components/autofill/content/browser/content_autofill_driver.cc index 62c64b2..54b095e 100644 --- a/components/autofill/content/browser/content_autofill_driver.cc +++ b/components/autofill/content/browser/content_autofill_driver.cc @@ -108,6 +108,13 @@ void ContentAutofillDriver::SendFormDataToRenderer( } } +void ContentAutofillDriver::PingRenderer() { + if (!RendererIsAvailable()) + return; + content::RenderViewHost* host = web_contents()->GetRenderViewHost(); + host->Send(new AutofillMsg_Ping(host->GetRoutingID())); +} + void ContentAutofillDriver::SendAutofillTypePredictionsToRenderer( const std::vector<FormStructure*>& forms) { if (!CommandLine::ForCurrentProcess()->HasSwitch( @@ -181,6 +188,9 @@ bool ContentAutofillDriver::OnMessageReceived(const IPC::Message& message) { IPC_MESSAGE_FORWARD(AutofillHostMsg_DidPreviewAutofillFormData, autofill_manager_.get(), AutofillManager::OnDidPreviewAutofillFormData) + IPC_MESSAGE_FORWARD(AutofillHostMsg_PingAck, + &autofill_external_delegate_, + AutofillExternalDelegate::OnPingAck) IPC_MESSAGE_FORWARD(AutofillHostMsg_DidFillAutofillFormData, autofill_manager_.get(), AutofillManager::OnDidFillAutofillFormData) |