TabPageContextRepository

Repository for caching page content extracted by the JS PageContext layer. Content is stored per tab.

Functions

Link copied to clipboard
abstract suspend fun deleteAll()

Deletes all cached page contexts.

Link copied to clipboard
abstract suspend fun getPageContexts(tabIds: List<String>): Map<String, CachedPageContext>

Returns cached page contexts for the requested tabs.

Link copied to clipboard
abstract suspend fun storePageContext(tabId: String, url: String, serializedPageContext: String)

Stores (or replaces) the cached page context for the given tab.