Files
brave-core/components/constants
Anthony Tseng 1baf944ca8 Add untrusted local-ai WebUI for WASM execution (part 2) (#33725)
* Add WASM resources for candle embedding gemma

Add the TypeScript bridge, HTML page, and build targets for the
candle embedding gemma WASM module that runs in an untrusted
WebUI context.

* Add untrusted local-ai WebUI for WASM execution

Add the untrusted WebUI controller that hosts the on-device model
worker WASM bridge page and registers it with the browser's mojo
interface binder.

* Track receiver disconnects and notify browser when idle

When a PassageEmbedder consumer disconnects, remove its receiver from
the tracked list. When all receivers have disconnected, call
notifyPassageEmbedderIdle() so the browser can close the BackgroundWebContents
to free memory.

* Remove JS-side idle tracking from local-ai WebUI

Remove NotifyPassageEmbedderIdle from the mojom interface and
the JS-side disconnect tracking in the local-ai WebUI. Callers are
responsible for closing the remote when it is not in use.
2026-03-13 14:25:16 -07:00
..