mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-11 06:04:55 +08:00
Update browser_protocol.pdl
DISABLE_THIRD_PARTY_CHECK=Update protocol Back-end CL: https://crrev.com/c/2514378 Bug: chromium:1139899 Change-Id: Ic0193dbb7a4c217ccbe8217b90c3ae96afb347d2 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2514440 Commit-Queue: Sigurd Schneider <sigurds@chromium.org> Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
This commit is contained in:
committed by
Commit Bot
parent
1aa3b25796
commit
953916c4e1
@@ -1423,7 +1423,8 @@ export function registerCommands(inspectorBackend) {
|
||||
InvalidAllowHeadersPreflightResponse: 'InvalidAllowHeadersPreflightResponse',
|
||||
MethodDisallowedByPreflightResponse: 'MethodDisallowedByPreflightResponse',
|
||||
HeaderDisallowedByPreflightResponse: 'HeaderDisallowedByPreflightResponse',
|
||||
RedirectContainsCredentials: 'RedirectContainsCredentials'
|
||||
RedirectContainsCredentials: 'RedirectContainsCredentials',
|
||||
InsecurePrivateNetwork: 'InsecurePrivateNetwork'
|
||||
});
|
||||
inspectorBackend.registerEnum(
|
||||
'Network.ServiceWorkerResponseSource',
|
||||
@@ -1755,6 +1756,12 @@ export function registerCommands(inspectorBackend) {
|
||||
inspectorBackend.registerEnum(
|
||||
'Page.CrossOriginIsolatedContextType',
|
||||
{Isolated: 'Isolated', NotIsolated: 'NotIsolated', NotIsolatedFeatureDisabled: 'NotIsolatedFeatureDisabled'});
|
||||
inspectorBackend.registerEnum('Page.GatedAPIFeatures', {
|
||||
SharedArrayBuffers: 'SharedArrayBuffers',
|
||||
SharedArrayBuffersTransferAllowed: 'SharedArrayBuffersTransferAllowed',
|
||||
PerformanceMeasureMemory: 'PerformanceMeasureMemory',
|
||||
PerformanceProfile: 'PerformanceProfile'
|
||||
});
|
||||
inspectorBackend.registerEnum('Page.TransitionType', {
|
||||
Link: 'link',
|
||||
Typed: 'typed',
|
||||
@@ -2292,6 +2299,8 @@ export function registerCommands(inspectorBackend) {
|
||||
});
|
||||
inspectorBackend.registerEnum('Tracing.StreamFormat', {Json: 'json', Proto: 'proto'});
|
||||
inspectorBackend.registerEnum('Tracing.StreamCompression', {None: 'none', Gzip: 'gzip'});
|
||||
inspectorBackend.registerEnum(
|
||||
'Tracing.MemoryDumpLevelOfDetail', {Background: 'background', Light: 'light', Detailed: 'detailed'});
|
||||
inspectorBackend.registerEvent('Tracing.bufferUsage', ['percentFull', 'eventCount', 'value']);
|
||||
inspectorBackend.registerEvent('Tracing.dataCollected', ['value']);
|
||||
inspectorBackend.registerEvent(
|
||||
@@ -2301,7 +2310,11 @@ export function registerCommands(inspectorBackend) {
|
||||
inspectorBackend.registerCommand(
|
||||
'Tracing.recordClockSyncMarker', [{'name': 'syncId', 'type': 'string', 'optional': false}], []);
|
||||
inspectorBackend.registerCommand(
|
||||
'Tracing.requestMemoryDump', [{'name': 'deterministic', 'type': 'boolean', 'optional': true}],
|
||||
'Tracing.requestMemoryDump',
|
||||
[
|
||||
{'name': 'deterministic', 'type': 'boolean', 'optional': true},
|
||||
{'name': 'levelOfDetail', 'type': 'string', 'optional': true}
|
||||
],
|
||||
['dumpGuid', 'success']);
|
||||
inspectorBackend.registerEnum(
|
||||
'Tracing.StartRequestTransferMode', {ReportEvents: 'ReportEvents', ReturnAsStream: 'ReturnAsStream'});
|
||||
|
||||
Vendored
+27
@@ -6662,6 +6662,7 @@ declare namespace Protocol {
|
||||
MethodDisallowedByPreflightResponse = 'MethodDisallowedByPreflightResponse',
|
||||
HeaderDisallowedByPreflightResponse = 'HeaderDisallowedByPreflightResponse',
|
||||
RedirectContainsCredentials = 'RedirectContainsCredentials',
|
||||
InsecurePrivateNetwork = 'InsecurePrivateNetwork',
|
||||
}
|
||||
|
||||
export interface CorsErrorStatus {
|
||||
@@ -8758,6 +8759,13 @@ declare namespace Protocol {
|
||||
NotIsolatedFeatureDisabled = 'NotIsolatedFeatureDisabled',
|
||||
}
|
||||
|
||||
export enum GatedAPIFeatures {
|
||||
SharedArrayBuffers = 'SharedArrayBuffers',
|
||||
SharedArrayBuffersTransferAllowed = 'SharedArrayBuffersTransferAllowed',
|
||||
PerformanceMeasureMemory = 'PerformanceMeasureMemory',
|
||||
PerformanceProfile = 'PerformanceProfile',
|
||||
}
|
||||
|
||||
/**
|
||||
* Information about the Frame on the page.
|
||||
*/
|
||||
@@ -8817,6 +8825,10 @@ declare namespace Protocol {
|
||||
* Indicates whether this is a cross origin isolated context.
|
||||
*/
|
||||
crossOriginIsolatedContextType: CrossOriginIsolatedContextType;
|
||||
/**
|
||||
* Indicated which gated APIs / features are available.
|
||||
*/
|
||||
gatedAPIFeatures: GatedAPIFeatures[];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -11506,6 +11518,17 @@ declare namespace Protocol {
|
||||
Gzip = 'gzip',
|
||||
}
|
||||
|
||||
/**
|
||||
* Details exposed when memory request explicitly declared.
|
||||
* Keep consistent with memory_dump_request_args.h and
|
||||
* memory_instrumentation.mojom
|
||||
*/
|
||||
export enum MemoryDumpLevelOfDetail {
|
||||
Background = 'background',
|
||||
Light = 'light',
|
||||
Detailed = 'detailed',
|
||||
}
|
||||
|
||||
export interface GetCategoriesResponse extends ProtocolResponseWithError {
|
||||
/**
|
||||
* A list of supported tracing categories.
|
||||
@@ -11525,6 +11548,10 @@ declare namespace Protocol {
|
||||
* Enables more deterministic results by forcing garbage collection
|
||||
*/
|
||||
deterministic?: boolean;
|
||||
/**
|
||||
* Specifies level of details in memory dump. Defaults to "detailed".
|
||||
*/
|
||||
levelOfDetail?: MemoryDumpLevelOfDetail;
|
||||
}
|
||||
|
||||
export interface RequestMemoryDumpResponse extends ProtocolResponseWithError {
|
||||
|
||||
@@ -9859,7 +9859,8 @@
|
||||
"InvalidAllowHeadersPreflightResponse",
|
||||
"MethodDisallowedByPreflightResponse",
|
||||
"HeaderDisallowedByPreflightResponse",
|
||||
"RedirectContainsCredentials"
|
||||
"RedirectContainsCredentials",
|
||||
"InsecurePrivateNetwork"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -12831,6 +12832,17 @@
|
||||
"NotIsolatedFeatureDisabled"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "GatedAPIFeatures",
|
||||
"experimental": true,
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"SharedArrayBuffers",
|
||||
"SharedArrayBuffersTransferAllowed",
|
||||
"PerformanceMeasureMemory",
|
||||
"PerformanceProfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "Frame",
|
||||
"description": "Information about the Frame on the page.",
|
||||
@@ -12911,6 +12923,15 @@
|
||||
"description": "Indicates whether this is a cross origin isolated context.",
|
||||
"experimental": true,
|
||||
"$ref": "CrossOriginIsolatedContextType"
|
||||
},
|
||||
{
|
||||
"name": "gatedAPIFeatures",
|
||||
"description": "Indicated which gated APIs / features are available.",
|
||||
"experimental": true,
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "GatedAPIFeatures"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -16943,6 +16964,16 @@
|
||||
"none",
|
||||
"gzip"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "MemoryDumpLevelOfDetail",
|
||||
"description": "Details exposed when memory request explicitly declared.\nKeep consistent with memory_dump_request_args.h and\nmemory_instrumentation.mojom",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"background",
|
||||
"light",
|
||||
"detailed"
|
||||
]
|
||||
}
|
||||
],
|
||||
"commands": [
|
||||
@@ -16984,6 +17015,12 @@
|
||||
"description": "Enables more deterministic results by forcing garbage collection",
|
||||
"optional": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "levelOfDetail",
|
||||
"description": "Specifies level of details in memory dump. Defaults to \"detailed\".",
|
||||
"optional": true,
|
||||
"$ref": "MemoryDumpLevelOfDetail"
|
||||
}
|
||||
],
|
||||
"returns": [
|
||||
|
||||
@@ -4523,6 +4523,7 @@ domain Network
|
||||
MethodDisallowedByPreflightResponse
|
||||
HeaderDisallowedByPreflightResponse
|
||||
RedirectContainsCredentials
|
||||
InsecurePrivateNetwork
|
||||
|
||||
type CorsErrorStatus extends object
|
||||
properties
|
||||
@@ -5940,6 +5941,13 @@ domain Page
|
||||
# The cross-origin isolation feature is disabled.
|
||||
NotIsolatedFeatureDisabled
|
||||
|
||||
experimental type GatedAPIFeatures extends string
|
||||
enum
|
||||
SharedArrayBuffers
|
||||
SharedArrayBuffersTransferAllowed
|
||||
PerformanceMeasureMemory
|
||||
PerformanceProfile
|
||||
|
||||
# Information about the Frame on the page.
|
||||
type Frame extends object
|
||||
properties
|
||||
@@ -5972,6 +5980,8 @@ domain Page
|
||||
experimental SecureContextType secureContextType
|
||||
# Indicates whether this is a cross origin isolated context.
|
||||
experimental CrossOriginIsolatedContextType crossOriginIsolatedContextType
|
||||
# Indicated which gated APIs / features are available.
|
||||
experimental array of GatedAPIFeatures gatedAPIFeatures
|
||||
|
||||
# Information about the Resource on the page.
|
||||
experimental type FrameResource extends object
|
||||
@@ -7835,6 +7845,15 @@ experimental domain Tracing
|
||||
none
|
||||
gzip
|
||||
|
||||
# Details exposed when memory request explicitly declared.
|
||||
# Keep consistent with memory_dump_request_args.h and
|
||||
# memory_instrumentation.mojom
|
||||
type MemoryDumpLevelOfDetail extends string
|
||||
enum
|
||||
background
|
||||
light
|
||||
detailed
|
||||
|
||||
# Stop trace events collection.
|
||||
command end
|
||||
|
||||
@@ -7855,6 +7874,8 @@ experimental domain Tracing
|
||||
parameters
|
||||
# Enables more deterministic results by forcing garbage collection
|
||||
optional boolean deterministic
|
||||
# Specifies level of details in memory dump. Defaults to "detailed".
|
||||
optional MemoryDumpLevelOfDetail levelOfDetail
|
||||
returns
|
||||
# GUID of the resulting global memory dump.
|
||||
string dumpGuid
|
||||
|
||||
Reference in New Issue
Block a user