cdp_driver/methods/service_worker.rs
1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! The `ServiceWorker` domain.
5//!
6//! Method names for the `ServiceWorker` domain, for use with
7//! [`CdpClient::call`](crate::CdpClient::call).
8//!
9//! This domain is experimental and may change without notice.
10
11/// `ServiceWorker.deliverPushMessage`
12///
13/// Parameters:
14/// - `origin`: string
15/// - `registrationId`: RegistrationID
16/// - `data`: string
17pub const DELIVER_PUSH_MESSAGE: &str = "ServiceWorker.deliverPushMessage";
18
19/// `ServiceWorker.disable`
20pub const DISABLE: &str = "ServiceWorker.disable";
21
22/// `ServiceWorker.dispatchSyncEvent`
23///
24/// Parameters:
25/// - `origin`: string
26/// - `registrationId`: RegistrationID
27/// - `tag`: string
28/// - `lastChance`: boolean
29pub const DISPATCH_SYNC_EVENT: &str = "ServiceWorker.dispatchSyncEvent";
30
31/// `ServiceWorker.dispatchPeriodicSyncEvent`
32///
33/// Parameters:
34/// - `origin`: string
35/// - `registrationId`: RegistrationID
36/// - `tag`: string
37pub const DISPATCH_PERIODIC_SYNC_EVENT: &str = "ServiceWorker.dispatchPeriodicSyncEvent";
38
39/// `ServiceWorker.enable`
40pub const ENABLE: &str = "ServiceWorker.enable";
41
42/// `ServiceWorker.setForceUpdateOnPageLoad`
43///
44/// Parameters:
45/// - `forceUpdateOnPageLoad`: boolean
46pub const SET_FORCE_UPDATE_ON_PAGE_LOAD: &str = "ServiceWorker.setForceUpdateOnPageLoad";
47
48/// `ServiceWorker.skipWaiting`
49///
50/// Parameters:
51/// - `scopeURL`: string
52pub const SKIP_WAITING: &str = "ServiceWorker.skipWaiting";
53
54/// `ServiceWorker.startWorker`
55///
56/// Parameters:
57/// - `scopeURL`: string
58pub const START_WORKER: &str = "ServiceWorker.startWorker";
59
60/// `ServiceWorker.stopAllWorkers`
61pub const STOP_ALL_WORKERS: &str = "ServiceWorker.stopAllWorkers";
62
63/// `ServiceWorker.stopWorker`
64///
65/// Parameters:
66/// - `versionId`: string
67pub const STOP_WORKER: &str = "ServiceWorker.stopWorker";
68
69/// `ServiceWorker.unregister`
70///
71/// Parameters:
72/// - `scopeURL`: string
73pub const UNREGISTER: &str = "ServiceWorker.unregister";
74
75/// `ServiceWorker.updateRegistration`
76///
77/// Parameters:
78/// - `scopeURL`: string
79pub const UPDATE_REGISTRATION: &str = "ServiceWorker.updateRegistration";