Skip to main content

Crate browser_controller_types

Crate browser_controller_types 

Source
Expand description

Shared protocol types for the browser-controller system.

This crate defines the data types used in communication between:

  • The CLI and the mediator (over Unix Domain Socket, newline-delimited JSON)
  • The mediator and the browser extension (via native messaging, length-prefixed JSON)

Structs§

BrowserInfo
Information about a running browser instance.
CliRequest
A request sent from the CLI to the mediator.
CliResponse
A response sent from the mediator to the CLI.
ContainerInfo
Information about a Firefox container (contextual identity).
CookieStoreId
Firefox container (cookie store) identifier.
DownloadId
Browser-assigned download identifier.
DownloadItem
Details about a download.
ExtensionHello
Initial hello message sent from the browser extension to the mediator upon connection.
Password
A password that is zeroed from memory on drop.
TabDetails
Full details about a browser tab.
TabGroupId
Chrome-assigned tab group identifier.
TabGroupInfo
Information about a Chrome tab group.
TabId
Browser-assigned tab identifier.
TabSummary
A brief summary of a tab, suitable for embedding in window listings.
WindowId
Browser-assigned window identifier.
WindowSummary
A summary of a browser window including its tabs.

Enums§

BrowserEvent
An event emitted by the browser extension and broadcast to all event-stream subscribers.
CliCommand
A command sent from the CLI to the mediator, and forwarded to the extension.
CliOutcome
The outcome of a command: either a successful result or an error message.
CliResult
The result payload of a successful command.
DownloadState
The state of a download.
ExtensionMessage
A message received by the mediator from the browser extension via native messaging.
FilenameConflictAction
How to handle filename conflicts when downloading.
InvalidCookieStoreId
Error type for invalid CookieStoreId values.
InvalidDownloadId
Error type for invalid DownloadId values.
InvalidTabGroupId
Error type for invalid TabGroupId values.
InvalidTabId
Error type for invalid TabId values.
InvalidWindowId
Error type for invalid WindowId values.
TabGroupColor
The color of a Chrome tab group.
TabStatus
The loading status of a tab.
WindowState
The visual state of a browser window.
WindowType
The type of a browser window.