| 1 | #![cfg(windows)] |
| 2 | |
| 3 | mod fanout; |
| 4 | mod host; |
| 5 | mod transport; |
| 6 | |
| 7 | pub use host::{HostConfig, start}; |
| 8 | pub use transport::{HostState, WebViewTransport}; |
| 9 | |
| 10 | pub(crate) const FORWARDED_EVENTS: [&str; 2] = ["Runtime.bindingCalled", "Page.frameNavigated"]; |
| 11 | |
| 12 | // A hidden window counts as occluded, so Chromium would otherwise throttle the Trouter keep-alive timers. |
| 13 | pub(crate) const BROWSER_ARGUMENTS: &str = concat!( |
| 14 | "--disable-features=Translate,MediaRouter,OptimizationHints ", |
| 15 | "--disable-background-networking --disable-component-update --disable-default-apps ", |
| 16 | "--disable-breakpad --disable-client-side-phishing-detection --disable-gpu ", |
| 17 | "--disable-background-timer-throttling --disable-renderer-backgrounding --disable-backgrounding-occluded-windows", |
| 18 | ); |