tree: f6977fc81f7770b5915be70d0181a4fb8613270d [search]
  1. mojom/
  2. rust/
  3. signed_web_bundles/
  4. test_support/
  5. AGENTS.md
  6. BUILD.gn
  7. DEPS
  8. DIR_METADATA
  9. OWNERS
  10. README.md
  11. web_bundle_builder.cc
  12. web_bundle_builder.h
  13. web_bundle_builder_unittest.cc
  14. web_bundle_parser.cc
  15. web_bundle_parser.h
  16. web_bundle_parser_factory.cc
  17. web_bundle_parser_factory.h
  18. web_bundle_parser_factory_unittest.cc
  19. web_bundle_parser_fuzzer.cc
  20. web_bundle_parser_unittest.cc
  21. web_bundle_utils.cc
  22. web_bundle_utils.h
  23. web_bundle_utils_unittest.cc
components/web_package/README.md

Web Packaging Component (components/web_package)

This directory contains shared code for parsing, validating, and building Web Bundles (.wbn) and Signed Web Bundles (.swbn), used from the browser process by the Isolated Web Apps (IWA) platform and from the network service.

Companion Documentation

Architecture & Subdirectory Map

  • Core Web Bundle Parser (web_bundle_parser.{h,cc}, web_bundle_parser_factory.{h,cc}): Implements web_package::mojom::WebBundleParser, reading Web Bundle metadata and HTTP responses from a BundleDataSource and delegating low-level CBOR parsing to the memory-safe Rust library in rust/.
  • Web Bundle Builder (web_bundle_builder.{h,cc}): Constructs valid CBOR Web Bundles in memory for tests and tooling.
  • signed_web_bundles/: Implements Integrity Block v2 parsing, SignedWebBundleId validation, and multi-signature verification (SignedWebBundleSignatureVerifier) for Ed25519 and ECDSA P-256 SHA-256 keys.
  • rust/: Memory-safe Rust crate (web_package_rust) implementing low-level Web Bundle format parsing exposed to C++ via cpp_api_from_rust bindings.
  • mojom/: Mojo interface definitions (web_bundle_parser.mojom) for the parser, its factory and its data source, and the Mojom traits they use.
  • test_support/: Bundle signing utilities (WebBundleSigner), key-pair wrappers (Ed25519KeyPair, EcdsaP256KeyPair), and mock parser factories (MockWebBundleParserFactory).