devtools-protocol 0.0.1459876 → 0.0.1461159

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10262,7 +10262,7 @@
10262
10262
  },
10263
10263
  {
10264
10264
  "name": "setPressureStateOverride",
10265
- "description": "Provides a given pressure state that will be processed and eventually be\ndelivered to PressureObserver users. |source| must have been previously\noverridden by setPressureSourceOverrideEnabled.",
10265
+ "description": "TODO: OBSOLETE: To remove when setPressureDataOverride is merged.\nProvides a given pressure state that will be processed and eventually be\ndelivered to PressureObserver users. |source| must have been previously\noverridden by setPressureSourceOverrideEnabled.",
10266
10266
  "experimental": true,
10267
10267
  "parameters": [
10268
10268
  {
@@ -10275,6 +10275,26 @@
10275
10275
  }
10276
10276
  ]
10277
10277
  },
10278
+ {
10279
+ "name": "setPressureDataOverride",
10280
+ "description": "Provides a given pressure data set that will be processed and eventually be\ndelivered to PressureObserver users. |source| must have been previously\noverridden by setPressureSourceOverrideEnabled.",
10281
+ "experimental": true,
10282
+ "parameters": [
10283
+ {
10284
+ "name": "source",
10285
+ "$ref": "PressureSource"
10286
+ },
10287
+ {
10288
+ "name": "state",
10289
+ "$ref": "PressureState"
10290
+ },
10291
+ {
10292
+ "name": "ownContributionEstimate",
10293
+ "optional": true,
10294
+ "type": "number"
10295
+ }
10296
+ ]
10297
+ },
10278
10298
  {
10279
10299
  "name": "setIdleOverride",
10280
10300
  "description": "Overrides the Idle state.",
@@ -23055,25 +23075,6 @@
23055
23075
  }
23056
23076
  ]
23057
23077
  },
23058
- {
23059
- "id": "AttributionReportingTriggerSpec",
23060
- "experimental": true,
23061
- "type": "object",
23062
- "properties": [
23063
- {
23064
- "name": "triggerData",
23065
- "description": "number instead of integer because not all uint32 can be represented by\nint",
23066
- "type": "array",
23067
- "items": {
23068
- "type": "number"
23069
- }
23070
- },
23071
- {
23072
- "name": "eventReportWindows",
23073
- "$ref": "AttributionReportingEventReportWindows"
23074
- }
23075
- ]
23076
- },
23077
23078
  {
23078
23079
  "id": "AttributionReportingTriggerDataMatching",
23079
23080
  "experimental": true,
@@ -23188,12 +23189,17 @@
23188
23189
  "type": "integer"
23189
23190
  },
23190
23191
  {
23191
- "name": "triggerSpecs",
23192
+ "name": "triggerData",
23193
+ "description": "number instead of integer because not all uint32 can be represented by\nint",
23192
23194
  "type": "array",
23193
23195
  "items": {
23194
- "$ref": "AttributionReportingTriggerSpec"
23196
+ "type": "number"
23195
23197
  }
23196
23198
  },
23199
+ {
23200
+ "name": "eventReportWindows",
23201
+ "$ref": "AttributionReportingEventReportWindows"
23202
+ },
23197
23203
  {
23198
23204
  "name": "aggregatableReportWindow",
23199
23205
  "description": "duration in seconds",
@@ -27666,7 +27672,6 @@
27666
27672
  "InvalidSchemeRedirect",
27667
27673
  "InvalidSchemeNavigation",
27668
27674
  "NavigationRequestBlockedByCsp",
27669
- "MainFrameNavigation",
27670
27675
  "MojoBinderPolicy",
27671
27676
  "RendererProcessCrashed",
27672
27677
  "RendererProcessKilled",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1459876",
3
+ "version": "0.0.1461159",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -4744,6 +4744,7 @@ domain Emulation
4744
4744
  PressureSource source
4745
4745
  optional PressureMetadata metadata
4746
4746
 
4747
+ # TODO: OBSOLETE: To remove when setPressureDataOverride is merged.
4747
4748
  # Provides a given pressure state that will be processed and eventually be
4748
4749
  # delivered to PressureObserver users. |source| must have been previously
4749
4750
  # overridden by setPressureSourceOverrideEnabled.
@@ -4752,6 +4753,15 @@ domain Emulation
4752
4753
  PressureSource source
4753
4754
  PressureState state
4754
4755
 
4756
+ # Provides a given pressure data set that will be processed and eventually be
4757
+ # delivered to PressureObserver users. |source| must have been previously
4758
+ # overridden by setPressureSourceOverrideEnabled.
4759
+ experimental command setPressureDataOverride
4760
+ parameters
4761
+ PressureSource source
4762
+ PressureState state
4763
+ optional number ownContributionEstimate
4764
+
4755
4765
  # Overrides the Idle state.
4756
4766
  command setIdleOverride
4757
4767
  parameters
@@ -11250,13 +11260,6 @@ experimental domain Storage
11250
11260
  # duration in seconds
11251
11261
  array of integer ends
11252
11262
 
11253
- experimental type AttributionReportingTriggerSpec extends object
11254
- properties
11255
- # number instead of integer because not all uint32 can be represented by
11256
- # int
11257
- array of number triggerData
11258
- AttributionReportingEventReportWindows eventReportWindows
11259
-
11260
11263
  experimental type AttributionReportingTriggerDataMatching extends string
11261
11264
  enum
11262
11265
  exact
@@ -11297,7 +11300,10 @@ experimental domain Storage
11297
11300
  Network.TimeSinceEpoch time
11298
11301
  # duration in seconds
11299
11302
  integer expiry
11300
- array of AttributionReportingTriggerSpec triggerSpecs
11303
+ # number instead of integer because not all uint32 can be represented by
11304
+ # int
11305
+ array of number triggerData
11306
+ AttributionReportingEventReportWindows eventReportWindows
11301
11307
  # duration in seconds
11302
11308
  integer aggregatableReportWindow
11303
11309
  AttributionReportingSourceType type
@@ -13054,7 +13060,6 @@ experimental domain Preload
13054
13060
  InvalidSchemeRedirect
13055
13061
  InvalidSchemeNavigation
13056
13062
  NavigationRequestBlockedByCsp
13057
- MainFrameNavigation
13058
13063
  MojoBinderPolicy
13059
13064
  RendererProcessCrashed
13060
13065
  RendererProcessKilled
@@ -2954,6 +2954,7 @@ export namespace ProtocolMapping {
2954
2954
  returnType: void;
2955
2955
  };
2956
2956
  /**
2957
+ * TODO: OBSOLETE: To remove when setPressureDataOverride is merged.
2957
2958
  * Provides a given pressure state that will be processed and eventually be
2958
2959
  * delivered to PressureObserver users. |source| must have been previously
2959
2960
  * overridden by setPressureSourceOverrideEnabled.
@@ -2962,6 +2963,15 @@ export namespace ProtocolMapping {
2962
2963
  paramsType: [Protocol.Emulation.SetPressureStateOverrideRequest];
2963
2964
  returnType: void;
2964
2965
  };
2966
+ /**
2967
+ * Provides a given pressure data set that will be processed and eventually be
2968
+ * delivered to PressureObserver users. |source| must have been previously
2969
+ * overridden by setPressureSourceOverrideEnabled.
2970
+ */
2971
+ 'Emulation.setPressureDataOverride': {
2972
+ paramsType: [Protocol.Emulation.SetPressureDataOverrideRequest];
2973
+ returnType: void;
2974
+ };
2965
2975
  /**
2966
2976
  * Overrides the Idle state.
2967
2977
  */
@@ -1993,12 +1993,20 @@ export namespace ProtocolProxyApi {
1993
1993
  setPressureSourceOverrideEnabled(params: Protocol.Emulation.SetPressureSourceOverrideEnabledRequest): Promise<void>;
1994
1994
 
1995
1995
  /**
1996
+ * TODO: OBSOLETE: To remove when setPressureDataOverride is merged.
1996
1997
  * Provides a given pressure state that will be processed and eventually be
1997
1998
  * delivered to PressureObserver users. |source| must have been previously
1998
1999
  * overridden by setPressureSourceOverrideEnabled.
1999
2000
  */
2000
2001
  setPressureStateOverride(params: Protocol.Emulation.SetPressureStateOverrideRequest): Promise<void>;
2001
2002
 
2003
+ /**
2004
+ * Provides a given pressure data set that will be processed and eventually be
2005
+ * delivered to PressureObserver users. |source| must have been previously
2006
+ * overridden by setPressureSourceOverrideEnabled.
2007
+ */
2008
+ setPressureDataOverride(params: Protocol.Emulation.SetPressureDataOverrideRequest): Promise<void>;
2009
+
2002
2010
  /**
2003
2011
  * Overrides the Idle state.
2004
2012
  */
@@ -2117,12 +2117,20 @@ export namespace ProtocolTestsProxyApi {
2117
2117
  setPressureSourceOverrideEnabled(params: Protocol.Emulation.SetPressureSourceOverrideEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
2118
2118
 
2119
2119
  /**
2120
+ * TODO: OBSOLETE: To remove when setPressureDataOverride is merged.
2120
2121
  * Provides a given pressure state that will be processed and eventually be
2121
2122
  * delivered to PressureObserver users. |source| must have been previously
2122
2123
  * overridden by setPressureSourceOverrideEnabled.
2123
2124
  */
2124
2125
  setPressureStateOverride(params: Protocol.Emulation.SetPressureStateOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
2125
2126
 
2127
+ /**
2128
+ * Provides a given pressure data set that will be processed and eventually be
2129
+ * delivered to PressureObserver users. |source| must have been previously
2130
+ * overridden by setPressureSourceOverrideEnabled.
2131
+ */
2132
+ setPressureDataOverride(params: Protocol.Emulation.SetPressureDataOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
2133
+
2126
2134
  /**
2127
2135
  * Overrides the Idle state.
2128
2136
  */
@@ -8842,6 +8842,12 @@ export namespace Protocol {
8842
8842
  state: PressureState;
8843
8843
  }
8844
8844
 
8845
+ export interface SetPressureDataOverrideRequest {
8846
+ source: PressureSource;
8847
+ state: PressureState;
8848
+ ownContributionEstimate?: number;
8849
+ }
8850
+
8845
8851
  export interface SetIdleOverrideRequest {
8846
8852
  /**
8847
8853
  * Mock isUserActive
@@ -16774,15 +16780,6 @@ export namespace Protocol {
16774
16780
  ends: integer[];
16775
16781
  }
16776
16782
 
16777
- export interface AttributionReportingTriggerSpec {
16778
- /**
16779
- * number instead of integer because not all uint32 can be represented by
16780
- * int
16781
- */
16782
- triggerData: number[];
16783
- eventReportWindows: AttributionReportingEventReportWindows;
16784
- }
16785
-
16786
16783
  export type AttributionReportingTriggerDataMatching = ('exact' | 'modulus');
16787
16784
 
16788
16785
  export interface AttributionReportingAggregatableDebugReportingData {
@@ -16827,7 +16824,12 @@ export namespace Protocol {
16827
16824
  * duration in seconds
16828
16825
  */
16829
16826
  expiry: integer;
16830
- triggerSpecs: AttributionReportingTriggerSpec[];
16827
+ /**
16828
+ * number instead of integer because not all uint32 can be represented by
16829
+ * int
16830
+ */
16831
+ triggerData: number[];
16832
+ eventReportWindows: AttributionReportingEventReportWindows;
16831
16833
  /**
16832
16834
  * duration in seconds
16833
16835
  */
@@ -19454,7 +19456,7 @@ export namespace Protocol {
19454
19456
  /**
19455
19457
  * List of FinalStatus reasons for Prerender2.
19456
19458
  */
19457
- export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'MemoryLimitExceeded' | 'DataSaverEnabled' | 'TriggerUrlHasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered' | 'PrerenderingDisabledByDevTools' | 'SpeculationRuleRemoved' | 'ActivatedWithAuxiliaryBrowsingContexts' | 'MaxNumOfRunningEagerPrerendersExceeded' | 'MaxNumOfRunningNonEagerPrerendersExceeded' | 'MaxNumOfRunningEmbedderPrerendersExceeded' | 'PrerenderingUrlHasEffectiveUrl' | 'RedirectedPrerenderingUrlHasEffectiveUrl' | 'ActivationUrlHasEffectiveUrl' | 'JavaScriptInterfaceAdded' | 'JavaScriptInterfaceRemoved' | 'AllPrerenderingCanceled' | 'WindowClosed' | 'SlowNetwork' | 'OtherPrerenderedPageActivated' | 'V8OptimizerDisabled' | 'PrerenderFailedDuringPrefetch' | 'BrowsingDataRemoved');
19459
+ export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'NavigationRequestBlockedByCsp' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'MemoryLimitExceeded' | 'DataSaverEnabled' | 'TriggerUrlHasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered' | 'PrerenderingDisabledByDevTools' | 'SpeculationRuleRemoved' | 'ActivatedWithAuxiliaryBrowsingContexts' | 'MaxNumOfRunningEagerPrerendersExceeded' | 'MaxNumOfRunningNonEagerPrerendersExceeded' | 'MaxNumOfRunningEmbedderPrerendersExceeded' | 'PrerenderingUrlHasEffectiveUrl' | 'RedirectedPrerenderingUrlHasEffectiveUrl' | 'ActivationUrlHasEffectiveUrl' | 'JavaScriptInterfaceAdded' | 'JavaScriptInterfaceRemoved' | 'AllPrerenderingCanceled' | 'WindowClosed' | 'SlowNetwork' | 'OtherPrerenderedPageActivated' | 'V8OptimizerDisabled' | 'PrerenderFailedDuringPrefetch' | 'BrowsingDataRemoved');
19458
19460
 
19459
19461
  /**
19460
19462
  * Preloading status values, see also PreloadingTriggeringOutcome. This