-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BundledExchangesParser: Update the bundle format [1/2]
This updates BundledExchangesParser to parse the new bundle format [1]. Changes: - Updated the magic header bytes [2] - Version field is added (we use implementation-specific version string "b1\0\0", which matches gen-bundle's output [3]) - Fallback URL (== Primary URL) field is added - ParseMetadata() returns error type ("format error" or "version error") and fallback URL if available - Updated spec ref comments The structure change of the index section is not reflected yet. It will be updated in the next CL. The test bundle file (hello.wbn) is generated with gen-bundle of github.com/WICG/webpackage revision a3cef2c, which supports the new bundle format except for the new index section structure. [1] WICG/webpackage#450 [2] WICG/webpackage#454 [3] WICG/webpackage#458 Bug: 969596 Change-Id: I95744ed00fdd09d369bb8648d1cdf62ca181d0dd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1715487 Reviewed-by: Robert Sesek <rsesek@chromium.org> Reviewed-by: Tsuyoshi Horo <horo@chromium.org> Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org> Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#684200}
- Loading branch information
Showing
7 changed files
with
288 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.