chrome/browser/android/webapk)This directory contains the C++ browser-process components for WebAPKs in Chromium on Android.
Following Chromium's documentation guidelines, this document describes how native WebAPK components bridge Java UI/coordinators, the WebAPK minting server, and Chrome Sync. For class-specific API details, see the header files.
For the comprehensive architectural guide covering the complete Java/C++ call graphs, see Android Web Apps Architecture.
Java WebApkActivityCoordinator / WebApkUpdateManager
│
▼ (JNI)
[Native WebAPK Services] chrome/browser/android/webapk/
├── WebApkInstaller ──► WebAPK Minting Server (Requests signed APK)
└── WebApkUpdateManager ──► Manifest Serialization & Update Dispatch
WebApkInstaller receives installation requests from AppBannerManagerAndroid or the user menu. It packages the parsed Web App Manifest and icon hashes, sends an asynchronous request to the WebAPK minting server, and receives an installation token. It passes this token across JNI to Java (WebApkInstaller.java), which delegates the APK download and installation to Google Play via GooglePlayWebApkInstallDelegate.WebApkInstallService is the profile-keyed service that queues, deduplicates, and manages active installation requests across tabs.webapk_update_manager.cc serialize updated manifest and icon data to disk when Java detects changes. When the scheduled background task executes, WebApkInstaller reads the file, requests an updated token from the minting server, and triggers the update via Google Play.chrome/android/java/src/org/chromium/chrome/browser/webapps/chrome/android/webapk/components/webapps/browser/android/