From 898ef3df36a761819bb697f5683b4cd708c863f4 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 12 Mar 2024 18:52:20 +1000 Subject: [PATCH] DevTools Client - Upgrade to 122.0.6261.112 --- .../DevTools/DevToolsClient.Generated.cs | 967 +++++++++++++++++- .../DevToolsClient.Generated.netcore.cs | 918 ++++++++++++++++- 2 files changed, 1853 insertions(+), 32 deletions(-) diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index 67a0e4c40..17dc72a5b 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 121.0.6167.160 +// CHROMIUM VERSION 122.0.6261.112 using System.Runtime.Serialization; namespace CefSharp.DevTools.Accessibility @@ -1656,6 +1656,11 @@ namespace CefSharp.DevTools.Audits [EnumMember(Value = ("Import"))] Import, /// + /// JSON + /// + [EnumMember(Value = ("JSON"))] + JSON, + /// /// Manifest /// [EnumMember(Value = ("Manifest"))] @@ -4120,6 +4125,16 @@ namespace CefSharp.DevTools.Autofill get; set; } + + /// + /// The form field's DOM node + /// + [DataMember(Name = ("fieldId"), IsRequired = (true))] + public int FieldId + { + get; + set; + } } /// @@ -4512,6 +4527,11 @@ namespace CefSharp.DevTools.Browser [EnumMember(Value = ("backgroundFetch"))] BackgroundFetch, /// + /// capturedSurfaceControl + /// + [EnumMember(Value = ("capturedSurfaceControl"))] + CapturedSurfaceControl, + /// /// clipboardReadWrite /// [EnumMember(Value = ("clipboardReadWrite"))] @@ -13983,6 +14003,16 @@ namespace CefSharp.DevTools.Network set; } + /// + /// Resource charset as determined by the browser (if applicable). + /// + [DataMember(Name = ("charset"), IsRequired = (true))] + public string Charset + { + get; + set; + } + /// /// Refined HTTP request headers that were actually transmitted over the network. /// @@ -16600,6 +16630,16 @@ namespace CefSharp.DevTools.Network get; private set; } + + /// + /// Data that was received. + /// + [DataMember(Name = ("data"), IsRequired = (false))] + public byte[] Data + { + get; + private set; + } } /// @@ -19622,6 +19662,11 @@ namespace CefSharp.DevTools.Page [EnumMember(Value = ("camera"))] Camera, /// + /// captured-surface-control + /// + [EnumMember(Value = ("captured-surface-control"))] + CapturedSurfaceControl, + /// /// ch-dpr /// [EnumMember(Value = ("ch-dpr"))] @@ -19897,6 +19942,11 @@ namespace CefSharp.DevTools.Page [EnumMember(Value = ("private-state-token-redemption"))] PrivateStateTokenRedemption, /// + /// publickey-credentials-create + /// + [EnumMember(Value = ("publickey-credentials-create"))] + PublickeyCredentialsCreate, + /// /// publickey-credentials-get /// [EnumMember(Value = ("publickey-credentials-get"))] @@ -19942,6 +19992,11 @@ namespace CefSharp.DevTools.Page [EnumMember(Value = ("storage-access"))] StorageAccess, /// + /// sub-apps + /// + [EnumMember(Value = ("sub-apps"))] + SubApps, + /// /// sync-xhr /// [EnumMember(Value = ("sync-xhr"))] @@ -22176,6 +22231,21 @@ namespace CefSharp.DevTools.Page [EnumMember(Value = ("WebSocketSticky"))] WebSocketSticky, /// + /// SmartCard + /// + [EnumMember(Value = ("SmartCard"))] + SmartCard, + /// + /// LiveMediaStreamTrack + /// + [EnumMember(Value = ("LiveMediaStreamTrack"))] + LiveMediaStreamTrack, + /// + /// UnloadHandler + /// + [EnumMember(Value = ("UnloadHandler"))] + UnloadHandler, + /// /// ContentSecurityHandler /// [EnumMember(Value = ("ContentSecurityHandler"))] @@ -25042,12 +25112,39 @@ namespace CefSharp.DevTools.Storage [EnumMember(Value = ("additionalBidWin"))] AdditionalBidWin, /// + /// topLevelBid + /// + [EnumMember(Value = ("topLevelBid"))] + TopLevelBid, + /// + /// topLevelAdditionalBid + /// + [EnumMember(Value = ("topLevelAdditionalBid"))] + TopLevelAdditionalBid, + /// /// clear /// [EnumMember(Value = ("clear"))] Clear } + /// + /// Enum of auction events. + /// + public enum InterestGroupAuctionEventType + { + /// + /// started + /// + [EnumMember(Value = ("started"))] + Started, + /// + /// configResolved + /// + [EnumMember(Value = ("configResolved"))] + ConfigResolved + } + /// /// Ad advertising element inside an interest group. /// @@ -25675,6 +25772,60 @@ namespace CefSharp.DevTools.Storage } } + /// + /// AttributionReportingFilterConfig + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AttributionReportingFilterConfig : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// FilterValues + /// + [DataMember(Name = ("filterValues"), IsRequired = (true))] + public System.Collections.Generic.IList FilterValues + { + get; + set; + } + + /// + /// duration in seconds + /// + [DataMember(Name = ("lookbackWindow"), IsRequired = (false))] + public int? LookbackWindow + { + get; + set; + } + } + + /// + /// AttributionReportingFilterPair + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AttributionReportingFilterPair : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Filters + /// + [DataMember(Name = ("filters"), IsRequired = (true))] + public System.Collections.Generic.IList Filters + { + get; + set; + } + + /// + /// NotFilters + /// + [DataMember(Name = ("notFilters"), IsRequired = (true))] + public System.Collections.Generic.IList NotFilters + { + get; + set; + } + } + /// /// AttributionReportingAggregationKeysEntry /// @@ -26020,6 +26171,464 @@ namespace CefSharp.DevTools.Storage ExceedsMaxChannelCapacity } + /// + /// AttributionReportingSourceRegistrationTimeConfig + /// + public enum AttributionReportingSourceRegistrationTimeConfig + { + /// + /// include + /// + [EnumMember(Value = ("include"))] + Include, + /// + /// exclude + /// + [EnumMember(Value = ("exclude"))] + Exclude + } + + /// + /// AttributionReportingAggregatableValueEntry + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AttributionReportingAggregatableValueEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key + /// + [DataMember(Name = ("key"), IsRequired = (true))] + public string Key + { + get; + set; + } + + /// + /// number instead of integer because not all uint32 can be represented by + /// int + /// + [DataMember(Name = ("value"), IsRequired = (true))] + public double Value + { + get; + set; + } + } + + /// + /// AttributionReportingEventTriggerData + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AttributionReportingEventTriggerData : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Data + /// + [DataMember(Name = ("data"), IsRequired = (true))] + public string Data + { + get; + set; + } + + /// + /// Priority + /// + [DataMember(Name = ("priority"), IsRequired = (true))] + public string Priority + { + get; + set; + } + + /// + /// DedupKey + /// + [DataMember(Name = ("dedupKey"), IsRequired = (false))] + public string DedupKey + { + get; + set; + } + + /// + /// Filters + /// + [DataMember(Name = ("filters"), IsRequired = (true))] + public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters + { + get; + set; + } + } + + /// + /// AttributionReportingAggregatableTriggerData + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AttributionReportingAggregatableTriggerData : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// KeyPiece + /// + [DataMember(Name = ("keyPiece"), IsRequired = (true))] + public string KeyPiece + { + get; + set; + } + + /// + /// SourceKeys + /// + [DataMember(Name = ("sourceKeys"), IsRequired = (true))] + public string[] SourceKeys + { + get; + set; + } + + /// + /// Filters + /// + [DataMember(Name = ("filters"), IsRequired = (true))] + public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters + { + get; + set; + } + } + + /// + /// AttributionReportingAggregatableDedupKey + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AttributionReportingAggregatableDedupKey : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// DedupKey + /// + [DataMember(Name = ("dedupKey"), IsRequired = (false))] + public string DedupKey + { + get; + set; + } + + /// + /// Filters + /// + [DataMember(Name = ("filters"), IsRequired = (true))] + public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters + { + get; + set; + } + } + + /// + /// AttributionReportingTriggerRegistration + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AttributionReportingTriggerRegistration : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Filters + /// + [DataMember(Name = ("filters"), IsRequired = (true))] + public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters + { + get; + set; + } + + /// + /// DebugKey + /// + [DataMember(Name = ("debugKey"), IsRequired = (false))] + public string DebugKey + { + get; + set; + } + + /// + /// AggregatableDedupKeys + /// + [DataMember(Name = ("aggregatableDedupKeys"), IsRequired = (true))] + public System.Collections.Generic.IList AggregatableDedupKeys + { + get; + set; + } + + /// + /// EventTriggerData + /// + [DataMember(Name = ("eventTriggerData"), IsRequired = (true))] + public System.Collections.Generic.IList EventTriggerData + { + get; + set; + } + + /// + /// AggregatableTriggerData + /// + [DataMember(Name = ("aggregatableTriggerData"), IsRequired = (true))] + public System.Collections.Generic.IList AggregatableTriggerData + { + get; + set; + } + + /// + /// AggregatableValues + /// + [DataMember(Name = ("aggregatableValues"), IsRequired = (true))] + public System.Collections.Generic.IList AggregatableValues + { + get; + set; + } + + /// + /// DebugReporting + /// + [DataMember(Name = ("debugReporting"), IsRequired = (true))] + public bool DebugReporting + { + get; + set; + } + + /// + /// AggregationCoordinatorOrigin + /// + [DataMember(Name = ("aggregationCoordinatorOrigin"), IsRequired = (false))] + public string AggregationCoordinatorOrigin + { + get; + set; + } + + /// + /// SourceRegistrationTimeConfig + /// + public CefSharp.DevTools.Storage.AttributionReportingSourceRegistrationTimeConfig SourceRegistrationTimeConfig + { + get + { + return (CefSharp.DevTools.Storage.AttributionReportingSourceRegistrationTimeConfig)(StringToEnum(typeof(CefSharp.DevTools.Storage.AttributionReportingSourceRegistrationTimeConfig), sourceRegistrationTimeConfig)); + } + + set + { + this.sourceRegistrationTimeConfig = (EnumToString(value)); + } + } + + /// + /// SourceRegistrationTimeConfig + /// + [DataMember(Name = ("sourceRegistrationTimeConfig"), IsRequired = (true))] + internal string sourceRegistrationTimeConfig + { + get; + set; + } + + /// + /// TriggerContextId + /// + [DataMember(Name = ("triggerContextId"), IsRequired = (false))] + public string TriggerContextId + { + get; + set; + } + } + + /// + /// AttributionReportingEventLevelResult + /// + public enum AttributionReportingEventLevelResult + { + /// + /// success + /// + [EnumMember(Value = ("success"))] + Success, + /// + /// successDroppedLowerPriority + /// + [EnumMember(Value = ("successDroppedLowerPriority"))] + SuccessDroppedLowerPriority, + /// + /// internalError + /// + [EnumMember(Value = ("internalError"))] + InternalError, + /// + /// noCapacityForAttributionDestination + /// + [EnumMember(Value = ("noCapacityForAttributionDestination"))] + NoCapacityForAttributionDestination, + /// + /// noMatchingSources + /// + [EnumMember(Value = ("noMatchingSources"))] + NoMatchingSources, + /// + /// deduplicated + /// + [EnumMember(Value = ("deduplicated"))] + Deduplicated, + /// + /// excessiveAttributions + /// + [EnumMember(Value = ("excessiveAttributions"))] + ExcessiveAttributions, + /// + /// priorityTooLow + /// + [EnumMember(Value = ("priorityTooLow"))] + PriorityTooLow, + /// + /// neverAttributedSource + /// + [EnumMember(Value = ("neverAttributedSource"))] + NeverAttributedSource, + /// + /// excessiveReportingOrigins + /// + [EnumMember(Value = ("excessiveReportingOrigins"))] + ExcessiveReportingOrigins, + /// + /// noMatchingSourceFilterData + /// + [EnumMember(Value = ("noMatchingSourceFilterData"))] + NoMatchingSourceFilterData, + /// + /// prohibitedByBrowserPolicy + /// + [EnumMember(Value = ("prohibitedByBrowserPolicy"))] + ProhibitedByBrowserPolicy, + /// + /// noMatchingConfigurations + /// + [EnumMember(Value = ("noMatchingConfigurations"))] + NoMatchingConfigurations, + /// + /// excessiveReports + /// + [EnumMember(Value = ("excessiveReports"))] + ExcessiveReports, + /// + /// falselyAttributedSource + /// + [EnumMember(Value = ("falselyAttributedSource"))] + FalselyAttributedSource, + /// + /// reportWindowPassed + /// + [EnumMember(Value = ("reportWindowPassed"))] + ReportWindowPassed, + /// + /// notRegistered + /// + [EnumMember(Value = ("notRegistered"))] + NotRegistered, + /// + /// reportWindowNotStarted + /// + [EnumMember(Value = ("reportWindowNotStarted"))] + ReportWindowNotStarted, + /// + /// noMatchingTriggerData + /// + [EnumMember(Value = ("noMatchingTriggerData"))] + NoMatchingTriggerData + } + + /// + /// AttributionReportingAggregatableResult + /// + public enum AttributionReportingAggregatableResult + { + /// + /// success + /// + [EnumMember(Value = ("success"))] + Success, + /// + /// internalError + /// + [EnumMember(Value = ("internalError"))] + InternalError, + /// + /// noCapacityForAttributionDestination + /// + [EnumMember(Value = ("noCapacityForAttributionDestination"))] + NoCapacityForAttributionDestination, + /// + /// noMatchingSources + /// + [EnumMember(Value = ("noMatchingSources"))] + NoMatchingSources, + /// + /// excessiveAttributions + /// + [EnumMember(Value = ("excessiveAttributions"))] + ExcessiveAttributions, + /// + /// excessiveReportingOrigins + /// + [EnumMember(Value = ("excessiveReportingOrigins"))] + ExcessiveReportingOrigins, + /// + /// noHistograms + /// + [EnumMember(Value = ("noHistograms"))] + NoHistograms, + /// + /// insufficientBudget + /// + [EnumMember(Value = ("insufficientBudget"))] + InsufficientBudget, + /// + /// noMatchingSourceFilterData + /// + [EnumMember(Value = ("noMatchingSourceFilterData"))] + NoMatchingSourceFilterData, + /// + /// notRegistered + /// + [EnumMember(Value = ("notRegistered"))] + NotRegistered, + /// + /// prohibitedByBrowserPolicy + /// + [EnumMember(Value = ("prohibitedByBrowserPolicy"))] + ProhibitedByBrowserPolicy, + /// + /// deduplicated + /// + [EnumMember(Value = ("deduplicated"))] + Deduplicated, + /// + /// reportWindowPassed + /// + [EnumMember(Value = ("reportWindowPassed"))] + ReportWindowPassed, + /// + /// excessiveReports + /// + [EnumMember(Value = ("excessiveReports"))] + ExcessiveReports + } + /// /// A cache's contents have been modified. /// @@ -26199,7 +26808,8 @@ namespace CefSharp.DevTools.Storage } /// - /// One of the interest groups was accessed by the associated page. + /// One of the interest groups was accessed. Note that these events are global + /// to all targets sharing an interest group store. /// [System.Runtime.Serialization.DataContractAttribute] public class InterestGroupAccessedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase @@ -26259,6 +26869,121 @@ namespace CefSharp.DevTools.Storage get; private set; } + + /// + /// For topLevelBid/topLevelAdditionalBid, and when appropriate, + /// win and additionalBidWin + /// + [DataMember(Name = ("componentSellerOrigin"), IsRequired = (false))] + public string ComponentSellerOrigin + { + get; + private set; + } + + /// + /// For bid or somethingBid event, if done locally and not on a server. + /// + [DataMember(Name = ("bid"), IsRequired = (false))] + public double? Bid + { + get; + private set; + } + + /// + /// BidCurrency + /// + [DataMember(Name = ("bidCurrency"), IsRequired = (false))] + public string BidCurrency + { + get; + private set; + } + + /// + /// For non-global events --- links to interestGroupAuctionEvent + /// + [DataMember(Name = ("uniqueAuctionId"), IsRequired = (false))] + public string UniqueAuctionId + { + get; + private set; + } + } + + /// + /// An auction involving interest groups is taking place. These events are + /// target-specific. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class InterestGroupAuctionEventOccurredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// EventTime + /// + [DataMember(Name = ("eventTime"), IsRequired = (true))] + public double EventTime + { + get; + private set; + } + + /// + /// Type + /// + public CefSharp.DevTools.Storage.InterestGroupAuctionEventType Type + { + get + { + return (CefSharp.DevTools.Storage.InterestGroupAuctionEventType)(StringToEnum(typeof(CefSharp.DevTools.Storage.InterestGroupAuctionEventType), type)); + } + + set + { + this.type = (EnumToString(value)); + } + } + + /// + /// Type + /// + [DataMember(Name = ("type"), IsRequired = (true))] + internal string type + { + get; + private set; + } + + /// + /// UniqueAuctionId + /// + [DataMember(Name = ("uniqueAuctionId"), IsRequired = (true))] + public string UniqueAuctionId + { + get; + private set; + } + + /// + /// Set for child auctions. + /// + [DataMember(Name = ("parentAuctionId"), IsRequired = (false))] + public string ParentAuctionId + { + get; + private set; + } + + /// + /// Set for started and configResolved + /// + [DataMember(Name = ("auctionConfig"), IsRequired = (false))] + public object AuctionConfig + { + get; + private set; + } } /// @@ -26371,8 +27096,7 @@ namespace CefSharp.DevTools.Storage } /// - /// TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g. - /// trigger registration. + /// attributionReportingSourceRegistered /// [System.Runtime.Serialization.DataContractAttribute] public class AttributionReportingSourceRegisteredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase @@ -26413,6 +27137,75 @@ namespace CefSharp.DevTools.Storage private set; } } + + /// + /// attributionReportingTriggerRegistered + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AttributionReportingTriggerRegisteredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Registration + /// + [DataMember(Name = ("registration"), IsRequired = (true))] + public CefSharp.DevTools.Storage.AttributionReportingTriggerRegistration Registration + { + get; + private set; + } + + /// + /// EventLevel + /// + public CefSharp.DevTools.Storage.AttributionReportingEventLevelResult EventLevel + { + get + { + return (CefSharp.DevTools.Storage.AttributionReportingEventLevelResult)(StringToEnum(typeof(CefSharp.DevTools.Storage.AttributionReportingEventLevelResult), eventLevel)); + } + + set + { + this.eventLevel = (EnumToString(value)); + } + } + + /// + /// EventLevel + /// + [DataMember(Name = ("eventLevel"), IsRequired = (true))] + internal string eventLevel + { + get; + private set; + } + + /// + /// Aggregatable + /// + public CefSharp.DevTools.Storage.AttributionReportingAggregatableResult Aggregatable + { + get + { + return (CefSharp.DevTools.Storage.AttributionReportingAggregatableResult)(StringToEnum(typeof(CefSharp.DevTools.Storage.AttributionReportingAggregatableResult), aggregatable)); + } + + set + { + this.aggregatable = (EnumToString(value)); + } + } + + /// + /// Aggregatable + /// + [DataMember(Name = ("aggregatable"), IsRequired = (true))] + internal string aggregatable + { + get; + private set; + } + } } namespace CefSharp.DevTools.SystemInfo @@ -30571,10 +31364,15 @@ namespace CefSharp.DevTools.Preload [EnumMember(Value = ("PrefetchFailedPerPageLimitExceeded"))] PrefetchFailedPerPageLimitExceeded, /// - /// PrefetchEvicted + /// PrefetchEvictedAfterCandidateRemoved /// - [EnumMember(Value = ("PrefetchEvicted"))] - PrefetchEvicted, + [EnumMember(Value = ("PrefetchEvictedAfterCandidateRemoved"))] + PrefetchEvictedAfterCandidateRemoved, + /// + /// PrefetchEvictedForNewerPrefetch + /// + [EnumMember(Value = ("PrefetchEvictedForNewerPrefetch"))] + PrefetchEvictedForNewerPrefetch, /// /// PrefetchHeldback /// @@ -31101,6 +31899,23 @@ namespace CefSharp.DevTools.FedCm ErrorMoreDetails } + /// + /// The URLs that each account has + /// + public enum AccountUrlType + { + /// + /// TermsOfService + /// + [EnumMember(Value = ("TermsOfService"))] + TermsOfService, + /// + /// PrivacyPolicy + /// + [EnumMember(Value = ("PrivacyPolicy"))] + PrivacyPolicy + } + /// /// Corresponds to IdentityRequestAccount /// @@ -37914,7 +38729,7 @@ namespace CefSharp.DevTools.CSS } } - partial void ValidateAddRule(string styleSheetId, string ruleText, CefSharp.DevTools.CSS.SourceRange location); + partial void ValidateAddRule(string styleSheetId, string ruleText, CefSharp.DevTools.CSS.SourceRange location, int? nodeForPropertySyntaxValidation = null); /// /// Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the /// position specified by `location`. @@ -37922,14 +38737,20 @@ namespace CefSharp.DevTools.CSS /// The css style sheet identifier where a new rule should be inserted. /// The text of a new rule. /// Text position of a new rule in the target style sheet. + /// NodeId for the DOM node in whose context custom property declarations for registered properties should bevalidated. If omitted, declarations in the new rule text can only be validated statically, which may produceincorrect results if the declaration contains a var() for example. /// returns System.Threading.Tasks.Task<AddRuleResponse> - public System.Threading.Tasks.Task AddRuleAsync(string styleSheetId, string ruleText, CefSharp.DevTools.CSS.SourceRange location) + public System.Threading.Tasks.Task AddRuleAsync(string styleSheetId, string ruleText, CefSharp.DevTools.CSS.SourceRange location, int? nodeForPropertySyntaxValidation = null) { - ValidateAddRule(styleSheetId, ruleText, location); + ValidateAddRule(styleSheetId, ruleText, location, nodeForPropertySyntaxValidation); var dict = new System.Collections.Generic.Dictionary(); dict.Add("styleSheetId", styleSheetId); dict.Add("ruleText", ruleText); dict.Add("location", location.ToDictionary()); + if (nodeForPropertySyntaxValidation.HasValue) + { + dict.Add("nodeForPropertySyntaxValidation", nodeForPropertySyntaxValidation.Value); + } + return _client.ExecuteDevToolsMethodAsync("CSS.addRule", dict); } @@ -38302,17 +39123,23 @@ namespace CefSharp.DevTools.CSS return _client.ExecuteDevToolsMethodAsync("CSS.setStyleSheetText", dict); } - partial void ValidateSetStyleTexts(System.Collections.Generic.IList edits); + partial void ValidateSetStyleTexts(System.Collections.Generic.IList edits, int? nodeForPropertySyntaxValidation = null); /// /// Applies specified style edits one after another in the given order. /// /// edits + /// NodeId for the DOM node in whose context custom property declarations for registered properties should bevalidated. If omitted, declarations in the new rule text can only be validated statically, which may produceincorrect results if the declaration contains a var() for example. /// returns System.Threading.Tasks.Task<SetStyleTextsResponse> - public System.Threading.Tasks.Task SetStyleTextsAsync(System.Collections.Generic.IList edits) + public System.Threading.Tasks.Task SetStyleTextsAsync(System.Collections.Generic.IList edits, int? nodeForPropertySyntaxValidation = null) { - ValidateSetStyleTexts(edits); + ValidateSetStyleTexts(edits, nodeForPropertySyntaxValidation); var dict = new System.Collections.Generic.Dictionary(); dict.Add("edits", edits.Select(x => x.ToDictionary())); + if (nodeForPropertySyntaxValidation.HasValue) + { + dict.Add("nodeForPropertySyntaxValidation", nodeForPropertySyntaxValidation.Value); + } + return _client.ExecuteDevToolsMethodAsync("CSS.setStyleTexts", dict); } @@ -44894,6 +45721,34 @@ namespace CefSharp.DevTools.Network } } +namespace CefSharp.DevTools.Network +{ + /// + /// StreamResourceContentResponse + /// + [DataContract] + public class StreamResourceContentResponse : DevToolsDomainResponseBase + { + [DataMember] + internal string bufferedData + { + get; + set; + } + + /// + /// bufferedData + /// + public byte[] BufferedData + { + get + { + return Convert(bufferedData); + } + } + } +} + namespace CefSharp.DevTools.Network { /// @@ -45927,6 +46782,21 @@ namespace CefSharp.DevTools.Network return _client.ExecuteDevToolsMethodAsync("Network.setUserAgentOverride", dict); } + partial void ValidateStreamResourceContent(string requestId); + /// + /// Enables streaming of the response for the given requestId. + /// If enabled, the dataReceived event contains the data that was received during streaming. + /// + /// Identifier of the request to stream. + /// returns System.Threading.Tasks.Task<StreamResourceContentResponse> + public System.Threading.Tasks.Task StreamResourceContentAsync(string requestId) + { + ValidateStreamResourceContent(requestId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + return _client.ExecuteDevToolsMethodAsync("Network.streamResourceContent", dict); + } + partial void ValidateGetSecurityIsolationStatus(string frameId = null); /// /// Returns information about the COEP/COOP isolation status. @@ -49640,7 +50510,8 @@ namespace CefSharp.DevTools.Storage } /// - /// One of the interest groups was accessed by the associated page. + /// One of the interest groups was accessed. Note that these events are global + /// to all targets sharing an interest group store. /// public event System.EventHandler InterestGroupAccessed { @@ -49655,6 +50526,23 @@ namespace CefSharp.DevTools.Storage } } + /// + /// An auction involving interest groups is taking place. These events are + /// target-specific. + /// + public event System.EventHandler InterestGroupAuctionEventOccurred + { + add + { + _client.AddEventHandler("Storage.interestGroupAuctionEventOccurred", value); + } + + remove + { + _client.RemoveEventHandler("Storage.interestGroupAuctionEventOccurred", value); + } + } + /// /// Shared storage was accessed by the associated page. /// The following parameters are included in all events. @@ -49705,8 +50593,7 @@ namespace CefSharp.DevTools.Storage } /// - /// TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g. - /// trigger registration. + /// AttributionReportingSourceRegistered /// public event System.EventHandler AttributionReportingSourceRegistered { @@ -49721,6 +50608,22 @@ namespace CefSharp.DevTools.Storage } } + /// + /// AttributionReportingTriggerRegistered + /// + public event System.EventHandler AttributionReportingTriggerRegistered + { + add + { + _client.AddEventHandler("Storage.attributionReportingTriggerRegistered", value); + } + + remove + { + _client.RemoveEventHandler("Storage.attributionReportingTriggerRegistered", value); + } + } + partial void ValidateGetStorageKeyForFrame(string frameId); /// /// Returns a storage key given a frame id. @@ -50025,6 +50928,20 @@ namespace CefSharp.DevTools.Storage return _client.ExecuteDevToolsMethodAsync("Storage.setInterestGroupTracking", dict); } + partial void ValidateSetInterestGroupAuctionTracking(bool enable); + /// + /// Enables/Disables issuing of interestGroupAuctionEvent events. + /// + /// enable + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetInterestGroupAuctionTrackingAsync(bool enable) + { + ValidateSetInterestGroupAuctionTracking(enable); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enable", enable); + return _client.ExecuteDevToolsMethodAsync("Storage.setInterestGroupAuctionTracking", dict); + } + partial void ValidateGetSharedStorageMetadata(string ownerOrigin); /// /// Gets metadata for an origin's shared storage. @@ -52934,6 +53851,24 @@ namespace CefSharp.DevTools.FedCm return _client.ExecuteDevToolsMethodAsync("FedCm.clickDialogButton", dict); } + partial void ValidateOpenUrl(string dialogId, int accountIndex, CefSharp.DevTools.FedCm.AccountUrlType accountUrlType); + /// + /// OpenUrl + /// + /// dialogId + /// accountIndex + /// accountUrlType + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task OpenUrlAsync(string dialogId, int accountIndex, CefSharp.DevTools.FedCm.AccountUrlType accountUrlType) + { + ValidateOpenUrl(dialogId, accountIndex, accountUrlType); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("dialogId", dialogId); + dict.Add("accountIndex", accountIndex); + dict.Add("accountUrlType", EnumToString(accountUrlType)); + return _client.ExecuteDevToolsMethodAsync("FedCm.openUrl", dict); + } + partial void ValidateDismissDialog(string dialogId, bool? triggerCooldown = null); /// /// DismissDialog diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index 7af82177e..6a371db60 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 121.0.6167.160 +// CHROMIUM VERSION 122.0.6261.112 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility @@ -1535,6 +1535,11 @@ namespace CefSharp.DevTools.Audits [JsonPropertyName("Import")] Import, /// + /// JSON + /// + [JsonPropertyName("JSON")] + JSON, + /// /// Manifest /// [JsonPropertyName("Manifest")] @@ -3737,6 +3742,16 @@ namespace CefSharp.DevTools.Autofill get; set; } + + /// + /// The form field's DOM node + /// + [JsonPropertyName("fieldId")] + public int FieldId + { + get; + set; + } } /// @@ -4091,6 +4106,11 @@ namespace CefSharp.DevTools.Browser [JsonPropertyName("backgroundFetch")] BackgroundFetch, /// + /// capturedSurfaceControl + /// + [JsonPropertyName("capturedSurfaceControl")] + CapturedSurfaceControl, + /// /// clipboardReadWrite /// [JsonPropertyName("clipboardReadWrite")] @@ -13097,6 +13117,17 @@ namespace CefSharp.DevTools.Network set; } + /// + /// Resource charset as determined by the browser (if applicable). + /// + [JsonPropertyName("charset")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Charset + { + get; + set; + } + /// /// Refined HTTP request headers that were actually transmitted over the network. /// @@ -15308,6 +15339,17 @@ namespace CefSharp.DevTools.Network get; private set; } + + /// + /// Data that was received. + /// + [JsonInclude] + [JsonPropertyName("data")] + public byte[] Data + { + get; + private set; + } } /// @@ -18226,6 +18268,11 @@ namespace CefSharp.DevTools.Page [JsonPropertyName("camera")] Camera, /// + /// captured-surface-control + /// + [JsonPropertyName("captured-surface-control")] + CapturedSurfaceControl, + /// /// ch-dpr /// [JsonPropertyName("ch-dpr")] @@ -18501,6 +18548,11 @@ namespace CefSharp.DevTools.Page [JsonPropertyName("private-state-token-redemption")] PrivateStateTokenRedemption, /// + /// publickey-credentials-create + /// + [JsonPropertyName("publickey-credentials-create")] + PublickeyCredentialsCreate, + /// /// publickey-credentials-get /// [JsonPropertyName("publickey-credentials-get")] @@ -18546,6 +18598,11 @@ namespace CefSharp.DevTools.Page [JsonPropertyName("storage-access")] StorageAccess, /// + /// sub-apps + /// + [JsonPropertyName("sub-apps")] + SubApps, + /// /// sync-xhr /// [JsonPropertyName("sync-xhr")] @@ -20627,6 +20684,21 @@ namespace CefSharp.DevTools.Page [JsonPropertyName("WebSocketSticky")] WebSocketSticky, /// + /// SmartCard + /// + [JsonPropertyName("SmartCard")] + SmartCard, + /// + /// LiveMediaStreamTrack + /// + [JsonPropertyName("LiveMediaStreamTrack")] + LiveMediaStreamTrack, + /// + /// UnloadHandler + /// + [JsonPropertyName("UnloadHandler")] + UnloadHandler, + /// /// ContentSecurityHandler /// [JsonPropertyName("ContentSecurityHandler")] @@ -23276,12 +23348,39 @@ namespace CefSharp.DevTools.Storage [JsonPropertyName("additionalBidWin")] AdditionalBidWin, /// + /// topLevelBid + /// + [JsonPropertyName("topLevelBid")] + TopLevelBid, + /// + /// topLevelAdditionalBid + /// + [JsonPropertyName("topLevelAdditionalBid")] + TopLevelAdditionalBid, + /// /// clear /// [JsonPropertyName("clear")] Clear } + /// + /// Enum of auction events. + /// + public enum InterestGroupAuctionEventType + { + /// + /// started + /// + [JsonPropertyName("started")] + Started, + /// + /// configResolved + /// + [JsonPropertyName("configResolved")] + ConfigResolved + } + /// /// Ad advertising element inside an interest group. /// @@ -23901,6 +24000,61 @@ namespace CefSharp.DevTools.Storage } } + /// + /// AttributionReportingFilterConfig + /// + public partial class AttributionReportingFilterConfig : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// FilterValues + /// + [JsonPropertyName("filterValues")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList FilterValues + { + get; + set; + } + + /// + /// duration in seconds + /// + [JsonPropertyName("lookbackWindow")] + public int? LookbackWindow + { + get; + set; + } + } + + /// + /// AttributionReportingFilterPair + /// + public partial class AttributionReportingFilterPair : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Filters + /// + [JsonPropertyName("filters")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Filters + { + get; + set; + } + + /// + /// NotFilters + /// + [JsonPropertyName("notFilters")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList NotFilters + { + get; + set; + } + } + /// /// AttributionReportingAggregationKeysEntry /// @@ -24221,6 +24375,456 @@ namespace CefSharp.DevTools.Storage ExceedsMaxChannelCapacity } + /// + /// AttributionReportingSourceRegistrationTimeConfig + /// + public enum AttributionReportingSourceRegistrationTimeConfig + { + /// + /// include + /// + [JsonPropertyName("include")] + Include, + /// + /// exclude + /// + [JsonPropertyName("exclude")] + Exclude + } + + /// + /// AttributionReportingAggregatableValueEntry + /// + public partial class AttributionReportingAggregatableValueEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key + /// + [JsonPropertyName("key")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Key + { + get; + set; + } + + /// + /// number instead of integer because not all uint32 can be represented by + /// int + /// + [JsonPropertyName("value")] + public double Value + { + get; + set; + } + } + + /// + /// AttributionReportingEventTriggerData + /// + public partial class AttributionReportingEventTriggerData : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Data + /// + [JsonPropertyName("data")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Data + { + get; + set; + } + + /// + /// Priority + /// + [JsonPropertyName("priority")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Priority + { + get; + set; + } + + /// + /// DedupKey + /// + [JsonPropertyName("dedupKey")] + public string DedupKey + { + get; + set; + } + + /// + /// Filters + /// + [JsonPropertyName("filters")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters + { + get; + set; + } + } + + /// + /// AttributionReportingAggregatableTriggerData + /// + public partial class AttributionReportingAggregatableTriggerData : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// KeyPiece + /// + [JsonPropertyName("keyPiece")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string KeyPiece + { + get; + set; + } + + /// + /// SourceKeys + /// + [JsonPropertyName("sourceKeys")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] SourceKeys + { + get; + set; + } + + /// + /// Filters + /// + [JsonPropertyName("filters")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters + { + get; + set; + } + } + + /// + /// AttributionReportingAggregatableDedupKey + /// + public partial class AttributionReportingAggregatableDedupKey : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// DedupKey + /// + [JsonPropertyName("dedupKey")] + public string DedupKey + { + get; + set; + } + + /// + /// Filters + /// + [JsonPropertyName("filters")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters + { + get; + set; + } + } + + /// + /// AttributionReportingTriggerRegistration + /// + public partial class AttributionReportingTriggerRegistration : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Filters + /// + [JsonPropertyName("filters")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters + { + get; + set; + } + + /// + /// DebugKey + /// + [JsonPropertyName("debugKey")] + public string DebugKey + { + get; + set; + } + + /// + /// AggregatableDedupKeys + /// + [JsonPropertyName("aggregatableDedupKeys")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList AggregatableDedupKeys + { + get; + set; + } + + /// + /// EventTriggerData + /// + [JsonPropertyName("eventTriggerData")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList EventTriggerData + { + get; + set; + } + + /// + /// AggregatableTriggerData + /// + [JsonPropertyName("aggregatableTriggerData")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList AggregatableTriggerData + { + get; + set; + } + + /// + /// AggregatableValues + /// + [JsonPropertyName("aggregatableValues")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList AggregatableValues + { + get; + set; + } + + /// + /// DebugReporting + /// + [JsonPropertyName("debugReporting")] + public bool DebugReporting + { + get; + set; + } + + /// + /// AggregationCoordinatorOrigin + /// + [JsonPropertyName("aggregationCoordinatorOrigin")] + public string AggregationCoordinatorOrigin + { + get; + set; + } + + /// + /// SourceRegistrationTimeConfig + /// + [JsonPropertyName("sourceRegistrationTimeConfig")] + public CefSharp.DevTools.Storage.AttributionReportingSourceRegistrationTimeConfig SourceRegistrationTimeConfig + { + get; + set; + } + + /// + /// TriggerContextId + /// + [JsonPropertyName("triggerContextId")] + public string TriggerContextId + { + get; + set; + } + } + + /// + /// AttributionReportingEventLevelResult + /// + public enum AttributionReportingEventLevelResult + { + /// + /// success + /// + [JsonPropertyName("success")] + Success, + /// + /// successDroppedLowerPriority + /// + [JsonPropertyName("successDroppedLowerPriority")] + SuccessDroppedLowerPriority, + /// + /// internalError + /// + [JsonPropertyName("internalError")] + InternalError, + /// + /// noCapacityForAttributionDestination + /// + [JsonPropertyName("noCapacityForAttributionDestination")] + NoCapacityForAttributionDestination, + /// + /// noMatchingSources + /// + [JsonPropertyName("noMatchingSources")] + NoMatchingSources, + /// + /// deduplicated + /// + [JsonPropertyName("deduplicated")] + Deduplicated, + /// + /// excessiveAttributions + /// + [JsonPropertyName("excessiveAttributions")] + ExcessiveAttributions, + /// + /// priorityTooLow + /// + [JsonPropertyName("priorityTooLow")] + PriorityTooLow, + /// + /// neverAttributedSource + /// + [JsonPropertyName("neverAttributedSource")] + NeverAttributedSource, + /// + /// excessiveReportingOrigins + /// + [JsonPropertyName("excessiveReportingOrigins")] + ExcessiveReportingOrigins, + /// + /// noMatchingSourceFilterData + /// + [JsonPropertyName("noMatchingSourceFilterData")] + NoMatchingSourceFilterData, + /// + /// prohibitedByBrowserPolicy + /// + [JsonPropertyName("prohibitedByBrowserPolicy")] + ProhibitedByBrowserPolicy, + /// + /// noMatchingConfigurations + /// + [JsonPropertyName("noMatchingConfigurations")] + NoMatchingConfigurations, + /// + /// excessiveReports + /// + [JsonPropertyName("excessiveReports")] + ExcessiveReports, + /// + /// falselyAttributedSource + /// + [JsonPropertyName("falselyAttributedSource")] + FalselyAttributedSource, + /// + /// reportWindowPassed + /// + [JsonPropertyName("reportWindowPassed")] + ReportWindowPassed, + /// + /// notRegistered + /// + [JsonPropertyName("notRegistered")] + NotRegistered, + /// + /// reportWindowNotStarted + /// + [JsonPropertyName("reportWindowNotStarted")] + ReportWindowNotStarted, + /// + /// noMatchingTriggerData + /// + [JsonPropertyName("noMatchingTriggerData")] + NoMatchingTriggerData + } + + /// + /// AttributionReportingAggregatableResult + /// + public enum AttributionReportingAggregatableResult + { + /// + /// success + /// + [JsonPropertyName("success")] + Success, + /// + /// internalError + /// + [JsonPropertyName("internalError")] + InternalError, + /// + /// noCapacityForAttributionDestination + /// + [JsonPropertyName("noCapacityForAttributionDestination")] + NoCapacityForAttributionDestination, + /// + /// noMatchingSources + /// + [JsonPropertyName("noMatchingSources")] + NoMatchingSources, + /// + /// excessiveAttributions + /// + [JsonPropertyName("excessiveAttributions")] + ExcessiveAttributions, + /// + /// excessiveReportingOrigins + /// + [JsonPropertyName("excessiveReportingOrigins")] + ExcessiveReportingOrigins, + /// + /// noHistograms + /// + [JsonPropertyName("noHistograms")] + NoHistograms, + /// + /// insufficientBudget + /// + [JsonPropertyName("insufficientBudget")] + InsufficientBudget, + /// + /// noMatchingSourceFilterData + /// + [JsonPropertyName("noMatchingSourceFilterData")] + NoMatchingSourceFilterData, + /// + /// notRegistered + /// + [JsonPropertyName("notRegistered")] + NotRegistered, + /// + /// prohibitedByBrowserPolicy + /// + [JsonPropertyName("prohibitedByBrowserPolicy")] + ProhibitedByBrowserPolicy, + /// + /// deduplicated + /// + [JsonPropertyName("deduplicated")] + Deduplicated, + /// + /// reportWindowPassed + /// + [JsonPropertyName("reportWindowPassed")] + ReportWindowPassed, + /// + /// excessiveReports + /// + [JsonPropertyName("excessiveReports")] + ExcessiveReports + } + /// /// A cache's contents have been modified. /// @@ -24426,7 +25030,8 @@ namespace CefSharp.DevTools.Storage } /// - /// One of the interest groups was accessed by the associated page. + /// One of the interest groups was accessed. Note that these events are global + /// to all targets sharing an interest group store. /// public class InterestGroupAccessedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { @@ -24475,6 +25080,114 @@ namespace CefSharp.DevTools.Storage get; private set; } + + /// + /// For topLevelBid/topLevelAdditionalBid, and when appropriate, + /// win and additionalBidWin + /// + [JsonInclude] + [JsonPropertyName("componentSellerOrigin")] + public string ComponentSellerOrigin + { + get; + private set; + } + + /// + /// For bid or somethingBid event, if done locally and not on a server. + /// + [JsonInclude] + [JsonPropertyName("bid")] + public double? Bid + { + get; + private set; + } + + /// + /// BidCurrency + /// + [JsonInclude] + [JsonPropertyName("bidCurrency")] + public string BidCurrency + { + get; + private set; + } + + /// + /// For non-global events --- links to interestGroupAuctionEvent + /// + [JsonInclude] + [JsonPropertyName("uniqueAuctionId")] + public string UniqueAuctionId + { + get; + private set; + } + } + + /// + /// An auction involving interest groups is taking place. These events are + /// target-specific. + /// + public class InterestGroupAuctionEventOccurredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// EventTime + /// + [JsonInclude] + [JsonPropertyName("eventTime")] + public double EventTime + { + get; + private set; + } + + /// + /// Type + /// + [JsonInclude] + [JsonPropertyName("type")] + public CefSharp.DevTools.Storage.InterestGroupAuctionEventType Type + { + get; + private set; + } + + /// + /// UniqueAuctionId + /// + [JsonInclude] + [JsonPropertyName("uniqueAuctionId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string UniqueAuctionId + { + get; + private set; + } + + /// + /// Set for child auctions. + /// + [JsonInclude] + [JsonPropertyName("parentAuctionId")] + public string ParentAuctionId + { + get; + private set; + } + + /// + /// Set for started and configResolved + /// + [JsonInclude] + [JsonPropertyName("auctionConfig")] + public object AuctionConfig + { + get; + private set; + } } /// @@ -24580,8 +25293,7 @@ namespace CefSharp.DevTools.Storage } /// - /// TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g. - /// trigger registration. + /// attributionReportingSourceRegistered /// public class AttributionReportingSourceRegisteredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { @@ -24608,6 +25320,46 @@ namespace CefSharp.DevTools.Storage private set; } } + + /// + /// attributionReportingTriggerRegistered + /// + public class AttributionReportingTriggerRegisteredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Registration + /// + [JsonInclude] + [JsonPropertyName("registration")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Storage.AttributionReportingTriggerRegistration Registration + { + get; + private set; + } + + /// + /// EventLevel + /// + [JsonInclude] + [JsonPropertyName("eventLevel")] + public CefSharp.DevTools.Storage.AttributionReportingEventLevelResult EventLevel + { + get; + private set; + } + + /// + /// Aggregatable + /// + [JsonInclude] + [JsonPropertyName("aggregatable")] + public CefSharp.DevTools.Storage.AttributionReportingAggregatableResult Aggregatable + { + get; + private set; + } + } } namespace CefSharp.DevTools.SystemInfo @@ -28507,10 +29259,15 @@ namespace CefSharp.DevTools.Preload [JsonPropertyName("PrefetchFailedPerPageLimitExceeded")] PrefetchFailedPerPageLimitExceeded, /// - /// PrefetchEvicted + /// PrefetchEvictedAfterCandidateRemoved /// - [JsonPropertyName("PrefetchEvicted")] - PrefetchEvicted, + [JsonPropertyName("PrefetchEvictedAfterCandidateRemoved")] + PrefetchEvictedAfterCandidateRemoved, + /// + /// PrefetchEvictedForNewerPrefetch + /// + [JsonPropertyName("PrefetchEvictedForNewerPrefetch")] + PrefetchEvictedForNewerPrefetch, /// /// PrefetchHeldback /// @@ -28996,6 +29753,23 @@ namespace CefSharp.DevTools.FedCm ErrorMoreDetails } + /// + /// The URLs that each account has + /// + public enum AccountUrlType + { + /// + /// TermsOfService + /// + [JsonPropertyName("TermsOfService")] + TermsOfService, + /// + /// PrivacyPolicy + /// + [JsonPropertyName("PrivacyPolicy")] + PrivacyPolicy + } + /// /// Corresponds to IdentityRequestAccount /// @@ -35171,7 +35945,7 @@ namespace CefSharp.DevTools.CSS } } - partial void ValidateAddRule(string styleSheetId, string ruleText, CefSharp.DevTools.CSS.SourceRange location); + partial void ValidateAddRule(string styleSheetId, string ruleText, CefSharp.DevTools.CSS.SourceRange location, int? nodeForPropertySyntaxValidation = null); /// /// Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the /// position specified by `location`. @@ -35179,14 +35953,20 @@ namespace CefSharp.DevTools.CSS /// The css style sheet identifier where a new rule should be inserted. /// The text of a new rule. /// Text position of a new rule in the target style sheet. + /// NodeId for the DOM node in whose context custom property declarations for registered properties should bevalidated. If omitted, declarations in the new rule text can only be validated statically, which may produceincorrect results if the declaration contains a var() for example. /// returns System.Threading.Tasks.Task<AddRuleResponse> - public System.Threading.Tasks.Task AddRuleAsync(string styleSheetId, string ruleText, CefSharp.DevTools.CSS.SourceRange location) + public System.Threading.Tasks.Task AddRuleAsync(string styleSheetId, string ruleText, CefSharp.DevTools.CSS.SourceRange location, int? nodeForPropertySyntaxValidation = null) { - ValidateAddRule(styleSheetId, ruleText, location); + ValidateAddRule(styleSheetId, ruleText, location, nodeForPropertySyntaxValidation); var dict = new System.Collections.Generic.Dictionary(); dict.Add("styleSheetId", styleSheetId); dict.Add("ruleText", ruleText); dict.Add("location", location.ToDictionary()); + if (nodeForPropertySyntaxValidation.HasValue) + { + dict.Add("nodeForPropertySyntaxValidation", nodeForPropertySyntaxValidation.Value); + } + return _client.ExecuteDevToolsMethodAsync("CSS.addRule", dict); } @@ -35559,17 +36339,23 @@ namespace CefSharp.DevTools.CSS return _client.ExecuteDevToolsMethodAsync("CSS.setStyleSheetText", dict); } - partial void ValidateSetStyleTexts(System.Collections.Generic.IList edits); + partial void ValidateSetStyleTexts(System.Collections.Generic.IList edits, int? nodeForPropertySyntaxValidation = null); /// /// Applies specified style edits one after another in the given order. /// /// edits + /// NodeId for the DOM node in whose context custom property declarations for registered properties should bevalidated. If omitted, declarations in the new rule text can only be validated statically, which may produceincorrect results if the declaration contains a var() for example. /// returns System.Threading.Tasks.Task<SetStyleTextsResponse> - public System.Threading.Tasks.Task SetStyleTextsAsync(System.Collections.Generic.IList edits) + public System.Threading.Tasks.Task SetStyleTextsAsync(System.Collections.Generic.IList edits, int? nodeForPropertySyntaxValidation = null) { - ValidateSetStyleTexts(edits); + ValidateSetStyleTexts(edits, nodeForPropertySyntaxValidation); var dict = new System.Collections.Generic.Dictionary(); dict.Add("edits", edits.Select(x => x.ToDictionary())); + if (nodeForPropertySyntaxValidation.HasValue) + { + dict.Add("nodeForPropertySyntaxValidation", nodeForPropertySyntaxValidation.Value); + } + return _client.ExecuteDevToolsMethodAsync("CSS.setStyleTexts", dict); } @@ -41521,6 +42307,26 @@ namespace CefSharp.DevTools.Network } } +namespace CefSharp.DevTools.Network +{ + /// + /// StreamResourceContentResponse + /// + public class StreamResourceContentResponse : DevToolsDomainResponseBase + { + /// + /// bufferedData + /// + [JsonInclude] + [JsonPropertyName("bufferedData")] + public byte[] BufferedData + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.Network { /// @@ -42538,6 +43344,21 @@ namespace CefSharp.DevTools.Network return _client.ExecuteDevToolsMethodAsync("Network.setUserAgentOverride", dict); } + partial void ValidateStreamResourceContent(string requestId); + /// + /// Enables streaming of the response for the given requestId. + /// If enabled, the dataReceived event contains the data that was received during streaming. + /// + /// Identifier of the request to stream. + /// returns System.Threading.Tasks.Task<StreamResourceContentResponse> + public System.Threading.Tasks.Task StreamResourceContentAsync(string requestId) + { + ValidateStreamResourceContent(requestId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + return _client.ExecuteDevToolsMethodAsync("Network.streamResourceContent", dict); + } + partial void ValidateGetSecurityIsolationStatus(string frameId = null); /// /// Returns information about the COEP/COOP isolation status. @@ -45884,7 +46705,8 @@ namespace CefSharp.DevTools.Storage } /// - /// One of the interest groups was accessed by the associated page. + /// One of the interest groups was accessed. Note that these events are global + /// to all targets sharing an interest group store. /// public event System.EventHandler InterestGroupAccessed { @@ -45899,6 +46721,23 @@ namespace CefSharp.DevTools.Storage } } + /// + /// An auction involving interest groups is taking place. These events are + /// target-specific. + /// + public event System.EventHandler InterestGroupAuctionEventOccurred + { + add + { + _client.AddEventHandler("Storage.interestGroupAuctionEventOccurred", value); + } + + remove + { + _client.RemoveEventHandler("Storage.interestGroupAuctionEventOccurred", value); + } + } + /// /// Shared storage was accessed by the associated page. /// The following parameters are included in all events. @@ -45949,8 +46788,7 @@ namespace CefSharp.DevTools.Storage } /// - /// TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g. - /// trigger registration. + /// AttributionReportingSourceRegistered /// public event System.EventHandler AttributionReportingSourceRegistered { @@ -45965,6 +46803,22 @@ namespace CefSharp.DevTools.Storage } } + /// + /// AttributionReportingTriggerRegistered + /// + public event System.EventHandler AttributionReportingTriggerRegistered + { + add + { + _client.AddEventHandler("Storage.attributionReportingTriggerRegistered", value); + } + + remove + { + _client.RemoveEventHandler("Storage.attributionReportingTriggerRegistered", value); + } + } + partial void ValidateGetStorageKeyForFrame(string frameId); /// /// Returns a storage key given a frame id. @@ -46269,6 +47123,20 @@ namespace CefSharp.DevTools.Storage return _client.ExecuteDevToolsMethodAsync("Storage.setInterestGroupTracking", dict); } + partial void ValidateSetInterestGroupAuctionTracking(bool enable); + /// + /// Enables/Disables issuing of interestGroupAuctionEvent events. + /// + /// enable + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetInterestGroupAuctionTrackingAsync(bool enable) + { + ValidateSetInterestGroupAuctionTracking(enable); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enable", enable); + return _client.ExecuteDevToolsMethodAsync("Storage.setInterestGroupAuctionTracking", dict); + } + partial void ValidateGetSharedStorageMetadata(string ownerOrigin); /// /// Gets metadata for an origin's shared storage. @@ -48991,6 +49859,24 @@ namespace CefSharp.DevTools.FedCm return _client.ExecuteDevToolsMethodAsync("FedCm.clickDialogButton", dict); } + partial void ValidateOpenUrl(string dialogId, int accountIndex, CefSharp.DevTools.FedCm.AccountUrlType accountUrlType); + /// + /// OpenUrl + /// + /// dialogId + /// accountIndex + /// accountUrlType + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task OpenUrlAsync(string dialogId, int accountIndex, CefSharp.DevTools.FedCm.AccountUrlType accountUrlType) + { + ValidateOpenUrl(dialogId, accountIndex, accountUrlType); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("dialogId", dialogId); + dict.Add("accountIndex", accountIndex); + dict.Add("accountUrlType", EnumToString(accountUrlType)); + return _client.ExecuteDevToolsMethodAsync("FedCm.openUrl", dict); + } + partial void ValidateDismissDialog(string dialogId, bool? triggerCooldown = null); /// /// DismissDialog