1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.
//! The `Storage` domain.
//!
//! Method names for the `Storage` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.
/// Returns a storage key given a frame id. Deprecated. Please use
/// Storage.getStorageKey instead.
///
/// Deprecated in the protocol.
///
/// Parameters:
/// - `frameId`: Page.FrameId
///
/// Returns: `storageKey`
pub const GET_STORAGE_KEY_FOR_FRAME: &str = "Storage.getStorageKeyForFrame";
/// Returns storage key for the given frame. If no frame ID is provided, the
/// storage key of the target executing this command is returned.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `frameId`: Page.FrameId (optional)
///
/// Returns: `storageKey`
pub const GET_STORAGE_KEY: &str = "Storage.getStorageKey";
/// Clears storage for origin.
///
/// Parameters:
/// - `origin`: string
/// - `storageTypes`: string
pub const CLEAR_DATA_FOR_ORIGIN: &str = "Storage.clearDataForOrigin";
/// Clears storage for storage key.
///
/// Parameters:
/// - `storageKey`: string
/// - `storageTypes`: string
pub const CLEAR_DATA_FOR_STORAGE_KEY: &str = "Storage.clearDataForStorageKey";
/// Returns all browser cookies.
///
/// Parameters:
/// - `browserContextId`: Browser.BrowserContextID (optional)
///
/// Returns: `cookies`
pub const GET_COOKIES: &str = "Storage.getCookies";
/// Sets given cookies.
///
/// Parameters:
/// - `cookies`: array
/// - `browserContextId`: Browser.BrowserContextID (optional)
pub const SET_COOKIES: &str = "Storage.setCookies";
/// Clears cookies.
///
/// Parameters:
/// - `browserContextId`: Browser.BrowserContextID (optional)
pub const CLEAR_COOKIES: &str = "Storage.clearCookies";
/// Returns usage and quota in bytes.
///
/// Parameters:
/// - `origin`: string
///
/// Returns: `usage`, `quota`, `overrideActive`, `usageBreakdown`
pub const GET_USAGE_AND_QUOTA: &str = "Storage.getUsageAndQuota";
/// Override quota for the specified origin
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `origin`: string
/// - `quotaSize`: number (optional)
pub const OVERRIDE_QUOTA_FOR_ORIGIN: &str = "Storage.overrideQuotaForOrigin";
/// Registers origin to be notified when an update occurs to its cache storage
/// list.
///
/// Parameters:
/// - `origin`: string
pub const TRACK_CACHE_STORAGE_FOR_ORIGIN: &str = "Storage.trackCacheStorageForOrigin";
/// Registers storage key to be notified when an update occurs to its cache
/// storage list.
///
/// Parameters:
/// - `storageKey`: string
pub const TRACK_CACHE_STORAGE_FOR_STORAGE_KEY: &str = "Storage.trackCacheStorageForStorageKey";
/// Registers origin to be notified when an update occurs to its IndexedDB.
///
/// Parameters:
/// - `origin`: string
pub const TRACK_INDEXED_DB_FOR_ORIGIN: &str = "Storage.trackIndexedDBForOrigin";
/// Registers storage key to be notified when an update occurs to its
/// IndexedDB.
///
/// Parameters:
/// - `storageKey`: string
pub const TRACK_INDEXED_DB_FOR_STORAGE_KEY: &str = "Storage.trackIndexedDBForStorageKey";
/// Unregisters origin from receiving notifications for cache storage.
///
/// Parameters:
/// - `origin`: string
pub const UNTRACK_CACHE_STORAGE_FOR_ORIGIN: &str = "Storage.untrackCacheStorageForOrigin";
/// Unregisters storage key from receiving notifications for cache storage.
///
/// Parameters:
/// - `storageKey`: string
pub const UNTRACK_CACHE_STORAGE_FOR_STORAGE_KEY: &str = "Storage.untrackCacheStorageForStorageKey";
/// Unregisters origin from receiving notifications for IndexedDB.
///
/// Parameters:
/// - `origin`: string
pub const UNTRACK_INDEXED_DB_FOR_ORIGIN: &str = "Storage.untrackIndexedDBForOrigin";
/// Unregisters storage key from receiving notifications for IndexedDB.
///
/// Parameters:
/// - `storageKey`: string
pub const UNTRACK_INDEXED_DB_FOR_STORAGE_KEY: &str = "Storage.untrackIndexedDBForStorageKey";
/// Returns the number of stored Trust Tokens per issuer for the current
/// browsing context.
///
/// Experimental: may change without notice.
///
/// Returns: `tokens`
pub const GET_TRUST_TOKENS: &str = "Storage.getTrustTokens";
/// Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other
/// stored data, including the issuer's Redemption Records, intact.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `issuerOrigin`: string
///
/// Returns: `didDeleteTokens`
pub const CLEAR_TRUST_TOKENS: &str = "Storage.clearTrustTokens";
/// Returns all stored Private Verification Tokens for the current browsing
/// context.
///
/// Experimental: may change without notice.
///
/// Returns: `tokens`
pub const GET_PRIVATE_VERIFICATION_TOKENS: &str = "Storage.getPrivateVerificationTokens";
/// Returns the configured Private Verification Tokens issuers and their
/// redeemer origins.
///
/// Experimental: may change without notice.
///
/// Returns: `configs`
pub const GET_PRIVATE_VERIFICATION_TOKENS_ISSUER_CONFIGS: &str =
"Storage.getPrivateVerificationTokensIssuerConfigs";
/// Removes all Private Verification Tokens issued by the provided
/// issuerOrigin.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `issuerOrigin`: string
pub const CLEAR_PRIVATE_VERIFICATION_TOKENS: &str = "Storage.clearPrivateVerificationTokens";
/// Removes a specific Private Verification Token by its ID.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `tokenId`: string
pub const DELETE_PRIVATE_VERIFICATION_TOKEN: &str = "Storage.deletePrivateVerificationToken";
/// Set tracking for Private Verification Tokens.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `enable`: boolean
pub const SET_PRIVATE_VERIFICATION_TOKENS_TRACKING: &str =
"Storage.setPrivateVerificationTokensTracking";
/// Set tracking for a storage key's buckets.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `storageKey`: string
/// - `enable`: boolean
pub const SET_STORAGE_BUCKET_TRACKING: &str = "Storage.setStorageBucketTracking";
/// Deletes the Storage Bucket with the given storage key and bucket name.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `bucket`: StorageBucket
pub const DELETE_STORAGE_BUCKET: &str = "Storage.deleteStorageBucket";
/// Deletes state for sites identified as potential bounce trackers,
/// immediately.
///
/// Experimental: may change without notice.
///
/// Returns: `deletedSites`
pub const RUN_BOUNCE_TRACKING_MITIGATIONS: &str = "Storage.runBounceTrackingMitigations";