Menu

Trait

ClientAppBrowserDelegate

kurogane::ClientAppBrowserDelegateSource
pub trait ClientAppBrowserDelegate: Send + Sync { fn on_before_command_line_processing(&self, _command_line: &mut CommandLine) { ... } fn on_context_initialized(&self) { ... } }

Customizes browser-process startup behavior.

Register via App::delegate to customize browser-process startup without replacing Kurogane’s built-in runtime.

Delegates are invoked in registration order.

Provided methods

#fn on_before_command_line_processing(&self, _command_line: &mut CommandLine)

Invoked before Chromium processes command-line arguments.

Prefer App::chromium_flag for simple flag configuration. This hook exists as a lower-level escape hatch.

#fn on_context_initialized(&self)

Invoked after the browser process has initialized its request context.

At this point global browser-process initialization has completed and browser creation may begin.