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 8c878412847822ceef70c26b06c2d92296e96112..03f173e8ce3c2e177367fca65b602a7a7aecd686 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.cc |
+++ b/content/browser/frame_host/render_frame_host_impl.cc |
@@ -20,6 +20,7 @@ |
#include "content/browser/child_process_security_policy_impl.h" |
#include "content/browser/child_process_security_policy_impl.h" |
#include "content/browser/devtools/render_frame_devtools_agent_host.h" |
+#include "content/browser/download/mhtml_generation_manager.h" |
#include "content/browser/frame_host/cross_process_frame_connector.h" |
#include "content/browser/frame_host/cross_site_transferring_request.h" |
#include "content/browser/frame_host/frame_mojo_shell.h" |
@@ -541,6 +542,8 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) { |
IPC_MESSAGE_HANDLER(FrameHostMsg_DidStopLoading, OnDidStopLoading) |
IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeLoadProgress, |
OnDidChangeLoadProgress) |
+ IPC_MESSAGE_HANDLER(FrameHostMsg_SerializeAsMHTMLResponse, |
+ OnSerializeAsMHTMLResponse) |
#if defined(OS_MACOSX) || defined(OS_ANDROID) |
IPC_MESSAGE_HANDLER(FrameHostMsg_ShowPopup, OnShowPopup) |
IPC_MESSAGE_HANDLER(FrameHostMsg_HidePopup, OnHidePopup) |
@@ -1704,6 +1707,14 @@ void RenderFrameHostImpl::OnDidChangeLoadProgress(double load_progress) { |
frame_tree_node_->DidChangeLoadProgress(load_progress); |
} |
+void RenderFrameHostImpl::OnSerializeAsMHTMLResponse( |
+ int job_id, |
+ bool success, |
+ const std::string& mhtml_boundary_marker) { |
+ MHTMLGenerationManager::GetInstance()->OnSavedPageAsMHTML( |
+ job_id, success, mhtml_boundary_marker); |
+} |
+ |
#if defined(OS_MACOSX) || defined(OS_ANDROID) |
void RenderFrameHostImpl::OnShowPopup( |
const FrameHostMsg_ShowPopup_Params& params) { |