| // chrome/common/renderer_configuration.mojom-lite.js is auto generated by mojom_bindings_generator.py, do not edit |
| |
| // Copyright 2018 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| /** |
| * @fileoverview |
| * @suppress {missingRequire} |
| */ |
| 'use strict'; |
| |
| |
| mojo.internal.exportModule('chrome.mojom'); |
| |
| |
| |
| |
| |
| /** |
| * @const { {$: !mojo.internal.MojomType} } |
| * @export |
| */ |
| chrome.mojom.ResumeBlockedRequestsTriggerSpec = { $: mojo.internal.Enum() }; |
| |
| /** |
| * @enum {number} |
| * @export |
| */ |
| chrome.mojom.ResumeBlockedRequestsTrigger = { |
| |
| kObservedFreshCookies: 0, |
| kCookieRefreshFetchSuccess: 1, |
| kCookieRefreshFetchFailure: 2, |
| kTimeout: 4, |
| kShutdownOrSessionTermination: 5, |
| kCookieAlreadyFresh: 6, |
| kRendererDisconnected: 7, |
| MIN_VALUE: 0, |
| MAX_VALUE: 7, |
| }; |
| |
| |
| |
| |
| |
| /** |
| * @implements {mojo.internal.interfaceSupport.PendingReceiver} |
| * @export |
| */ |
| chrome.mojom.BoundSessionRequestThrottledHandlerPendingReceiver = 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, |
| chrome.mojom.BoundSessionRequestThrottledHandler.$interfaceName, |
| scope); |
| } |
| }; |
| |
| |
| |
| /** |
| * @export |
| * @implements { chrome.mojom.BoundSessionRequestThrottledHandlerInterface } |
| */ |
| chrome.mojom.BoundSessionRequestThrottledHandlerRemote = class { |
| /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ |
| constructor(handle = undefined) { |
| /** |
| * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!chrome.mojom.BoundSessionRequestThrottledHandlerPendingReceiver>} |
| */ |
| this.proxy = |
| new mojo.internal.interfaceSupport.InterfaceRemoteBase( |
| chrome.mojom.BoundSessionRequestThrottledHandlerPendingReceiver, |
| handle); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!chrome.mojom.BoundSessionRequestThrottledHandlerPendingReceiver>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); |
| } |
| |
| |
| /** |
| * @return {!Promise<{ |
| resumeTrigger: !chrome.mojom.ResumeBlockedRequestsTrigger, |
| * }>} |
| */ |
| |
| handleRequestBlockedOnCookie() { |
| return this.proxy.sendMessage( |
| 0, |
| chrome.mojom.BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_ParamsSpec.$, |
| chrome.mojom.BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_ResponseParamsSpec.$, |
| [ |
| ]); |
| } |
| }; |
| |
| /** |
| * An object which receives request messages for the BoundSessionRequestThrottledHandler |
| * mojom interface. Must be constructed over an object which implements that |
| * interface. |
| * |
| * @export |
| */ |
| chrome.mojom.BoundSessionRequestThrottledHandlerReceiver = class { |
| /** |
| * @param {!chrome.mojom.BoundSessionRequestThrottledHandlerInterface } impl |
| */ |
| constructor(impl) { |
| /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!chrome.mojom.BoundSessionRequestThrottledHandlerRemote>} */ |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| chrome.mojom.BoundSessionRequestThrottledHandlerRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!chrome.mojom.BoundSessionRequestThrottledHandlerRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| chrome.mojom.BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_ParamsSpec.$, |
| chrome.mojom.BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_ResponseParamsSpec.$, |
| impl.handleRequestBlockedOnCookie.bind(impl)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| }; |
| |
| /** |
| * @export |
| */ |
| chrome.mojom.BoundSessionRequestThrottledHandler = class { |
| /** |
| * @return {!string} |
| */ |
| static get $interfaceName() { |
| return "chrome.mojom.BoundSessionRequestThrottledHandler"; |
| } |
| |
| /** |
| * 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 {!chrome.mojom.BoundSessionRequestThrottledHandlerRemote} |
| * @export |
| */ |
| static getRemote() { |
| let remote = new chrome.mojom.BoundSessionRequestThrottledHandlerRemote; |
| remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); |
| return remote; |
| } |
| }; |
| |
| |
| /** |
| * An object which receives request messages for the BoundSessionRequestThrottledHandler |
| * 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 |
| */ |
| chrome.mojom.BoundSessionRequestThrottledHandlerCallbackRouter = class { |
| constructor() { |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| chrome.mojom.BoundSessionRequestThrottledHandlerRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!chrome.mojom.BoundSessionRequestThrottledHandlerRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.handleRequestBlockedOnCookie = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| chrome.mojom.BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_ParamsSpec.$, |
| chrome.mojom.BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_ResponseParamsSpec.$, |
| this.handleRequestBlockedOnCookie.createReceiverHandler(true /* 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); |
| } |
| }; |
| |
| |
| |
| |
| /** |
| * @implements {mojo.internal.interfaceSupport.PendingReceiver} |
| * @export |
| */ |
| chrome.mojom.ChromeOSListenerPendingReceiver = 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, |
| chrome.mojom.ChromeOSListener.$interfaceName, |
| scope); |
| } |
| }; |
| |
| |
| |
| /** |
| * @export |
| * @implements { chrome.mojom.ChromeOSListenerInterface } |
| */ |
| chrome.mojom.ChromeOSListenerRemote = class { |
| /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ |
| constructor(handle = undefined) { |
| /** |
| * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!chrome.mojom.ChromeOSListenerPendingReceiver>} |
| */ |
| this.proxy = |
| new mojo.internal.interfaceSupport.InterfaceRemoteBase( |
| chrome.mojom.ChromeOSListenerPendingReceiver, |
| handle); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!chrome.mojom.ChromeOSListenerPendingReceiver>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); |
| } |
| }; |
| |
| /** |
| * An object which receives request messages for the ChromeOSListener |
| * mojom interface. Must be constructed over an object which implements that |
| * interface. |
| * |
| * @export |
| */ |
| chrome.mojom.ChromeOSListenerReceiver = class { |
| /** |
| * @param {!chrome.mojom.ChromeOSListenerInterface } impl |
| */ |
| constructor(impl) { |
| /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!chrome.mojom.ChromeOSListenerRemote>} */ |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| chrome.mojom.ChromeOSListenerRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!chrome.mojom.ChromeOSListenerRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| }; |
| |
| /** |
| * @export |
| */ |
| chrome.mojom.ChromeOSListener = class { |
| /** |
| * @return {!string} |
| */ |
| static get $interfaceName() { |
| return "chrome.mojom.ChromeOSListener"; |
| } |
| |
| /** |
| * 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 {!chrome.mojom.ChromeOSListenerRemote} |
| * @export |
| */ |
| static getRemote() { |
| let remote = new chrome.mojom.ChromeOSListenerRemote; |
| remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); |
| return remote; |
| } |
| }; |
| |
| |
| /** |
| * An object which receives request messages for the ChromeOSListener |
| * 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 |
| */ |
| chrome.mojom.ChromeOSListenerCallbackRouter = class { |
| constructor() { |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| chrome.mojom.ChromeOSListenerRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!chrome.mojom.ChromeOSListenerRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; |
| |
| /** @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); |
| } |
| }; |
| |
| |
| |
| |
| /** |
| * @implements {mojo.internal.interfaceSupport.PendingReceiver} |
| * @export |
| */ |
| chrome.mojom.RendererConfigurationPendingReceiver = 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, |
| chrome.mojom.RendererConfiguration.$interfaceName, |
| scope); |
| } |
| }; |
| |
| |
| |
| /** |
| * @export |
| * @implements { chrome.mojom.RendererConfigurationInterface } |
| */ |
| chrome.mojom.RendererConfigurationRemote = class { |
| /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ |
| constructor(handle = undefined) { |
| /** |
| * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!chrome.mojom.RendererConfigurationPendingReceiver>} |
| */ |
| this.proxy = |
| new mojo.internal.interfaceSupport.InterfaceRemoteBase( |
| chrome.mojom.RendererConfigurationPendingReceiver, |
| handle); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!chrome.mojom.RendererConfigurationPendingReceiver>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); |
| } |
| |
| |
| /** |
| * @param { !boolean } isIncognitoProcess |
| * @param { ?chrome.mojom.ChromeOSListenerPendingReceiver } chromeosListener |
| * @param { ?contentSettings.mojom.ContentSettingsManagerRemote } contentSettingsManager |
| * @param { ?chrome.mojom.BoundSessionRequestThrottledHandlerRemote } boundSessionRequestThrottledHandler |
| */ |
| |
| setInitialConfiguration( |
| isIncognitoProcess, |
| chromeosListener, |
| contentSettingsManager, |
| boundSessionRequestThrottledHandler) { |
| this.proxy.sendMessage( |
| 0, |
| chrome.mojom.RendererConfiguration_SetInitialConfiguration_ParamsSpec.$, |
| null, |
| [ |
| isIncognitoProcess, |
| chromeosListener, |
| contentSettingsManager, |
| boundSessionRequestThrottledHandler |
| ]); |
| } |
| |
| |
| /** |
| * @param { !chrome.mojom.DynamicParams } params |
| */ |
| |
| setConfiguration( |
| params) { |
| this.proxy.sendMessage( |
| 1, |
| chrome.mojom.RendererConfiguration_SetConfiguration_ParamsSpec.$, |
| null, |
| [ |
| params |
| ]); |
| } |
| }; |
| |
| /** |
| * An object which receives request messages for the RendererConfiguration |
| * mojom interface. Must be constructed over an object which implements that |
| * interface. |
| * |
| * @export |
| */ |
| chrome.mojom.RendererConfigurationReceiver = class { |
| /** |
| * @param {!chrome.mojom.RendererConfigurationInterface } impl |
| */ |
| constructor(impl) { |
| /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!chrome.mojom.RendererConfigurationRemote>} */ |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| chrome.mojom.RendererConfigurationRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!chrome.mojom.RendererConfigurationRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| chrome.mojom.RendererConfiguration_SetInitialConfiguration_ParamsSpec.$, |
| null, |
| impl.setInitialConfiguration.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 1, |
| chrome.mojom.RendererConfiguration_SetConfiguration_ParamsSpec.$, |
| null, |
| impl.setConfiguration.bind(impl)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| }; |
| |
| /** |
| * @export |
| */ |
| chrome.mojom.RendererConfiguration = class { |
| /** |
| * @return {!string} |
| */ |
| static get $interfaceName() { |
| return "chrome.mojom.RendererConfiguration"; |
| } |
| |
| /** |
| * 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 {!chrome.mojom.RendererConfigurationRemote} |
| * @export |
| */ |
| static getRemote() { |
| let remote = new chrome.mojom.RendererConfigurationRemote; |
| remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); |
| return remote; |
| } |
| }; |
| |
| |
| /** |
| * An object which receives request messages for the RendererConfiguration |
| * 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 |
| */ |
| chrome.mojom.RendererConfigurationCallbackRouter = class { |
| constructor() { |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| chrome.mojom.RendererConfigurationRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!chrome.mojom.RendererConfigurationRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.setInitialConfiguration = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| chrome.mojom.RendererConfiguration_SetInitialConfiguration_ParamsSpec.$, |
| null, |
| this.setInitialConfiguration.createReceiverHandler(false /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.setConfiguration = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 1, |
| chrome.mojom.RendererConfiguration_SetConfiguration_ParamsSpec.$, |
| null, |
| this.setConfiguration.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 |
| */ |
| chrome.mojom.BoundSessionThrottlerParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| chrome.mojom.DynamicParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| chrome.mojom.BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| chrome.mojom.BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| chrome.mojom.RendererConfiguration_SetInitialConfiguration_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| chrome.mojom.RendererConfiguration_SetConfiguration_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| chrome.mojom.BoundSessionThrottlerParamsSpec.$, |
| 'BoundSessionThrottlerParams', |
| [ |
| mojo.internal.StructField( |
| 'domain', 0, |
| 0, |
| mojo.internal.String, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'path', 8, |
| 0, |
| mojo.internal.String, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'cookieExpiryDate', 16, |
| 0, |
| mojoBase.mojom.TimeSpec.$, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 32],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| chrome.mojom.BoundSessionThrottlerParams = class { |
| constructor() { |
| /** @export { !string } */ |
| this.domain; |
| /** @export { !string } */ |
| this.path; |
| /** @export { !mojoBase.mojom.Time } */ |
| this.cookieExpiryDate; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| chrome.mojom.DynamicParamsSpec.$, |
| 'DynamicParams', |
| [ |
| mojo.internal.StructField( |
| 'boundSessionThrottlerParams', 0, |
| 0, |
| chrome.mojom.BoundSessionThrottlerParamsSpec.$, |
| null, |
| true, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'forceSafeSearch', 8, |
| 0, |
| mojo.internal.Bool, |
| true, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'youtubeRestrict', 12, |
| 0, |
| mojo.internal.Int32, |
| 0, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'allowedDomainsForApps', 16, |
| 0, |
| mojo.internal.String, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 32],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| chrome.mojom.DynamicParams = class { |
| constructor() { |
| /** @export { (chrome.mojom.BoundSessionThrottlerParams|undefined) } */ |
| this.boundSessionThrottlerParams; |
| /** @export { !boolean } */ |
| this.forceSafeSearch; |
| /** @export { !number } */ |
| this.youtubeRestrict; |
| /** @export { !string } */ |
| this.allowedDomainsForApps; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| chrome.mojom.BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_ParamsSpec.$, |
| 'BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_Params', |
| [ |
| ], |
| [[0, 8],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| chrome.mojom.BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_Params = class { |
| constructor() { |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| chrome.mojom.BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_ResponseParamsSpec.$, |
| 'BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'resumeTrigger', 0, |
| 0, |
| chrome.mojom.ResumeBlockedRequestsTriggerSpec.$, |
| 0, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| chrome.mojom.BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_ResponseParams = class { |
| constructor() { |
| /** @export { !chrome.mojom.ResumeBlockedRequestsTrigger } */ |
| this.resumeTrigger; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| chrome.mojom.RendererConfiguration_SetInitialConfiguration_ParamsSpec.$, |
| 'RendererConfiguration_SetInitialConfiguration_Params', |
| [ |
| mojo.internal.StructField( |
| 'isIncognitoProcess', 0, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'chromeosListener', 4, |
| 0, |
| mojo.internal.InterfaceRequest(chrome.mojom.ChromeOSListenerPendingReceiver), |
| null, |
| true, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'contentSettingsManager', 8, |
| 0, |
| mojo.internal.InterfaceProxy(contentSettings.mojom.ContentSettingsManagerRemote), |
| null, |
| true, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'boundSessionRequestThrottledHandler', 16, |
| 0, |
| mojo.internal.InterfaceProxy(chrome.mojom.BoundSessionRequestThrottledHandlerRemote), |
| null, |
| true, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 32],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| chrome.mojom.RendererConfiguration_SetInitialConfiguration_Params = class { |
| constructor() { |
| /** @export { !boolean } */ |
| this.isIncognitoProcess; |
| /** @export { (chrome.mojom.ChromeOSListenerPendingReceiver|undefined) } */ |
| this.chromeosListener; |
| /** @export { (contentSettings.mojom.ContentSettingsManagerRemote|undefined) } */ |
| this.contentSettingsManager; |
| /** @export { (chrome.mojom.BoundSessionRequestThrottledHandlerRemote|undefined) } */ |
| this.boundSessionRequestThrottledHandler; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| chrome.mojom.RendererConfiguration_SetConfiguration_ParamsSpec.$, |
| 'RendererConfiguration_SetConfiguration_Params', |
| [ |
| mojo.internal.StructField( |
| 'params', 0, |
| 0, |
| chrome.mojom.DynamicParamsSpec.$, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| chrome.mojom.RendererConfiguration_SetConfiguration_Params = class { |
| constructor() { |
| /** @export { !chrome.mojom.DynamicParams } */ |
| this.params; |
| } |
| }; |
| |