[OnionSoup] Move data from RequestExtraData to WebURLRequest::ExtraData.
This CL is a preparation for building typemapping for blink::ResourceRequest. In the current code, network.mojom.URLRequest contains members like |render_frame_id|, |is_main_frame|, etc. In cpp code, these data are saved in RequestExtraData, while blink::RR keeps |sharable_extra_data_| as a base class point for RequestExtraData. As a result, when converting blink::RR to URLRequest, the data saved in RequestExtraData cannot be reached inside blink/ as RequestExtraData is a data struct in content/. This CL try to move data (and corresponding getter/setter), from RequestExtraData to ExtraData. By doing this, we don't need to touch any user of these two classes, as we are still keeping the original member functions' prototype. Then moved data can be touched when making conversion between blink::RR and network.mojom.URLRequest. Change-Id: I6995b64ff9da6bef0d70b22b5ec1167bd1e8666f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1542727Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Richard Li <richard.li@intel.com> Cr-Commit-Position: refs/heads/master@{#646616}
Showing
Please register or sign in to comment