Convert FrameHostMsg_DidLoadResourceFromMemoryCache to Mojo

This CL migrates the legacy FrameHostMsg_DidLoadResourceFromMemory
IPC message to the new Mojo message in LocalFrameHost interface.

This CL makes ResourceLoadObserverForFrame::DidReceiveResponse
call DidLoadResourceFromMemoryCache of LocalFrameHost interface
directly.

Bug: 1064337
Change-Id: Id2be4f9fb6d6de6d3566cc2f88c2e879011bee13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2172261
Commit-Queue: Gyuyoung Kim <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Reviewed-by: Kentaro Hara <[email protected]>
Reviewed-by: Dave Tapuska <[email protected]>
Cr-Commit-Position: refs/heads/master@{#764867}
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 9e45d85..ca920c1 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -930,8 +930,6 @@
   IPC_BEGIN_MESSAGE_MAP_WITH_PARAM(WebContentsImpl, message, render_frame_host)
     IPC_MESSAGE_HANDLER(FrameHostMsg_DomOperationResponse,
                         OnDomOperationResponse)
-    IPC_MESSAGE_HANDLER(FrameHostMsg_DidLoadResourceFromMemoryCache,
-                        OnDidLoadResourceFromMemoryCache)
     IPC_MESSAGE_HANDLER(FrameHostMsg_DidRunInsecureContent,
                         OnDidRunInsecureContent)
     IPC_MESSAGE_HANDLER(FrameHostMsg_DidDisplayContentWithCertificateErrors,
@@ -4752,7 +4750,7 @@
   }
 }
 
-void WebContentsImpl::OnDidLoadResourceFromMemoryCache(
+void WebContentsImpl::DidLoadResourceFromMemoryCache(
     RenderFrameHostImpl* source,
     const GURL& url,
     const std::string& http_method,