From 953916c4e159b90ab6a4d698cd07da714db0cdfc Mon Sep 17 00:00:00 2001 From: Sigurd Schneider Date: Wed, 4 Nov 2020 12:53:34 +0100 Subject: [PATCH] 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 Reviewed-by: Wolfgang Beyer --- .../generated/InspectorBackendCommands.js | 17 +++++++- front_end/generated/protocol.d.ts | 27 +++++++++++++ .../devtools_protocol/browser_protocol.json | 39 ++++++++++++++++++- .../devtools_protocol/browser_protocol.pdl | 21 ++++++++++ 4 files changed, 101 insertions(+), 3 deletions(-) diff --git a/front_end/generated/InspectorBackendCommands.js b/front_end/generated/InspectorBackendCommands.js index 314a863f7f..5af5cb6079 100644 --- a/front_end/generated/InspectorBackendCommands.js +++ b/front_end/generated/InspectorBackendCommands.js @@ -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'}); diff --git a/front_end/generated/protocol.d.ts b/front_end/generated/protocol.d.ts index 7e8b1951f1..9aaf32ec21 100644 --- a/front_end/generated/protocol.d.ts +++ b/front_end/generated/protocol.d.ts @@ -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 { diff --git a/third_party/blink/public/devtools_protocol/browser_protocol.json b/third_party/blink/public/devtools_protocol/browser_protocol.json index 20e2ae7926..b99c9bb22e 100644 --- a/third_party/blink/public/devtools_protocol/browser_protocol.json +++ b/third_party/blink/public/devtools_protocol/browser_protocol.json @@ -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": [ diff --git a/third_party/blink/public/devtools_protocol/browser_protocol.pdl b/third_party/blink/public/devtools_protocol/browser_protocol.pdl index cb5c1d6bb2..994d2a267b 100644 --- a/third_party/blink/public/devtools_protocol/browser_protocol.pdl +++ b/third_party/blink/public/devtools_protocol/browser_protocol.pdl @@ -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