Index: content/browser/frame_host/render_frame_host_impl.cc |
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc |
index 6d20852679b91953fb07b257f1491168e6dfa1f2..60af38ad931e2f5d9c5961bed38a39368a9b7f0a 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.cc |
+++ b/content/browser/frame_host/render_frame_host_impl.cc |
@@ -14,6 +14,7 @@ |
#include "content/browser/renderer_host/render_view_host_impl.h" |
#include "content/common/frame_messages.h" |
#include "content/public/browser/browser_thread.h" |
+#include "content/public/browser/dom_operation_notification_details.h" |
#include "content/public/browser/render_process_host.h" |
#include "content/public/browser/render_widget_host_view.h" |
#include "content/public/browser/user_metrics.h" |
@@ -137,6 +138,8 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) { |
OnDidFailLoadWithError) |
IPC_MESSAGE_HANDLER(FrameHostMsg_SwapOut_ACK, OnSwapOutACK) |
IPC_MESSAGE_HANDLER(FrameHostMsg_ContextMenu, OnContextMenu) |
+ IPC_MESSAGE_HANDLER(FrameHostMsg_DomOperationResponse, |
+ OnDomOperationResponse) |
IPC_END_MESSAGE_MAP_EX() |
if (!msg_is_ok) { |
@@ -237,6 +240,12 @@ void RenderFrameHostImpl::OnContextMenu(const ContextMenuParams& params) { |
delegate_->ShowContextMenu(this, validated_params); |
} |
+void RenderFrameHostImpl::OnDomOperationResponse(const std::string& json_string, |
+ int automation_id) { |
+ delegate_->OnDomOperationResponse( |
+ DomOperationNotificationDetails(json_string, automation_id)); |
+} |
+ |
void RenderFrameHostImpl::SetPendingShutdown(const base::Closure& on_swap_out) { |
render_view_host_->SetPendingShutdown(on_swap_out); |
} |