Files
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

26 lines
927 B
Python

from brave_chromium_utils import inline_file
inline_file('//chrome/browser/ui/webui/DEPS', globals(), locals())
include_rules += [
"+brave/brave_domains",
"+brave/components/brave_adblock/resources",
"+brave/components/brave_shields/core/browser",
"+brave/components/brave_ads/core/browser/service",
"+brave/components/brave_ads/core/mojom",
"+brave/components/brave_private_cdn",
"+brave/components/brave_rewards/resources",
"+brave/components/email_aliases",
"+brave/components/local_ai/resources",
"+brave/components/ntp_background_images/browser",
"+brave/components/version_info",
"+brave/components/webui",
"+chrome/services/qrcode_generator/public/mojom",
"+chrome/services/qrcode_generator/public/cpp",
]
specific_include_rules = {
"brave_adblock_internals_ui\.cc": [
"+brave/components/brave_adblock/adblock_internals/resources/grit/brave_adblock_internals_generated_map.h",
],
}