Skip to content

Commit f4503dc

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent e416e48 commit f4503dc

12 files changed

+525
-1
lines changed

gen-src/ChromeDevtoolsProtocol/Domain/DebuggerDomain.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
use ChromeDevtoolsProtocol\InternalClientInterface;
77
use ChromeDevtoolsProtocol\Model\Debugger\BreakpointResolvedEvent;
88
use ChromeDevtoolsProtocol\Model\Debugger\ContinueToLocationRequest;
9+
use ChromeDevtoolsProtocol\Model\Debugger\DisassembleWasmModuleRequest;
10+
use ChromeDevtoolsProtocol\Model\Debugger\DisassembleWasmModuleResponse;
911
use ChromeDevtoolsProtocol\Model\Debugger\EnableRequest;
1012
use ChromeDevtoolsProtocol\Model\Debugger\EnableResponse;
1113
use ChromeDevtoolsProtocol\Model\Debugger\EvaluateOnCallFrameRequest;
@@ -18,6 +20,8 @@
1820
use ChromeDevtoolsProtocol\Model\Debugger\GetStackTraceResponse;
1921
use ChromeDevtoolsProtocol\Model\Debugger\GetWasmBytecodeRequest;
2022
use ChromeDevtoolsProtocol\Model\Debugger\GetWasmBytecodeResponse;
23+
use ChromeDevtoolsProtocol\Model\Debugger\NextWasmDisassemblyChunkRequest;
24+
use ChromeDevtoolsProtocol\Model\Debugger\NextWasmDisassemblyChunkResponse;
2125
use ChromeDevtoolsProtocol\Model\Debugger\PauseOnAsyncCallRequest;
2226
use ChromeDevtoolsProtocol\Model\Debugger\PausedEvent;
2327
use ChromeDevtoolsProtocol\Model\Debugger\RemoveBreakpointRequest;
@@ -76,6 +80,15 @@ public function disable(ContextInterface $ctx): void
7680
}
7781

7882

83+
public function disassembleWasmModule(
84+
ContextInterface $ctx,
85+
DisassembleWasmModuleRequest $request
86+
): DisassembleWasmModuleResponse {
87+
$response = $this->internalClient->executeCommand($ctx, 'Debugger.disassembleWasmModule', $request);
88+
return DisassembleWasmModuleResponse::fromJson($response);
89+
}
90+
91+
7992
public function enable(ContextInterface $ctx, EnableRequest $request): EnableResponse
8093
{
8194
$response = $this->internalClient->executeCommand($ctx, 'Debugger.enable', $request);
@@ -122,6 +135,15 @@ public function getWasmBytecode(ContextInterface $ctx, GetWasmBytecodeRequest $r
122135
}
123136

124137

138+
public function nextWasmDisassemblyChunk(
139+
ContextInterface $ctx,
140+
NextWasmDisassemblyChunkRequest $request
141+
): NextWasmDisassemblyChunkResponse {
142+
$response = $this->internalClient->executeCommand($ctx, 'Debugger.nextWasmDisassemblyChunk', $request);
143+
return NextWasmDisassemblyChunkResponse::fromJson($response);
144+
}
145+
146+
125147
public function pause(ContextInterface $ctx): void
126148
{
127149
$request = new \stdClass();

gen-src/ChromeDevtoolsProtocol/Domain/DebuggerDomainInterface.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
use ChromeDevtoolsProtocol\ContextInterface;
66
use ChromeDevtoolsProtocol\Model\Debugger\BreakpointResolvedEvent;
77
use ChromeDevtoolsProtocol\Model\Debugger\ContinueToLocationRequest;
8+
use ChromeDevtoolsProtocol\Model\Debugger\DisassembleWasmModuleRequest;
9+
use ChromeDevtoolsProtocol\Model\Debugger\DisassembleWasmModuleResponse;
810
use ChromeDevtoolsProtocol\Model\Debugger\EnableRequest;
911
use ChromeDevtoolsProtocol\Model\Debugger\EnableResponse;
1012
use ChromeDevtoolsProtocol\Model\Debugger\EvaluateOnCallFrameRequest;
@@ -17,6 +19,8 @@
1719
use ChromeDevtoolsProtocol\Model\Debugger\GetStackTraceResponse;
1820
use ChromeDevtoolsProtocol\Model\Debugger\GetWasmBytecodeRequest;
1921
use ChromeDevtoolsProtocol\Model\Debugger\GetWasmBytecodeResponse;
22+
use ChromeDevtoolsProtocol\Model\Debugger\NextWasmDisassemblyChunkRequest;
23+
use ChromeDevtoolsProtocol\Model\Debugger\NextWasmDisassemblyChunkResponse;
2024
use ChromeDevtoolsProtocol\Model\Debugger\PauseOnAsyncCallRequest;
2125
use ChromeDevtoolsProtocol\Model\Debugger\PausedEvent;
2226
use ChromeDevtoolsProtocol\Model\Debugger\RemoveBreakpointRequest;
@@ -80,6 +84,20 @@ public function continueToLocation(ContextInterface $ctx, ContinueToLocationRequ
8084
public function disable(ContextInterface $ctx): void;
8185

8286

87+
/**
88+
* Call Debugger.disassembleWasmModule command.
89+
*
90+
* @param ContextInterface $ctx
91+
* @param DisassembleWasmModuleRequest $request
92+
*
93+
* @return DisassembleWasmModuleResponse
94+
*/
95+
public function disassembleWasmModule(
96+
ContextInterface $ctx,
97+
DisassembleWasmModuleRequest $request
98+
): DisassembleWasmModuleResponse;
99+
100+
83101
/**
84102
* Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
85103
*
@@ -152,6 +170,20 @@ public function getStackTrace(ContextInterface $ctx, GetStackTraceRequest $reque
152170
public function getWasmBytecode(ContextInterface $ctx, GetWasmBytecodeRequest $request): GetWasmBytecodeResponse;
153171

154172

173+
/**
174+
* Disassemble the next chunk of lines for the module corresponding to the stream. If disassembly is complete, this API will invalidate the streamId and return an empty chunk. Any subsequent calls for the now invalid stream will return errors.
175+
*
176+
* @param ContextInterface $ctx
177+
* @param NextWasmDisassemblyChunkRequest $request
178+
*
179+
* @return NextWasmDisassemblyChunkResponse
180+
*/
181+
public function nextWasmDisassemblyChunk(
182+
ContextInterface $ctx,
183+
NextWasmDisassemblyChunkRequest $request
184+
): NextWasmDisassemblyChunkResponse;
185+
186+
155187
/**
156188
* Stops on the next JavaScript statement.
157189
*

gen-src/ChromeDevtoolsProtocol/Model/Audits/DeprecationIssueTypeEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ final class DeprecationIssueTypeEnum
2424
public const DEPRECATION_EXAMPLE = 'DeprecationExample';
2525
public const DOCUMENT_DOMAIN_SETTING_WITHOUT_ORIGIN_AGENT_CLUSTER_HEADER = 'DocumentDomainSettingWithoutOriginAgentClusterHeader';
2626
public const EVENT_PATH = 'EventPath';
27+
public const EXPECT_C_T_HEADER = 'ExpectCTHeader';
2728
public const GEOLOCATION_INSECURE_ORIGIN = 'GeolocationInsecureOrigin';
2829
public const GEOLOCATION_INSECURE_ORIGIN_DEPRECATED_NOT_REMOVED = 'GeolocationInsecureOriginDeprecatedNotRemoved';
2930
public const GET_USER_MEDIA_INSECURE_ORIGIN = 'GetUserMediaInsecureOrigin';
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\Debugger;
4+
5+
/**
6+
* Request for Debugger.disassembleWasmModule command.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class DisassembleWasmModuleRequest implements \JsonSerializable
13+
{
14+
/**
15+
* Id of the script to disassemble
16+
*
17+
* @var string
18+
*/
19+
public $scriptId;
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->scriptId)) {
30+
$instance->scriptId = (string)$data->scriptId;
31+
}
32+
return $instance;
33+
}
34+
35+
36+
public function jsonSerialize()
37+
{
38+
$data = new \stdClass();
39+
if ($this->scriptId !== null) {
40+
$data->scriptId = $this->scriptId;
41+
}
42+
return $data;
43+
}
44+
45+
46+
/**
47+
* Create new instance using builder.
48+
*
49+
* @return DisassembleWasmModuleRequestBuilder
50+
*/
51+
public static function builder(): DisassembleWasmModuleRequestBuilder
52+
{
53+
return new DisassembleWasmModuleRequestBuilder();
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\Debugger;
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 DisassembleWasmModuleRequestBuilder
13+
{
14+
private $scriptId;
15+
16+
17+
/**
18+
* Validate non-optional parameters and return new instance.
19+
*/
20+
public function build(): DisassembleWasmModuleRequest
21+
{
22+
$instance = new DisassembleWasmModuleRequest();
23+
if ($this->scriptId === null) {
24+
throw new BuilderException('Property [scriptId] is required.');
25+
}
26+
$instance->scriptId = $this->scriptId;
27+
return $instance;
28+
}
29+
30+
31+
/**
32+
* @param string $scriptId
33+
*
34+
* @return self
35+
*/
36+
public function setScriptId($scriptId): self
37+
{
38+
$this->scriptId = $scriptId;
39+
return $this;
40+
}
41+
}
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\Debugger;
4+
5+
/**
6+
* Response to Debugger.disassembleWasmModule command.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class DisassembleWasmModuleResponse implements \JsonSerializable
13+
{
14+
/**
15+
* For large modules, return a stream from which additional chunks of disassembly can be read successively.
16+
*
17+
* @var string|null
18+
*/
19+
public $streamId;
20+
21+
/**
22+
* The total number of lines in the disassembly text.
23+
*
24+
* @var int
25+
*/
26+
public $totalNumberOfLines;
27+
28+
/**
29+
* The offsets of all function bodies plus one additional entry pointing one by past the end of the last function.
30+
*
31+
* @var int[]
32+
*/
33+
public $functionBodyOffsets;
34+
35+
/**
36+
* The first chunk of disassembly.
37+
*
38+
* @var WasmDisassemblyChunk
39+
*/
40+
public $chunk;
41+
42+
43+
/**
44+
* @param object $data
45+
* @return static
46+
*/
47+
public static function fromJson($data)
48+
{
49+
$instance = new static();
50+
if (isset($data->streamId)) {
51+
$instance->streamId = (string)$data->streamId;
52+
}
53+
if (isset($data->totalNumberOfLines)) {
54+
$instance->totalNumberOfLines = (int)$data->totalNumberOfLines;
55+
}
56+
if (isset($data->functionBodyOffsets)) {
57+
$instance->functionBodyOffsets = [];
58+
foreach ($data->functionBodyOffsets as $item) {
59+
$instance->functionBodyOffsets[] = (int)$item;
60+
}
61+
}
62+
if (isset($data->chunk)) {
63+
$instance->chunk = WasmDisassemblyChunk::fromJson($data->chunk);
64+
}
65+
return $instance;
66+
}
67+
68+
69+
public function jsonSerialize()
70+
{
71+
$data = new \stdClass();
72+
if ($this->streamId !== null) {
73+
$data->streamId = $this->streamId;
74+
}
75+
if ($this->totalNumberOfLines !== null) {
76+
$data->totalNumberOfLines = $this->totalNumberOfLines;
77+
}
78+
if ($this->functionBodyOffsets !== null) {
79+
$data->functionBodyOffsets = [];
80+
foreach ($this->functionBodyOffsets as $item) {
81+
$data->functionBodyOffsets[] = $item;
82+
}
83+
}
84+
if ($this->chunk !== null) {
85+
$data->chunk = $this->chunk->jsonSerialize();
86+
}
87+
return $data;
88+
}
89+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\Debugger;
4+
5+
/**
6+
* Request for Debugger.nextWasmDisassemblyChunk command.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class NextWasmDisassemblyChunkRequest implements \JsonSerializable
13+
{
14+
/** @var string */
15+
public $streamId;
16+
17+
18+
/**
19+
* @param object $data
20+
* @return static
21+
*/
22+
public static function fromJson($data)
23+
{
24+
$instance = new static();
25+
if (isset($data->streamId)) {
26+
$instance->streamId = (string)$data->streamId;
27+
}
28+
return $instance;
29+
}
30+
31+
32+
public function jsonSerialize()
33+
{
34+
$data = new \stdClass();
35+
if ($this->streamId !== null) {
36+
$data->streamId = $this->streamId;
37+
}
38+
return $data;
39+
}
40+
41+
42+
/**
43+
* Create new instance using builder.
44+
*
45+
* @return NextWasmDisassemblyChunkRequestBuilder
46+
*/
47+
public static function builder(): NextWasmDisassemblyChunkRequestBuilder
48+
{
49+
return new NextWasmDisassemblyChunkRequestBuilder();
50+
}
51+
}
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\Debugger;
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 NextWasmDisassemblyChunkRequestBuilder
13+
{
14+
private $streamId;
15+
16+
17+
/**
18+
* Validate non-optional parameters and return new instance.
19+
*/
20+
public function build(): NextWasmDisassemblyChunkRequest
21+
{
22+
$instance = new NextWasmDisassemblyChunkRequest();
23+
if ($this->streamId === null) {
24+
throw new BuilderException('Property [streamId] is required.');
25+
}
26+
$instance->streamId = $this->streamId;
27+
return $instance;
28+
}
29+
30+
31+
/**
32+
* @param string $streamId
33+
*
34+
* @return self
35+
*/
36+
public function setStreamId($streamId): self
37+
{
38+
$this->streamId = $streamId;
39+
return $this;
40+
}
41+
}

0 commit comments

Comments
 (0)