Clone this repo:

Branches

  1. 29b6a98 webview: Make WebContentContextWrapper single-use by Rupert Wiser · 5 days ago main
  2. 6bd9013 webview: Avoid initializing default profile during WebContent transfers by Rupert Wiser · 6 days ago
  3. 3b0fbb7 [Android WebView] Wire web graphics setting in ContentSettingsAdapter by Narayan Kamath · 7 days ago
  4. 9d373da webview: Fully disconnect the old WebView when its WebContent moves by Rupert Wiser · 7 days ago
  5. 5358fb0 [WV] Remove unused AwBrowserProcess.startForTesting by Sayed · 7 days ago

//android_webview/glue/

This folder contains the WebKit framework glue layer that adapts public Android framework APIs (android.webkit.*) to WebView's Chromium implementation.

Architecture & Startup Flow

  • WebViewChromiumFactoryProvider: Framework-facing singleton instantiated by the OS during WebView provider initialization. Owns framework-level adapters (CookieManagerAdapter, WebIconDatabaseAdapter, WebViewDatabaseAdapter, StaticsAdapter) and initializes StartupController.
  • StartupDelegateImpl: Implements StartupController.Delegate to supply framework-dependent hooks (resource bundle setup via R.onResourcesLoaded, hardware/software draw function tables, child process launcher configuration, selection action menu client, and post-startup default profile initialization) without coupling //android_webview/java/ to framework SDK internals.
  • WebViewChromiumAwInit: Holds glue-shared ProfileStore and default profile initialization (DefaultProfileHolder), along with shared accessors bridged to //android_webview/support_library/.
  • WebkitToSharedGlueConverter: Exposes shared glue adapters and WebViewChromiumAwInit bridges to //android_webview/support_library/.

Folder Dependencies

  • //android_webview/java/ must never depend on this directory.
  • //android_webview/glue/ depends on //android_webview/java/ and Android framework SDK types (android.webkit.*, android.view.*).

See Also