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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
// @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";
/// Gets metadata for an origin's shared storage.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `ownerOrigin`: string
///
/// Returns: `metadata`
pub const GET_SHARED_STORAGE_METADATA: &str = "Storage.getSharedStorageMetadata";
/// Gets the entries in an given origin's shared storage.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `ownerOrigin`: string
///
/// Returns: `entries`
pub const GET_SHARED_STORAGE_ENTRIES: &str = "Storage.getSharedStorageEntries";
/// Sets entry with `key` and `value` for a given origin's shared storage.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `ownerOrigin`: string
/// - `key`: string
/// - `value`: string
/// - `ignoreIfPresent`: boolean (optional)
pub const SET_SHARED_STORAGE_ENTRY: &str = "Storage.setSharedStorageEntry";
/// Deletes entry for `key` (if it exists) for a given origin's shared
/// storage.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `ownerOrigin`: string
/// - `key`: string
pub const DELETE_SHARED_STORAGE_ENTRY: &str = "Storage.deleteSharedStorageEntry";
/// Clears all entries for a given origin's shared storage.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `ownerOrigin`: string
pub const CLEAR_SHARED_STORAGE_ENTRIES: &str = "Storage.clearSharedStorageEntries";
/// Resets the budget for `ownerOrigin` by clearing all budget withdrawals.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `ownerOrigin`: string
pub const RESET_SHARED_STORAGE_BUDGET: &str = "Storage.resetSharedStorageBudget";
/// Enables/disables issuing of sharedStorageAccessed events.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `enable`: boolean
pub const SET_SHARED_STORAGE_TRACKING: &str = "Storage.setSharedStorageTracking";
/// 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";
/// Returns the effective Related Website Sets in use by this profile for the
/// browser session. The effective Related Website Sets will not change during
/// a browser session.
///
/// Experimental: may change without notice.
///
/// Returns: `sets`
pub const GET_RELATED_WEBSITE_SETS: &str = "Storage.getRelatedWebsiteSets";