cdp-driver 0.3.0

Chrome DevTools Protocol client for AI agent browser control
Documentation
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.

//! The `ServiceWorker` domain.
//!
//! Method names for the `ServiceWorker` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.

/// `ServiceWorker.deliverPushMessage`
///
/// Parameters:
/// - `origin`: string
/// - `registrationId`: RegistrationID
/// - `data`: string
pub const DELIVER_PUSH_MESSAGE: &str = "ServiceWorker.deliverPushMessage";

/// `ServiceWorker.disable`
pub const DISABLE: &str = "ServiceWorker.disable";

/// `ServiceWorker.dispatchSyncEvent`
///
/// Parameters:
/// - `origin`: string
/// - `registrationId`: RegistrationID
/// - `tag`: string
/// - `lastChance`: boolean
pub const DISPATCH_SYNC_EVENT: &str = "ServiceWorker.dispatchSyncEvent";

/// `ServiceWorker.dispatchPeriodicSyncEvent`
///
/// Parameters:
/// - `origin`: string
/// - `registrationId`: RegistrationID
/// - `tag`: string
pub const DISPATCH_PERIODIC_SYNC_EVENT: &str = "ServiceWorker.dispatchPeriodicSyncEvent";

/// `ServiceWorker.enable`
pub const ENABLE: &str = "ServiceWorker.enable";

/// `ServiceWorker.setForceUpdateOnPageLoad`
///
/// Parameters:
/// - `forceUpdateOnPageLoad`: boolean
pub const SET_FORCE_UPDATE_ON_PAGE_LOAD: &str = "ServiceWorker.setForceUpdateOnPageLoad";

/// `ServiceWorker.skipWaiting`
///
/// Parameters:
/// - `scopeURL`: string
pub const SKIP_WAITING: &str = "ServiceWorker.skipWaiting";

/// `ServiceWorker.startWorker`
///
/// Parameters:
/// - `scopeURL`: string
pub const START_WORKER: &str = "ServiceWorker.startWorker";

/// `ServiceWorker.stopAllWorkers`
pub const STOP_ALL_WORKERS: &str = "ServiceWorker.stopAllWorkers";

/// `ServiceWorker.stopWorker`
///
/// Parameters:
/// - `versionId`: string
pub const STOP_WORKER: &str = "ServiceWorker.stopWorker";

/// `ServiceWorker.unregister`
///
/// Parameters:
/// - `scopeURL`: string
pub const UNREGISTER: &str = "ServiceWorker.unregister";

/// `ServiceWorker.updateRegistration`
///
/// Parameters:
/// - `scopeURL`: string
pub const UPDATE_REGISTRATION: &str = "ServiceWorker.updateRegistration";