Skip to content

Commit

Permalink
Roll protocol to r1234845
Browse files Browse the repository at this point in the history
  • Loading branch information
devtools-bot committed Dec 8, 2023
1 parent 8db4cb9 commit 8f7e4a0
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 16 deletions.
41 changes: 26 additions & 15 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,32 @@


## Roll protocol to r1234845 — _2023-12-08T04:27:01.000Z_
###### Diff: [`8db4cb9...8a25193`](https://github.com/ChromeDevTools/devtools-protocol/compare/`8db4cb9...8a25193`)

```diff
@@ browser_protocol.pdl:6465 @@ domain Network
integer dataLength
# Actual bytes received (might be less than dataLength for compressed encodings).
integer encodedDataLength
- # Data that was received.
- experimental optional binary data
-
- # Enables streaming of the response for the given requestId.
- # If enabled, the dataReceived event contains the data that was received during streaming.
- experimental command streamResourceContent
- parameters
- # Identifier of the request to stream.
- RequestId requestId
- returns
- # Data that has been buffered until streaming is enabled.
- binary bufferedData

# Fired when EventSource message is received.
event eventSourceMessageReceived
```

## Roll protocol to r1233758 — _2023-12-06T04:27:12.000Z_
###### Diff: [`accc8b6...6125f6f`](https://github.com/ChromeDevTools/devtools-protocol/compare/`accc8b6...6125f6f`)
###### Diff: [`accc8b6...8db4cb9`](https://github.com/ChromeDevTools/devtools-protocol/compare/`accc8b6...8db4cb9`)

```diff
@@ browser_protocol.pdl:11577 @@ experimental domain Preload
Expand Down Expand Up @@ -11039,18 +11064,4 @@ index bd277eb..09c420e 100644

# A cookie which was not stored from a response with the corresponding reason.
experimental type BlockedSetCookieWithReason extends object
```

## Roll protocol to r923255 — _2021-09-21T06:15:25.000Z_
###### Diff: [`f62186c...384a24c`](https://github.com/ChromeDevTools/devtools-protocol/compare/`f62186c...384a24c`)

```diff
@@ browser_protocol.pdl:7937 @@ domain Page
ContentWebBluetooth
ContentWebUSB
ContentMediaSession
- ContentMediaSessionService
EmbedderPopupBlockerTabHelper
EmbedderSafeBrowsingTriggeredPopupBlocker
EmbedderSafeBrowsingThreatDetails
```
26 changes: 26 additions & 0 deletions json/browser_protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -14120,6 +14120,25 @@
}
]
},
{
"name": "streamResourceContent",
"description": "Enables streaming of the response for the given requestId.\nIf enabled, the dataReceived event contains the data that was received during streaming.",
"experimental": true,
"parameters": [
{
"name": "requestId",
"description": "Identifier of the request to stream.",
"$ref": "RequestId"
}
],
"returns": [
{
"name": "bufferedData",
"description": "Data that has been buffered until streaming is enabled. (Encoded as a base64 string when passed over JSON)",
"type": "string"
}
]
},
{
"name": "getSecurityIsolationStatus",
"description": "Returns information about the COEP/COOP isolation status.",
Expand Down Expand Up @@ -14205,6 +14224,13 @@
"name": "encodedDataLength",
"description": "Actual bytes received (might be less than dataLength for compressed encodings).",
"type": "integer"
},
{
"name": "data",
"description": "Data that was received. (Encoded as a base64 string when passed over JSON)",
"experimental": true,
"optional": true,
"type": "string"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devtools-protocol",
"version": "0.0.1233758",
"version": "0.0.1234845",
"description": "The Chrome DevTools Protocol JSON",
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
"author": "The Chromium Authors",
Expand Down
12 changes: 12 additions & 0 deletions pdl/browser_protocol.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -6465,6 +6465,18 @@ domain Network
integer dataLength
# Actual bytes received (might be less than dataLength for compressed encodings).
integer encodedDataLength
# Data that was received.
experimental optional binary data

# Enables streaming of the response for the given requestId.
# If enabled, the dataReceived event contains the data that was received during streaming.
experimental command streamResourceContent
parameters
# Identifier of the request to stream.
RequestId requestId
returns
# Data that has been buffered until streaming is enabled.
binary bufferedData

# Fired when EventSource message is received.
event eventSourceMessageReceived
Expand Down
8 changes: 8 additions & 0 deletions types/protocol-mapping.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3352,6 +3352,14 @@ export namespace ProtocolMapping {
paramsType: [Protocol.Network.SetUserAgentOverrideRequest];
returnType: void;
};
/**
* Enables streaming of the response for the given requestId.
* If enabled, the dataReceived event contains the data that was received during streaming.
*/
'Network.streamResourceContent': {
paramsType: [Protocol.Network.StreamResourceContentRequest];
returnType: Protocol.Network.StreamResourceContentResponse;
};
/**
* Returns information about the COEP/COOP isolation status.
*/
Expand Down
6 changes: 6 additions & 0 deletions types/protocol-proxy-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2399,6 +2399,12 @@ export namespace ProtocolProxyApi {
*/
setUserAgentOverride(params: Protocol.Network.SetUserAgentOverrideRequest): Promise<void>;

/**
* Enables streaming of the response for the given requestId.
* If enabled, the dataReceived event contains the data that was received during streaming.
*/
streamResourceContent(params: Protocol.Network.StreamResourceContentRequest): Promise<Protocol.Network.StreamResourceContentResponse>;

/**
* Returns information about the COEP/COOP isolation status.
*/
Expand Down
18 changes: 18 additions & 0 deletions types/protocol.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11395,6 +11395,20 @@ export namespace Protocol {
userAgentMetadata?: Emulation.UserAgentMetadata;
}

export interface StreamResourceContentRequest {
/**
* Identifier of the request to stream.
*/
requestId: RequestId;
}

export interface StreamResourceContentResponse {
/**
* Data that has been buffered until streaming is enabled. (Encoded as a base64 string when passed over JSON)
*/
bufferedData: string;
}

export interface GetSecurityIsolationStatusRequest {
/**
* If no frameId is provided, the status of the target is provided.
Expand Down Expand Up @@ -11453,6 +11467,10 @@ export namespace Protocol {
* Actual bytes received (might be less than dataLength for compressed encodings).
*/
encodedDataLength: integer;
/**
* Data that was received. (Encoded as a base64 string when passed over JSON)
*/
data?: string;
}

/**
Expand Down

0 comments on commit 8f7e4a0

Please sign in to comment.