[OnionSoup] Move resource_load_info.mojom into Blink
The current mojom struct ResourceLoadInfo defined in //content is used
to notify the status of a resource loading, which is unavailable
inside Blink.
Along with the implementation of OnionSoup of loaders, we are going to
notify the loading status from Blink directly. So we have to move this
mojom struct into Blink in order to leverage it there.
This CL makes the changes below:
- Remove the ResourceType in //content and its typemap and replace with
the mojom one.
- Move the resource_load_info.mojom into Blink.
Change-Id: I11ab3b7107bd4e06ee3ec737f825202c533a466c
Bug: 860403
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1986640
Commit-Queue: Minggang Wang <[email protected]>
Reviewed-by: Charlie Reis <[email protected]>
Reviewed-by: Matt Falkenhagen <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Cr-Commit-Position: refs/heads/master@{#738417}
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 565fc36..20413cf 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -4677,7 +4677,7 @@
const GURL& url,
const std::string& http_method,
const std::string& mime_type,
- ResourceType resource_type) {
+ blink::mojom::ResourceType resource_type) {
for (auto& observer : observers_)
observer.DidLoadResourceFromMemoryCache(url, mime_type, resource_type);
@@ -4832,7 +4832,7 @@
void WebContentsImpl::ResourceLoadComplete(
RenderFrameHost* render_frame_host,
const GlobalRequestID& request_id,
- mojom::ResourceLoadInfoPtr resource_load_info) {
+ blink::mojom::ResourceLoadInfoPtr resource_load_info) {
for (auto& observer : observers_) {
observer.ResourceLoadComplete(render_frame_host, request_id,
*resource_load_info);