| // services/network/public/mojom/restricted_cookie_manager.mojom-lite.js is auto generated by mojom_bindings_generator.py, do not edit |
| |
| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| 'use strict'; |
| |
| |
| mojo.internal.exportModule('network.mojom'); |
| |
| |
| |
| |
| |
| /** |
| * @const { {$: !mojo.internal.MojomType} } |
| * @export |
| */ |
| network.mojom.CookieMatchTypeSpec = { $: mojo.internal.Enum() }; |
| |
| /** |
| * @enum {number} |
| * @export |
| */ |
| network.mojom.CookieMatchType = { |
| |
| EQUALS: 0, |
| STARTS_WITH: 1, |
| MIN_VALUE: 0, |
| MAX_VALUE: 1, |
| }; |
| |
| |
| /** |
| * @const { {$: !mojo.internal.MojomType} } |
| * @export |
| */ |
| network.mojom.RestrictedCookieManagerRoleSpec = { $: mojo.internal.Enum() }; |
| |
| /** |
| * @enum {number} |
| * @export |
| */ |
| network.mojom.RestrictedCookieManagerRole = { |
| |
| SCRIPT: 0, |
| NETWORK: 1, |
| MIN_VALUE: 0, |
| MAX_VALUE: 1, |
| }; |
| |
| |
| |
| |
| |
| /** |
| * @implements {mojo.internal.interfaceSupport.PendingReceiver} |
| * @export |
| */ |
| network.mojom.RestrictedCookieManagerPendingReceiver = class { |
| /** |
| * @param {!MojoHandle|!mojo.internal.interfaceSupport.Endpoint} handle |
| */ |
| constructor(handle) { |
| /** @public {!mojo.internal.interfaceSupport.Endpoint} */ |
| this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle); |
| } |
| |
| /** @param {string=} scope */ |
| bindInBrowser(scope = 'context') { |
| mojo.internal.interfaceSupport.bind( |
| this.handle, |
| network.mojom.RestrictedCookieManager.$interfaceName, |
| scope); |
| } |
| }; |
| |
| |
| |
| /** |
| * @export |
| * @implements { network.mojom.RestrictedCookieManagerInterface } |
| */ |
| network.mojom.RestrictedCookieManagerRemote = class { |
| /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ |
| constructor(handle = undefined) { |
| /** |
| * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!network.mojom.RestrictedCookieManagerPendingReceiver>} |
| */ |
| this.proxy = |
| new mojo.internal.interfaceSupport.InterfaceRemoteBase( |
| network.mojom.RestrictedCookieManagerPendingReceiver, |
| handle); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!network.mojom.RestrictedCookieManagerPendingReceiver>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); |
| } |
| |
| |
| /** |
| * @param { !url.mojom.Url } url |
| * @param { !network.mojom.SiteForCookies } siteForCookies |
| * @param { !url.mojom.Origin } topFrameOrigin |
| * @param { !network.mojom.CookieManagerGetOptions } options |
| * @param { !boolean } partitionedCookiesRuntimeFeatureEnabled |
| * @return {!Promise<{ |
| cookies: !Array<!network.mojom.CookieWithAccessResult>, |
| * }>} |
| */ |
| |
| getAllForUrl( |
| url, |
| siteForCookies, |
| topFrameOrigin, |
| options, |
| partitionedCookiesRuntimeFeatureEnabled) { |
| return this.proxy.sendMessage( |
| 325982923, |
| network.mojom.RestrictedCookieManager_GetAllForUrl_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_GetAllForUrl_ResponseParamsSpec.$, |
| [ |
| url, |
| siteForCookies, |
| topFrameOrigin, |
| options, |
| partitionedCookiesRuntimeFeatureEnabled |
| ]); |
| } |
| |
| |
| /** |
| * @param { !network.mojom.CanonicalCookie } cookie |
| * @param { !url.mojom.Url } url |
| * @param { !network.mojom.SiteForCookies } siteForCookies |
| * @param { !url.mojom.Origin } topFrameOrigin |
| * @param { !network.mojom.CookieInclusionStatus } status |
| * @return {!Promise<{ |
| success: !boolean, |
| * }>} |
| */ |
| |
| setCanonicalCookie( |
| cookie, |
| url, |
| siteForCookies, |
| topFrameOrigin, |
| status) { |
| return this.proxy.sendMessage( |
| 915944056, |
| network.mojom.RestrictedCookieManager_SetCanonicalCookie_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_SetCanonicalCookie_ResponseParamsSpec.$, |
| [ |
| cookie, |
| url, |
| siteForCookies, |
| topFrameOrigin, |
| status |
| ]); |
| } |
| |
| |
| /** |
| * @param { !url.mojom.Url } url |
| * @param { !network.mojom.SiteForCookies } siteForCookies |
| * @param { !url.mojom.Origin } topFrameOrigin |
| * @param { !network.mojom.CookieChangeListenerRemote } listener |
| * @return {!Promise} |
| */ |
| |
| addChangeListener( |
| url, |
| siteForCookies, |
| topFrameOrigin, |
| listener) { |
| return this.proxy.sendMessage( |
| 334003007, |
| network.mojom.RestrictedCookieManager_AddChangeListener_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_AddChangeListener_ResponseParamsSpec.$, |
| [ |
| url, |
| siteForCookies, |
| topFrameOrigin, |
| listener |
| ]); |
| } |
| |
| |
| /** |
| * @param { !url.mojom.Url } url |
| * @param { !network.mojom.SiteForCookies } siteForCookies |
| * @param { !url.mojom.Origin } topFrameOrigin |
| * @param { !string } cookie |
| * @param { !boolean } partitionedCookiesRuntimeFeatureEnabled |
| * @return {!Promise} |
| */ |
| |
| setCookieFromString( |
| url, |
| siteForCookies, |
| topFrameOrigin, |
| cookie, |
| partitionedCookiesRuntimeFeatureEnabled) { |
| return this.proxy.sendMessage( |
| 1595763660, |
| network.mojom.RestrictedCookieManager_SetCookieFromString_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_SetCookieFromString_ResponseParamsSpec.$, |
| [ |
| url, |
| siteForCookies, |
| topFrameOrigin, |
| cookie, |
| partitionedCookiesRuntimeFeatureEnabled |
| ]); |
| } |
| |
| |
| /** |
| * @param { !url.mojom.Url } url |
| * @param { !network.mojom.SiteForCookies } siteForCookies |
| * @param { !url.mojom.Origin } topFrameOrigin |
| * @param { !boolean } partitionedCookiesRuntimeFeatureEnabled |
| * @return {!Promise<{ |
| cookies: !string, |
| * }>} |
| */ |
| |
| getCookiesString( |
| url, |
| siteForCookies, |
| topFrameOrigin, |
| partitionedCookiesRuntimeFeatureEnabled) { |
| return this.proxy.sendMessage( |
| 1236154089, |
| network.mojom.RestrictedCookieManager_GetCookiesString_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_GetCookiesString_ResponseParamsSpec.$, |
| [ |
| url, |
| siteForCookies, |
| topFrameOrigin, |
| partitionedCookiesRuntimeFeatureEnabled |
| ]); |
| } |
| |
| |
| /** |
| * @param { !url.mojom.Url } url |
| * @param { !network.mojom.SiteForCookies } siteForCookies |
| * @param { !url.mojom.Origin } topFrameOrigin |
| * @return {!Promise<{ |
| cookiesEnabled: !boolean, |
| * }>} |
| */ |
| |
| cookiesEnabledFor( |
| url, |
| siteForCookies, |
| topFrameOrigin) { |
| return this.proxy.sendMessage( |
| 1212881614, |
| network.mojom.RestrictedCookieManager_CookiesEnabledFor_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_CookiesEnabledFor_ResponseParamsSpec.$, |
| [ |
| url, |
| siteForCookies, |
| topFrameOrigin |
| ]); |
| } |
| |
| |
| /** |
| * @param { !url.mojom.Url } url |
| */ |
| |
| convertPartitionedCookiesToUnpartitioned( |
| url) { |
| this.proxy.sendMessage( |
| 429933776, |
| network.mojom.RestrictedCookieManager_ConvertPartitionedCookiesToUnpartitioned_ParamsSpec.$, |
| null, |
| [ |
| url |
| ]); |
| } |
| }; |
| |
| /** |
| * An object which receives request messages for the RestrictedCookieManager |
| * mojom interface. Must be constructed over an object which implements that |
| * interface. |
| * |
| * @export |
| */ |
| network.mojom.RestrictedCookieManagerReceiver = class { |
| /** |
| * @param {!network.mojom.RestrictedCookieManagerInterface } impl |
| */ |
| constructor(impl) { |
| /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!network.mojom.RestrictedCookieManagerRemote>} */ |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| network.mojom.RestrictedCookieManagerRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!network.mojom.RestrictedCookieManagerRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| |
| this.helper_internal_.registerHandler( |
| 325982923, |
| network.mojom.RestrictedCookieManager_GetAllForUrl_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_GetAllForUrl_ResponseParamsSpec.$, |
| impl.getAllForUrl.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 915944056, |
| network.mojom.RestrictedCookieManager_SetCanonicalCookie_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_SetCanonicalCookie_ResponseParamsSpec.$, |
| impl.setCanonicalCookie.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 334003007, |
| network.mojom.RestrictedCookieManager_AddChangeListener_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_AddChangeListener_ResponseParamsSpec.$, |
| impl.addChangeListener.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 1595763660, |
| network.mojom.RestrictedCookieManager_SetCookieFromString_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_SetCookieFromString_ResponseParamsSpec.$, |
| impl.setCookieFromString.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 1236154089, |
| network.mojom.RestrictedCookieManager_GetCookiesString_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_GetCookiesString_ResponseParamsSpec.$, |
| impl.getCookiesString.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 1212881614, |
| network.mojom.RestrictedCookieManager_CookiesEnabledFor_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_CookiesEnabledFor_ResponseParamsSpec.$, |
| impl.cookiesEnabledFor.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 429933776, |
| network.mojom.RestrictedCookieManager_ConvertPartitionedCookiesToUnpartitioned_ParamsSpec.$, |
| null, |
| impl.convertPartitionedCookiesToUnpartitioned.bind(impl)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| }; |
| |
| /** |
| * @export |
| */ |
| network.mojom.RestrictedCookieManager = class { |
| /** |
| * @return {!string} |
| */ |
| static get $interfaceName() { |
| return "network.mojom.RestrictedCookieManager"; |
| } |
| |
| /** |
| * Returns a remote for this interface which sends messages to the browser. |
| * The browser must have an interface request binder registered for this |
| * interface and accessible to the calling document's frame. |
| * |
| * @return {!network.mojom.RestrictedCookieManagerRemote} |
| * @export |
| */ |
| static getRemote() { |
| let remote = new network.mojom.RestrictedCookieManagerRemote; |
| remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); |
| return remote; |
| } |
| }; |
| |
| |
| /** |
| * An object which receives request messages for the RestrictedCookieManager |
| * mojom interface and dispatches them as callbacks. One callback receiver exists |
| * on this object for each message defined in the mojom interface, and each |
| * receiver can have any number of listeners added to it. |
| * |
| * @export |
| */ |
| network.mojom.RestrictedCookieManagerCallbackRouter = class { |
| constructor() { |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| network.mojom.RestrictedCookieManagerRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!network.mojom.RestrictedCookieManagerRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.getAllForUrl = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 325982923, |
| network.mojom.RestrictedCookieManager_GetAllForUrl_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_GetAllForUrl_ResponseParamsSpec.$, |
| this.getAllForUrl.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.setCanonicalCookie = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 915944056, |
| network.mojom.RestrictedCookieManager_SetCanonicalCookie_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_SetCanonicalCookie_ResponseParamsSpec.$, |
| this.setCanonicalCookie.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.addChangeListener = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 334003007, |
| network.mojom.RestrictedCookieManager_AddChangeListener_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_AddChangeListener_ResponseParamsSpec.$, |
| this.addChangeListener.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.setCookieFromString = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 1595763660, |
| network.mojom.RestrictedCookieManager_SetCookieFromString_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_SetCookieFromString_ResponseParamsSpec.$, |
| this.setCookieFromString.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.getCookiesString = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 1236154089, |
| network.mojom.RestrictedCookieManager_GetCookiesString_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_GetCookiesString_ResponseParamsSpec.$, |
| this.getCookiesString.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.cookiesEnabledFor = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 1212881614, |
| network.mojom.RestrictedCookieManager_CookiesEnabledFor_ParamsSpec.$, |
| network.mojom.RestrictedCookieManager_CookiesEnabledFor_ResponseParamsSpec.$, |
| this.cookiesEnabledFor.createReceiverHandler(true /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.convertPartitionedCookiesToUnpartitioned = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 429933776, |
| network.mojom.RestrictedCookieManager_ConvertPartitionedCookiesToUnpartitioned_ParamsSpec.$, |
| null, |
| this.convertPartitionedCookiesToUnpartitioned.createReceiverHandler(false /* expectsResponse */)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| |
| /** |
| * @param {number} id An ID returned by a prior call to addListener. |
| * @return {boolean} True iff the identified listener was found and removed. |
| * @export |
| */ |
| removeListener(id) { |
| return this.router_.removeListener(id); |
| } |
| }; |
| |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| network.mojom.CookieManagerGetOptionsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| network.mojom.RestrictedCookieManager_GetAllForUrl_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| network.mojom.RestrictedCookieManager_GetAllForUrl_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| network.mojom.RestrictedCookieManager_SetCanonicalCookie_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| network.mojom.RestrictedCookieManager_SetCanonicalCookie_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| network.mojom.RestrictedCookieManager_AddChangeListener_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| network.mojom.RestrictedCookieManager_AddChangeListener_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| network.mojom.RestrictedCookieManager_SetCookieFromString_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| network.mojom.RestrictedCookieManager_SetCookieFromString_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| network.mojom.RestrictedCookieManager_GetCookiesString_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| network.mojom.RestrictedCookieManager_GetCookiesString_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| network.mojom.RestrictedCookieManager_CookiesEnabledFor_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| network.mojom.RestrictedCookieManager_CookiesEnabledFor_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| network.mojom.RestrictedCookieManager_ConvertPartitionedCookiesToUnpartitioned_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| network.mojom.CookieManagerGetOptionsSpec.$, |
| 'CookieManagerGetOptions', |
| [ |
| mojo.internal.StructField( |
| 'name', 0, |
| 0, |
| mojo.internal.String, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'matchType', 8, |
| 0, |
| network.mojom.CookieMatchTypeSpec.$, |
| 0, |
| false /* nullable */), |
| ], |
| [[0, 24],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| network.mojom.CookieManagerGetOptions = class { |
| constructor() { |
| /** @export { !string } */ |
| this.name; |
| /** @export { !network.mojom.CookieMatchType } */ |
| this.matchType; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| network.mojom.RestrictedCookieManager_GetAllForUrl_ParamsSpec.$, |
| 'RestrictedCookieManager_GetAllForUrl_Params', |
| [ |
| mojo.internal.StructField( |
| 'url', 0, |
| 0, |
| url.mojom.UrlSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'siteForCookies', 8, |
| 0, |
| network.mojom.SiteForCookiesSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'topFrameOrigin', 16, |
| 0, |
| url.mojom.OriginSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'options', 24, |
| 0, |
| network.mojom.CookieManagerGetOptionsSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'partitionedCookiesRuntimeFeatureEnabled', 32, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false /* nullable */), |
| ], |
| [[0, 48],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| network.mojom.RestrictedCookieManager_GetAllForUrl_Params = class { |
| constructor() { |
| /** @export { !url.mojom.Url } */ |
| this.url; |
| /** @export { !network.mojom.SiteForCookies } */ |
| this.siteForCookies; |
| /** @export { !url.mojom.Origin } */ |
| this.topFrameOrigin; |
| /** @export { !network.mojom.CookieManagerGetOptions } */ |
| this.options; |
| /** @export { !boolean } */ |
| this.partitionedCookiesRuntimeFeatureEnabled; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| network.mojom.RestrictedCookieManager_GetAllForUrl_ResponseParamsSpec.$, |
| 'RestrictedCookieManager_GetAllForUrl_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'cookies', 0, |
| 0, |
| mojo.internal.Array(network.mojom.CookieWithAccessResultSpec.$, false), |
| null, |
| false /* nullable */), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| network.mojom.RestrictedCookieManager_GetAllForUrl_ResponseParams = class { |
| constructor() { |
| /** @export { !Array<!network.mojom.CookieWithAccessResult> } */ |
| this.cookies; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| network.mojom.RestrictedCookieManager_SetCanonicalCookie_ParamsSpec.$, |
| 'RestrictedCookieManager_SetCanonicalCookie_Params', |
| [ |
| mojo.internal.StructField( |
| 'cookie', 0, |
| 0, |
| network.mojom.CanonicalCookieSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'url', 8, |
| 0, |
| url.mojom.UrlSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'siteForCookies', 16, |
| 0, |
| network.mojom.SiteForCookiesSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'topFrameOrigin', 24, |
| 0, |
| url.mojom.OriginSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'status', 32, |
| 0, |
| network.mojom.CookieInclusionStatusSpec.$, |
| null, |
| false /* nullable */), |
| ], |
| [[0, 48],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| network.mojom.RestrictedCookieManager_SetCanonicalCookie_Params = class { |
| constructor() { |
| /** @export { !network.mojom.CanonicalCookie } */ |
| this.cookie; |
| /** @export { !url.mojom.Url } */ |
| this.url; |
| /** @export { !network.mojom.SiteForCookies } */ |
| this.siteForCookies; |
| /** @export { !url.mojom.Origin } */ |
| this.topFrameOrigin; |
| /** @export { !network.mojom.CookieInclusionStatus } */ |
| this.status; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| network.mojom.RestrictedCookieManager_SetCanonicalCookie_ResponseParamsSpec.$, |
| 'RestrictedCookieManager_SetCanonicalCookie_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'success', 0, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false /* nullable */), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| network.mojom.RestrictedCookieManager_SetCanonicalCookie_ResponseParams = class { |
| constructor() { |
| /** @export { !boolean } */ |
| this.success; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| network.mojom.RestrictedCookieManager_AddChangeListener_ParamsSpec.$, |
| 'RestrictedCookieManager_AddChangeListener_Params', |
| [ |
| mojo.internal.StructField( |
| 'url', 0, |
| 0, |
| url.mojom.UrlSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'siteForCookies', 8, |
| 0, |
| network.mojom.SiteForCookiesSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'topFrameOrigin', 16, |
| 0, |
| url.mojom.OriginSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'listener', 24, |
| 0, |
| mojo.internal.InterfaceProxy(network.mojom.CookieChangeListenerRemote), |
| null, |
| false /* nullable */), |
| ], |
| [[0, 40],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| network.mojom.RestrictedCookieManager_AddChangeListener_Params = class { |
| constructor() { |
| /** @export { !url.mojom.Url } */ |
| this.url; |
| /** @export { !network.mojom.SiteForCookies } */ |
| this.siteForCookies; |
| /** @export { !url.mojom.Origin } */ |
| this.topFrameOrigin; |
| /** @export { !network.mojom.CookieChangeListenerRemote } */ |
| this.listener; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| network.mojom.RestrictedCookieManager_AddChangeListener_ResponseParamsSpec.$, |
| 'RestrictedCookieManager_AddChangeListener_ResponseParams', |
| [ |
| ], |
| [[0, 8],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| network.mojom.RestrictedCookieManager_AddChangeListener_ResponseParams = class { |
| constructor() { |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| network.mojom.RestrictedCookieManager_SetCookieFromString_ParamsSpec.$, |
| 'RestrictedCookieManager_SetCookieFromString_Params', |
| [ |
| mojo.internal.StructField( |
| 'url', 0, |
| 0, |
| url.mojom.UrlSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'siteForCookies', 8, |
| 0, |
| network.mojom.SiteForCookiesSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'topFrameOrigin', 16, |
| 0, |
| url.mojom.OriginSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'cookie', 24, |
| 0, |
| mojo.internal.String, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'partitionedCookiesRuntimeFeatureEnabled', 32, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false /* nullable */), |
| ], |
| [[0, 48],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| network.mojom.RestrictedCookieManager_SetCookieFromString_Params = class { |
| constructor() { |
| /** @export { !url.mojom.Url } */ |
| this.url; |
| /** @export { !network.mojom.SiteForCookies } */ |
| this.siteForCookies; |
| /** @export { !url.mojom.Origin } */ |
| this.topFrameOrigin; |
| /** @export { !string } */ |
| this.cookie; |
| /** @export { !boolean } */ |
| this.partitionedCookiesRuntimeFeatureEnabled; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| network.mojom.RestrictedCookieManager_SetCookieFromString_ResponseParamsSpec.$, |
| 'RestrictedCookieManager_SetCookieFromString_ResponseParams', |
| [ |
| ], |
| [[0, 8],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| network.mojom.RestrictedCookieManager_SetCookieFromString_ResponseParams = class { |
| constructor() { |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| network.mojom.RestrictedCookieManager_GetCookiesString_ParamsSpec.$, |
| 'RestrictedCookieManager_GetCookiesString_Params', |
| [ |
| mojo.internal.StructField( |
| 'url', 0, |
| 0, |
| url.mojom.UrlSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'siteForCookies', 8, |
| 0, |
| network.mojom.SiteForCookiesSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'topFrameOrigin', 16, |
| 0, |
| url.mojom.OriginSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'partitionedCookiesRuntimeFeatureEnabled', 24, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false /* nullable */), |
| ], |
| [[0, 40],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| network.mojom.RestrictedCookieManager_GetCookiesString_Params = class { |
| constructor() { |
| /** @export { !url.mojom.Url } */ |
| this.url; |
| /** @export { !network.mojom.SiteForCookies } */ |
| this.siteForCookies; |
| /** @export { !url.mojom.Origin } */ |
| this.topFrameOrigin; |
| /** @export { !boolean } */ |
| this.partitionedCookiesRuntimeFeatureEnabled; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| network.mojom.RestrictedCookieManager_GetCookiesString_ResponseParamsSpec.$, |
| 'RestrictedCookieManager_GetCookiesString_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'cookies', 0, |
| 0, |
| mojo.internal.String, |
| null, |
| false /* nullable */), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| network.mojom.RestrictedCookieManager_GetCookiesString_ResponseParams = class { |
| constructor() { |
| /** @export { !string } */ |
| this.cookies; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| network.mojom.RestrictedCookieManager_CookiesEnabledFor_ParamsSpec.$, |
| 'RestrictedCookieManager_CookiesEnabledFor_Params', |
| [ |
| mojo.internal.StructField( |
| 'url', 0, |
| 0, |
| url.mojom.UrlSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'siteForCookies', 8, |
| 0, |
| network.mojom.SiteForCookiesSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'topFrameOrigin', 16, |
| 0, |
| url.mojom.OriginSpec.$, |
| null, |
| false /* nullable */), |
| ], |
| [[0, 32],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| network.mojom.RestrictedCookieManager_CookiesEnabledFor_Params = class { |
| constructor() { |
| /** @export { !url.mojom.Url } */ |
| this.url; |
| /** @export { !network.mojom.SiteForCookies } */ |
| this.siteForCookies; |
| /** @export { !url.mojom.Origin } */ |
| this.topFrameOrigin; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| network.mojom.RestrictedCookieManager_CookiesEnabledFor_ResponseParamsSpec.$, |
| 'RestrictedCookieManager_CookiesEnabledFor_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'cookiesEnabled', 0, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false /* nullable */), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| network.mojom.RestrictedCookieManager_CookiesEnabledFor_ResponseParams = class { |
| constructor() { |
| /** @export { !boolean } */ |
| this.cookiesEnabled; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| network.mojom.RestrictedCookieManager_ConvertPartitionedCookiesToUnpartitioned_ParamsSpec.$, |
| 'RestrictedCookieManager_ConvertPartitionedCookiesToUnpartitioned_Params', |
| [ |
| mojo.internal.StructField( |
| 'url', 0, |
| 0, |
| url.mojom.UrlSpec.$, |
| null, |
| false /* nullable */), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| network.mojom.RestrictedCookieManager_ConvertPartitionedCookiesToUnpartitioned_Params = class { |
| constructor() { |
| /** @export { !url.mojom.Url } */ |
| this.url; |
| } |
| }; |
| |
| |