android-components / mozilla.components.browser.icons.preparer / IconPreprarer

IconPreprarer

interface IconPreprarer (source)

An IconPreparer implementation receives an IconRequest before it is getting loaded. The preparer has the option to rewrite the IconRequest and return a new instance.

Functions

Name Summary
prepare abstract fun prepare(context: <ERROR CLASS>, request: IconRequest): IconRequest

Inheritors

Name Summary
DiskIconPreparer class DiskIconPreparer : IconPreprarer
IconPreprarer implementation implementation that will add known resource URLs (from a disk cache) to the request if the request doesn’t contain a list of resources yet.
MemoryIconPreparer class MemoryIconPreparer : IconPreprarer
An IconPreprarer implementation that will add known resource URLs (from an in-memory cache) to the request if the request doesn’t contain a list of resources yet.
TippyTopIconPreparer class TippyTopIconPreparer : IconPreprarer
IconPreprarer implementation that looks up the host in our “tippy top” list. If it can find a match then it inserts the icon URL into the request.