Skip to content

Commit 82e761e

Browse files
committed
Roll protocol to r1447524
1 parent 4526a56 commit 82e761e

8 files changed

Lines changed: 219 additions & 2 deletions

changelog.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,46 @@
11

22

3+
## Roll protocol to r1447524 — _2025-04-16T04:30:24.000Z_
4+
###### Diff: [`4526a56...12a6aa9`](https://github.com/ChromeDevTools/devtools-protocol/compare/4526a56...12a6aa9)
5+
6+
```diff
7+
@@ browser_protocol.pdl:7512 @@ domain Network
8+
RequestId identifier
9+
MonotonicTime timestamp
10+
11+
+ # Fired when data is sent to tcp direct socket stream.
12+
+ experimental event directTCPSocketChunkSent
13+
+ parameters
14+
+ RequestId identifier
15+
+ binary data
16+
+ MonotonicTime timestamp
17+
+
18+
+ # Fired when data is received from tcp direct socket stream.
19+
+ experimental event directTCPSocketChunkReceived
20+
+ parameters
21+
+ RequestId identifier
22+
+ binary data
23+
+ MonotonicTime timestamp
24+
+
25+
+ # Fired when there is an error
26+
+ # when writing to tcp direct socket stream.
27+
+ # For example, if user writes illegal type like string
28+
+ # instead of ArrayBuffer or ArrayBufferView.
29+
+ # There's no reporting for reading, because
30+
+ # we cannot know errors on the other side.
31+
+ experimental event directTCPSocketChunkError
32+
+ parameters
33+
+ RequestId identifier
34+
+ string errorMessage
35+
+ MonotonicTime timestamp
36+
+
37+
experimental type PrivateNetworkRequestPolicy extends string
38+
enum
39+
Allow
40+
```
41+
342
## Roll protocol to r1446921 — _2025-04-15T04:30:37.000Z_
4-
###### Diff: [`dae4579...b8b8579`](https://github.com/ChromeDevTools/devtools-protocol/compare/dae4579...b8b8579)
43+
###### Diff: [`dae4579...4526a56`](https://github.com/ChromeDevTools/devtools-protocol/compare/dae4579...4526a56)
544

645
```diff
746
@@ browser_protocol.pdl:4676 @@ domain Emulation

json/browser_protocol.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16330,6 +16330,63 @@
1633016330
}
1633116331
]
1633216332
},
16333+
{
16334+
"name": "directTCPSocketChunkSent",
16335+
"description": "Fired when data is sent to tcp direct socket stream.",
16336+
"experimental": true,
16337+
"parameters": [
16338+
{
16339+
"name": "identifier",
16340+
"$ref": "RequestId"
16341+
},
16342+
{
16343+
"name": "data",
16344+
"type": "string"
16345+
},
16346+
{
16347+
"name": "timestamp",
16348+
"$ref": "MonotonicTime"
16349+
}
16350+
]
16351+
},
16352+
{
16353+
"name": "directTCPSocketChunkReceived",
16354+
"description": "Fired when data is received from tcp direct socket stream.",
16355+
"experimental": true,
16356+
"parameters": [
16357+
{
16358+
"name": "identifier",
16359+
"$ref": "RequestId"
16360+
},
16361+
{
16362+
"name": "data",
16363+
"type": "string"
16364+
},
16365+
{
16366+
"name": "timestamp",
16367+
"$ref": "MonotonicTime"
16368+
}
16369+
]
16370+
},
16371+
{
16372+
"name": "directTCPSocketChunkError",
16373+
"description": "Fired when there is an error\nwhen writing to tcp direct socket stream.\nFor example, if user writes illegal type like string\ninstead of ArrayBuffer or ArrayBufferView.\nThere's no reporting for reading, because\nwe cannot know errors on the other side.",
16374+
"experimental": true,
16375+
"parameters": [
16376+
{
16377+
"name": "identifier",
16378+
"$ref": "RequestId"
16379+
},
16380+
{
16381+
"name": "errorMessage",
16382+
"type": "string"
16383+
},
16384+
{
16385+
"name": "timestamp",
16386+
"$ref": "MonotonicTime"
16387+
}
16388+
]
16389+
},
1633316390
{
1633416391
"name": "requestWillBeSentExtraInfo",
1633516392
"description": "Fired when additional information about a requestWillBeSent event is available from the\nnetwork stack. Not every requestWillBeSent event will have an additional\nrequestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent\nor requestWillBeSentExtraInfo will be fired first for the same request.",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devtools-protocol",
3-
"version": "0.0.1446921",
3+
"version": "0.0.1447524",
44
"description": "The Chrome DevTools Protocol JSON",
55
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
66
"author": "The Chromium Authors",

pdl/browser_protocol.pdl

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7512,6 +7512,32 @@ domain Network
75127512
RequestId identifier
75137513
MonotonicTime timestamp
75147514

7515+
# Fired when data is sent to tcp direct socket stream.
7516+
experimental event directTCPSocketChunkSent
7517+
parameters
7518+
RequestId identifier
7519+
binary data
7520+
MonotonicTime timestamp
7521+
7522+
# Fired when data is received from tcp direct socket stream.
7523+
experimental event directTCPSocketChunkReceived
7524+
parameters
7525+
RequestId identifier
7526+
binary data
7527+
MonotonicTime timestamp
7528+
7529+
# Fired when there is an error
7530+
# when writing to tcp direct socket stream.
7531+
# For example, if user writes illegal type like string
7532+
# instead of ArrayBuffer or ArrayBufferView.
7533+
# There's no reporting for reading, because
7534+
# we cannot know errors on the other side.
7535+
experimental event directTCPSocketChunkError
7536+
parameters
7537+
RequestId identifier
7538+
string errorMessage
7539+
MonotonicTime timestamp
7540+
75157541
experimental type PrivateNetworkRequestPolicy extends string
75167542
enum
75177543
Allow

types/protocol-mapping.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,23 @@ export namespace ProtocolMapping {
367367
* Fired when direct_socket.TCPSocket is closed.
368368
*/
369369
'Network.directTCPSocketClosed': [Protocol.Network.DirectTCPSocketClosedEvent];
370+
/**
371+
* Fired when data is sent to tcp direct socket stream.
372+
*/
373+
'Network.directTCPSocketChunkSent': [Protocol.Network.DirectTCPSocketChunkSentEvent];
374+
/**
375+
* Fired when data is received from tcp direct socket stream.
376+
*/
377+
'Network.directTCPSocketChunkReceived': [Protocol.Network.DirectTCPSocketChunkReceivedEvent];
378+
/**
379+
* Fired when there is an error
380+
* when writing to tcp direct socket stream.
381+
* For example, if user writes illegal type like string
382+
* instead of ArrayBuffer or ArrayBufferView.
383+
* There's no reporting for reading, because
384+
* we cannot know errors on the other side.
385+
*/
386+
'Network.directTCPSocketChunkError': [Protocol.Network.DirectTCPSocketChunkErrorEvent];
370387
/**
371388
* Fired when additional information about a requestWillBeSent event is available from the
372389
* network stack. Not every requestWillBeSent event will have an additional

types/protocol-proxy-api.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,6 +2731,26 @@ export namespace ProtocolProxyApi {
27312731
*/
27322732
on(event: 'directTCPSocketClosed', listener: (params: Protocol.Network.DirectTCPSocketClosedEvent) => void): void;
27332733

2734+
/**
2735+
* Fired when data is sent to tcp direct socket stream.
2736+
*/
2737+
on(event: 'directTCPSocketChunkSent', listener: (params: Protocol.Network.DirectTCPSocketChunkSentEvent) => void): void;
2738+
2739+
/**
2740+
* Fired when data is received from tcp direct socket stream.
2741+
*/
2742+
on(event: 'directTCPSocketChunkReceived', listener: (params: Protocol.Network.DirectTCPSocketChunkReceivedEvent) => void): void;
2743+
2744+
/**
2745+
* Fired when there is an error
2746+
* when writing to tcp direct socket stream.
2747+
* For example, if user writes illegal type like string
2748+
* instead of ArrayBuffer or ArrayBufferView.
2749+
* There's no reporting for reading, because
2750+
* we cannot know errors on the other side.
2751+
*/
2752+
on(event: 'directTCPSocketChunkError', listener: (params: Protocol.Network.DirectTCPSocketChunkErrorEvent) => void): void;
2753+
27342754
/**
27352755
* Fired when additional information about a requestWillBeSent event is available from the
27362756
* network stack. Not every requestWillBeSent event will have an additional

types/protocol-tests-proxy-api.d.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2919,6 +2919,32 @@ export namespace ProtocolTestsProxyApi {
29192919
offDirectTCPSocketClosed(listener: (event: { params: Protocol.Network.DirectTCPSocketClosedEvent }) => void): void;
29202920
onceDirectTCPSocketClosed(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketClosedEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketClosedEvent }>;
29212921

2922+
/**
2923+
* Fired when data is sent to tcp direct socket stream.
2924+
*/
2925+
onDirectTCPSocketChunkSent(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkSentEvent }) => void): void;
2926+
offDirectTCPSocketChunkSent(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkSentEvent }) => void): void;
2927+
onceDirectTCPSocketChunkSent(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketChunkSentEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketChunkSentEvent }>;
2928+
2929+
/**
2930+
* Fired when data is received from tcp direct socket stream.
2931+
*/
2932+
onDirectTCPSocketChunkReceived(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkReceivedEvent }) => void): void;
2933+
offDirectTCPSocketChunkReceived(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkReceivedEvent }) => void): void;
2934+
onceDirectTCPSocketChunkReceived(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketChunkReceivedEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketChunkReceivedEvent }>;
2935+
2936+
/**
2937+
* Fired when there is an error
2938+
* when writing to tcp direct socket stream.
2939+
* For example, if user writes illegal type like string
2940+
* instead of ArrayBuffer or ArrayBufferView.
2941+
* There's no reporting for reading, because
2942+
* we cannot know errors on the other side.
2943+
*/
2944+
onDirectTCPSocketChunkError(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkErrorEvent }) => void): void;
2945+
offDirectTCPSocketChunkError(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkErrorEvent }) => void): void;
2946+
onceDirectTCPSocketChunkError(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketChunkErrorEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketChunkErrorEvent }>;
2947+
29222948
/**
29232949
* Fired when additional information about a requestWillBeSent event is available from the
29242950
* network stack. Not every requestWillBeSent event will have an additional

types/protocol.d.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12819,6 +12819,38 @@ export namespace Protocol {
1281912819
timestamp: MonotonicTime;
1282012820
}
1282112821

12822+
/**
12823+
* Fired when data is sent to tcp direct socket stream.
12824+
*/
12825+
export interface DirectTCPSocketChunkSentEvent {
12826+
identifier: RequestId;
12827+
data: string;
12828+
timestamp: MonotonicTime;
12829+
}
12830+
12831+
/**
12832+
* Fired when data is received from tcp direct socket stream.
12833+
*/
12834+
export interface DirectTCPSocketChunkReceivedEvent {
12835+
identifier: RequestId;
12836+
data: string;
12837+
timestamp: MonotonicTime;
12838+
}
12839+
12840+
/**
12841+
* Fired when there is an error
12842+
* when writing to tcp direct socket stream.
12843+
* For example, if user writes illegal type like string
12844+
* instead of ArrayBuffer or ArrayBufferView.
12845+
* There's no reporting for reading, because
12846+
* we cannot know errors on the other side.
12847+
*/
12848+
export interface DirectTCPSocketChunkErrorEvent {
12849+
identifier: RequestId;
12850+
errorMessage: string;
12851+
timestamp: MonotonicTime;
12852+
}
12853+
1282212854
/**
1282312855
* Fired when additional information about a requestWillBeSent event is available from the
1282412856
* network stack. Not every requestWillBeSent event will have an additional

0 commit comments

Comments
 (0)