Introduce WebContents::GenerateWebBundle() and skeleton WebBundler.
This CL introduces WebContents::GenerateWebBundle() method. This method does the following: - Call GetResourceSnapshotForWebBundle() for each frame (the main frame and sub frames) to get an array of mojo::PendingRemote<ResourceSnapshotForWebBundle>. - Open a file to write to. - Call DataDecoderService::BindWebBundler() to get a mojo::Remote<WebBundler>. A WebBundler object is instantiated in the data decoder process. - Call WebBundler::Generate() with the opened file and the array of mojo::PendingRemote<ResourceSnapshotForWebBundle>. This CL doesn’t implement the logic of WebBundler::Generate(). This method just returns an error (kNotImplemented). Bug: 1040752 Change-Id: Ia0a8ba0362cea181dcfd67bda9d42ebc00f9a4c7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2084042Reviewed-by:Robert Sesek <rsesek@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Kunihiko Sakamoto <ksakamoto@chromium.org> Commit-Queue: Tsuyoshi Horo <horo@chromium.org> Cr-Commit-Position: refs/heads/master@{#749427}
Showing
Please register or sign in to comment