[WebShareTargetV2] Support launching the new web share target with POST request.
This is the second CL for web share target V2. The goal of this CL is to implement the new web share target launcher according to the new web share target spec. https://pr-preview.s3.amazonaws.com/ewilligers/web-share-target/pull/53.html#launching-the-web-share-target There're three main parts of this CL that are put together: 1) Parse the fields received from the android manifest on the server-side 2) Perform the files-matching, which involves matching the share files with with share target files entries that accept the same mime type. 3) Launch the web share target. Specifically, this involves the additional step of generating the POST request. There're two possible encoding types for the POST request: Multipart/form-data encoding and application/x-www-form-urlencoded, both of which are implemented inside a new file named webapk_post_share_target_navigator.cc. It performs all the encoding/escaping needed for the two encoding methods. One additional function is added to mime_util.cc in order to support the multipart/form-data POST request. Change-Id: I719af0dc33fe64561963ae9aecc9d01192f1c17a Reviewed-on: https://chromium-review.googlesource.com/c/1271776 Commit-Queue: Ethan Xu <xuethan@google.com> Reviewed-by:Bence Béky <bnc@chromium.org> Reviewed-by:
Peter Kotwicz <pkotwicz@chromium.org> Reviewed-by:
Dominick Ng <dominickn@chromium.org> Reviewed-by:
Eric Willigers <ericwilligers@chromium.org> Cr-Commit-Position: refs/heads/master@{#611877}
Showing
This diff is collapsed.
Please register or sign in to comment