| Index: components/autofill/content/browser/autofill_driver_impl.cc
|
| diff --git a/components/autofill/content/browser/autofill_driver_impl.cc b/components/autofill/content/browser/autofill_driver_impl.cc
|
| index 095822cb32c9a9e884a0f55bd845026818be2dfa..7cb43f6a517f30ea40f527f63253eef2d9c0fe8c 100644
|
| --- a/components/autofill/content/browser/autofill_driver_impl.cc
|
| +++ b/components/autofill/content/browser/autofill_driver_impl.cc
|
| @@ -9,6 +9,7 @@
|
| #include "components/autofill/core/browser/autofill_manager_delegate.h"
|
| #include "components/autofill/core/common/autofill_messages.h"
|
| #include "content/public/browser/navigation_details.h"
|
| +#include "content/public/browser/render_view_host.h"
|
| #include "content/public/browser/web_contents.h"
|
| #include "content/public/common/frame_navigate_params.h"
|
| #include "ipc/ipc_message_macros.h"
|
| @@ -68,6 +69,17 @@ content::WebContents* AutofillDriverImpl::GetWebContents() {
|
| return web_contents();
|
| }
|
|
|
| +bool AutofillDriverImpl::CanSendToRenderer() {
|
| + return (web_contents()->GetRenderViewHost() != NULL);
|
| +}
|
| +
|
| +void AutofillDriverImpl::SendFormDataToRenderer(int query_id, FormData data) {
|
| + DCHECK(CanSendToRenderer());
|
| + content::RenderViewHost* host = web_contents()->GetRenderViewHost();
|
| + host->Send(
|
| + new AutofillMsg_FormDataFilled(host->GetRoutingID(), query_id, data));
|
| +}
|
| +
|
| bool AutofillDriverImpl::OnMessageReceived(const IPC::Message& message) {
|
| bool handled = true;
|
| IPC_BEGIN_MESSAGE_MAP(AutofillDriverImpl, message)
|
|
|