Skip to content

Commit f3e9bc4

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent 09eae13 commit f3e9bc4

11 files changed

+297
-4
lines changed

gen-src/ChromeDevtoolsProtocol/Domain/StorageDomain.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@
2828
use ChromeDevtoolsProtocol\Model\Storage\SetInterestGroupTrackingRequest;
2929
use ChromeDevtoolsProtocol\Model\Storage\TrackCacheStorageForOriginRequest;
3030
use ChromeDevtoolsProtocol\Model\Storage\TrackIndexedDBForOriginRequest;
31+
use ChromeDevtoolsProtocol\Model\Storage\TrackIndexedDBForStorageKeyRequest;
3132
use ChromeDevtoolsProtocol\Model\Storage\UntrackCacheStorageForOriginRequest;
3233
use ChromeDevtoolsProtocol\Model\Storage\UntrackIndexedDBForOriginRequest;
34+
use ChromeDevtoolsProtocol\Model\Storage\UntrackIndexedDBForStorageKeyRequest;
3335
use ChromeDevtoolsProtocol\SubscriptionInterface;
3436

3537
class StorageDomain implements StorageDomainInterface
@@ -139,6 +141,12 @@ public function trackIndexedDBForOrigin(ContextInterface $ctx, TrackIndexedDBFor
139141
}
140142

141143

144+
public function trackIndexedDBForStorageKey(ContextInterface $ctx, TrackIndexedDBForStorageKeyRequest $request): void
145+
{
146+
$this->internalClient->executeCommand($ctx, 'Storage.trackIndexedDBForStorageKey', $request);
147+
}
148+
149+
142150
public function untrackCacheStorageForOrigin(ContextInterface $ctx, UntrackCacheStorageForOriginRequest $request): void
143151
{
144152
$this->internalClient->executeCommand($ctx, 'Storage.untrackCacheStorageForOrigin', $request);
@@ -151,6 +159,14 @@ public function untrackIndexedDBForOrigin(ContextInterface $ctx, UntrackIndexedD
151159
}
152160

153161

162+
public function untrackIndexedDBForStorageKey(
163+
ContextInterface $ctx,
164+
UntrackIndexedDBForStorageKeyRequest $request
165+
): void {
166+
$this->internalClient->executeCommand($ctx, 'Storage.untrackIndexedDBForStorageKey', $request);
167+
}
168+
169+
154170
public function addCacheStorageContentUpdatedListener(callable $listener): SubscriptionInterface
155171
{
156172
return $this->internalClient->addListener('Storage.cacheStorageContentUpdated', function ($event) use ($listener) {

gen-src/ChromeDevtoolsProtocol/Domain/StorageDomainInterface.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@
2727
use ChromeDevtoolsProtocol\Model\Storage\SetInterestGroupTrackingRequest;
2828
use ChromeDevtoolsProtocol\Model\Storage\TrackCacheStorageForOriginRequest;
2929
use ChromeDevtoolsProtocol\Model\Storage\TrackIndexedDBForOriginRequest;
30+
use ChromeDevtoolsProtocol\Model\Storage\TrackIndexedDBForStorageKeyRequest;
3031
use ChromeDevtoolsProtocol\Model\Storage\UntrackCacheStorageForOriginRequest;
3132
use ChromeDevtoolsProtocol\Model\Storage\UntrackIndexedDBForOriginRequest;
33+
use ChromeDevtoolsProtocol\Model\Storage\UntrackIndexedDBForStorageKeyRequest;
3234
use ChromeDevtoolsProtocol\SubscriptionInterface;
3335

3436
/**
@@ -201,6 +203,17 @@ public function trackCacheStorageForOrigin(ContextInterface $ctx, TrackCacheStor
201203
public function trackIndexedDBForOrigin(ContextInterface $ctx, TrackIndexedDBForOriginRequest $request): void;
202204

203205

206+
/**
207+
* Registers storage key to be notified when an update occurs to its IndexedDB.
208+
*
209+
* @param ContextInterface $ctx
210+
* @param TrackIndexedDBForStorageKeyRequest $request
211+
*
212+
* @return void
213+
*/
214+
public function trackIndexedDBForStorageKey(ContextInterface $ctx, TrackIndexedDBForStorageKeyRequest $request): void;
215+
216+
204217
/**
205218
* Unregisters origin from receiving notifications for cache storage.
206219
*
@@ -223,6 +236,20 @@ public function untrackCacheStorageForOrigin(ContextInterface $ctx, UntrackCache
223236
public function untrackIndexedDBForOrigin(ContextInterface $ctx, UntrackIndexedDBForOriginRequest $request): void;
224237

225238

239+
/**
240+
* Unregisters storage key from receiving notifications for IndexedDB.
241+
*
242+
* @param ContextInterface $ctx
243+
* @param UntrackIndexedDBForStorageKeyRequest $request
244+
*
245+
* @return void
246+
*/
247+
public function untrackIndexedDBForStorageKey(
248+
ContextInterface $ctx,
249+
UntrackIndexedDBForStorageKeyRequest $request
250+
): void;
251+
252+
226253
/**
227254
* A cache's contents have been modified.
228255
*

gen-src/ChromeDevtoolsProtocol/Model/Storage/IndexedDBContentUpdatedEvent.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ final class IndexedDBContentUpdatedEvent implements \JsonSerializable
1818
*/
1919
public $origin;
2020

21+
/**
22+
* Storage key to update.
23+
*
24+
* @var string
25+
*/
26+
public $storageKey;
27+
2128
/**
2229
* Database to update.
2330
*
@@ -43,6 +50,9 @@ public static function fromJson($data)
4350
if (isset($data->origin)) {
4451
$instance->origin = (string)$data->origin;
4552
}
53+
if (isset($data->storageKey)) {
54+
$instance->storageKey = (string)$data->storageKey;
55+
}
4656
if (isset($data->databaseName)) {
4757
$instance->databaseName = (string)$data->databaseName;
4858
}
@@ -59,6 +69,9 @@ public function jsonSerialize()
5969
if ($this->origin !== null) {
6070
$data->origin = $this->origin;
6171
}
72+
if ($this->storageKey !== null) {
73+
$data->storageKey = $this->storageKey;
74+
}
6275
if ($this->databaseName !== null) {
6376
$data->databaseName = $this->databaseName;
6477
}

gen-src/ChromeDevtoolsProtocol/Model/Storage/IndexedDBListUpdatedEvent.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ final class IndexedDBListUpdatedEvent implements \JsonSerializable
1818
*/
1919
public $origin;
2020

21+
/**
22+
* Storage key to update.
23+
*
24+
* @var string
25+
*/
26+
public $storageKey;
27+
2128

2229
/**
2330
* @param object $data
@@ -29,6 +36,9 @@ public static function fromJson($data)
2936
if (isset($data->origin)) {
3037
$instance->origin = (string)$data->origin;
3138
}
39+
if (isset($data->storageKey)) {
40+
$instance->storageKey = (string)$data->storageKey;
41+
}
3242
return $instance;
3343
}
3444

@@ -39,6 +49,9 @@ public function jsonSerialize()
3949
if ($this->origin !== null) {
4050
$data->origin = $this->origin;
4151
}
52+
if ($this->storageKey !== null) {
53+
$data->storageKey = $this->storageKey;
54+
}
4255
return $data;
4356
}
4457
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\Storage;
4+
5+
/**
6+
* Request for Storage.trackIndexedDBForStorageKey command.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class TrackIndexedDBForStorageKeyRequest implements \JsonSerializable
13+
{
14+
/**
15+
* Storage key.
16+
*
17+
* @var string
18+
*/
19+
public $storageKey;
20+
21+
22+
/**
23+
* @param object $data
24+
* @return static
25+
*/
26+
public static function fromJson($data)
27+
{
28+
$instance = new static();
29+
if (isset($data->storageKey)) {
30+
$instance->storageKey = (string)$data->storageKey;
31+
}
32+
return $instance;
33+
}
34+
35+
36+
public function jsonSerialize()
37+
{
38+
$data = new \stdClass();
39+
if ($this->storageKey !== null) {
40+
$data->storageKey = $this->storageKey;
41+
}
42+
return $data;
43+
}
44+
45+
46+
/**
47+
* Create new instance using builder.
48+
*
49+
* @return TrackIndexedDBForStorageKeyRequestBuilder
50+
*/
51+
public static function builder(): TrackIndexedDBForStorageKeyRequestBuilder
52+
{
53+
return new TrackIndexedDBForStorageKeyRequestBuilder();
54+
}
55+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\Storage;
4+
5+
use ChromeDevtoolsProtocol\Exception\BuilderException;
6+
7+
/**
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class TrackIndexedDBForStorageKeyRequestBuilder
13+
{
14+
private $storageKey;
15+
16+
17+
/**
18+
* Validate non-optional parameters and return new instance.
19+
*/
20+
public function build(): TrackIndexedDBForStorageKeyRequest
21+
{
22+
$instance = new TrackIndexedDBForStorageKeyRequest();
23+
if ($this->storageKey === null) {
24+
throw new BuilderException('Property [storageKey] is required.');
25+
}
26+
$instance->storageKey = $this->storageKey;
27+
return $instance;
28+
}
29+
30+
31+
/**
32+
* @param string $storageKey
33+
*
34+
* @return self
35+
*/
36+
public function setStorageKey($storageKey): self
37+
{
38+
$this->storageKey = $storageKey;
39+
return $this;
40+
}
41+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\Storage;
4+
5+
/**
6+
* Request for Storage.untrackIndexedDBForStorageKey command.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class UntrackIndexedDBForStorageKeyRequest implements \JsonSerializable
13+
{
14+
/**
15+
* Storage key.
16+
*
17+
* @var string
18+
*/
19+
public $storageKey;
20+
21+
22+
/**
23+
* @param object $data
24+
* @return static
25+
*/
26+
public static function fromJson($data)
27+
{
28+
$instance = new static();
29+
if (isset($data->storageKey)) {
30+
$instance->storageKey = (string)$data->storageKey;
31+
}
32+
return $instance;
33+
}
34+
35+
36+
public function jsonSerialize()
37+
{
38+
$data = new \stdClass();
39+
if ($this->storageKey !== null) {
40+
$data->storageKey = $this->storageKey;
41+
}
42+
return $data;
43+
}
44+
45+
46+
/**
47+
* Create new instance using builder.
48+
*
49+
* @return UntrackIndexedDBForStorageKeyRequestBuilder
50+
*/
51+
public static function builder(): UntrackIndexedDBForStorageKeyRequestBuilder
52+
{
53+
return new UntrackIndexedDBForStorageKeyRequestBuilder();
54+
}
55+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\Storage;
4+
5+
use ChromeDevtoolsProtocol\Exception\BuilderException;
6+
7+
/**
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class UntrackIndexedDBForStorageKeyRequestBuilder
13+
{
14+
private $storageKey;
15+
16+
17+
/**
18+
* Validate non-optional parameters and return new instance.
19+
*/
20+
public function build(): UntrackIndexedDBForStorageKeyRequest
21+
{
22+
$instance = new UntrackIndexedDBForStorageKeyRequest();
23+
if ($this->storageKey === null) {
24+
throw new BuilderException('Property [storageKey] is required.');
25+
}
26+
$instance->storageKey = $this->storageKey;
27+
return $instance;
28+
}
29+
30+
31+
/**
32+
* @param string $storageKey
33+
*
34+
* @return self
35+
*/
36+
public function setStorageKey($storageKey): self
37+
{
38+
$this->storageKey = $storageKey;
39+
return $this;
40+
}
41+
}

gen-src/ChromeDevtoolsProtocol/Model/Target/FilterEntry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
final class FilterEntry implements \JsonSerializable
1313
{
1414
/**
15-
* If set, causes exclusion of mathcing targets from the list. The remainder of filter entries in the filter arrat are ignored.
15+
* If set, causes exclusion of mathcing targets from the list.
1616
*
1717
* @var bool|null
1818
*/

0 commit comments

Comments
 (0)