[bfcache]Add new AILanguageDetector* classes and functions
This CL adds new AILanguageDetector/AILanguageDetectorFactory/
AILanguageDetectorCapabilities classes to match the new version of
API proposal[1].
Functions are mostly copied and pasted from the old version of the code.
[1] https://github.com/WICG/translation-api?tab=readme-ov-file#full-api-surface-in-web-idl
Bug: 349927087
Change-Id: I1eed4cb0d54e8388398aef642943c0d6a76857f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5892958
Reviewed-by: Fergal Daly fergal@chromium.org
Commit-Queue: Yuzu Saijo yuzus@chromium.org
Cr-Commit-Position: refs/heads/main@{#1364800}