| // chrome/common/plugin.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.PluginStatusSpec = { $: mojo.internal.Enum() }; |
| |
| /** |
| * @enum {number} |
| * @export |
| */ |
| chrome.mojom.PluginStatus = { |
| |
| kAllowed: 0, |
| kBlocked: 1, |
| kBlockedByPolicy: 2, |
| kDisabled: 3, |
| kNotFound: 4, |
| kPlayImportantContent: 5, |
| kUnauthorized: 6, |
| MIN_VALUE: 0, |
| MAX_VALUE: 6, |
| }; |
| |
| |
| |
| |
| |
| /** |
| * @implements {mojo.internal.interfaceSupport.PendingReceiver} |
| * @export |
| */ |
| chrome.mojom.PluginHostPendingReceiver = 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.PluginHost.$interfaceName, |
| scope); |
| } |
| }; |
| |
| |
| |
| /** |
| * @export |
| * @implements { chrome.mojom.PluginHostInterface } |
| */ |
| chrome.mojom.PluginHostRemote = class { |
| /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ |
| constructor(handle = undefined) { |
| /** |
| * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!chrome.mojom.PluginHostPendingReceiver>} |
| */ |
| this.proxy = |
| new mojo.internal.interfaceSupport.InterfaceRemoteBase( |
| chrome.mojom.PluginHostPendingReceiver, |
| handle); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!chrome.mojom.PluginHostPendingReceiver>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); |
| } |
| |
| |
| /** |
| * @param { !mojoBase.mojom.FilePath } filePath |
| */ |
| |
| couldNotLoadPlugin( |
| filePath) { |
| this.proxy.sendMessage( |
| 0, |
| chrome.mojom.PluginHost_CouldNotLoadPlugin_ParamsSpec.$, |
| null, |
| [ |
| filePath |
| ]); |
| } |
| |
| |
| /** |
| * @param { !url.mojom.Url } url |
| */ |
| |
| openPDF( |
| url) { |
| this.proxy.sendMessage( |
| 1, |
| chrome.mojom.PluginHost_OpenPDF_ParamsSpec.$, |
| null, |
| [ |
| url |
| ]); |
| } |
| }; |
| |
| /** |
| * An object which receives request messages for the PluginHost |
| * mojom interface. Must be constructed over an object which implements that |
| * interface. |
| * |
| * @export |
| */ |
| chrome.mojom.PluginHostReceiver = class { |
| /** |
| * @param {!chrome.mojom.PluginHostInterface } impl |
| */ |
| constructor(impl) { |
| /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!chrome.mojom.PluginHostRemote>} */ |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| chrome.mojom.PluginHostRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!chrome.mojom.PluginHostRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| chrome.mojom.PluginHost_CouldNotLoadPlugin_ParamsSpec.$, |
| null, |
| impl.couldNotLoadPlugin.bind(impl)); |
| this.helper_internal_.registerHandler( |
| 1, |
| chrome.mojom.PluginHost_OpenPDF_ParamsSpec.$, |
| null, |
| impl.openPDF.bind(impl)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| }; |
| |
| /** |
| * @export |
| */ |
| chrome.mojom.PluginHost = class { |
| /** |
| * @return {!string} |
| */ |
| static get $interfaceName() { |
| return "chrome.mojom.PluginHost"; |
| } |
| |
| /** |
| * 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.PluginHostRemote} |
| * @export |
| */ |
| static getRemote() { |
| let remote = new chrome.mojom.PluginHostRemote; |
| remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); |
| return remote; |
| } |
| }; |
| |
| |
| /** |
| * An object which receives request messages for the PluginHost |
| * 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.PluginHostCallbackRouter = class { |
| constructor() { |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| chrome.mojom.PluginHostRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!chrome.mojom.PluginHostRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.couldNotLoadPlugin = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| chrome.mojom.PluginHost_CouldNotLoadPlugin_ParamsSpec.$, |
| null, |
| this.couldNotLoadPlugin.createReceiverHandler(false /* expectsResponse */)); |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.openPDF = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 1, |
| chrome.mojom.PluginHost_OpenPDF_ParamsSpec.$, |
| null, |
| this.openPDF.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); |
| } |
| }; |
| |
| |
| |
| |
| /** |
| * @implements {mojo.internal.interfaceSupport.PendingReceiver} |
| * @export |
| */ |
| chrome.mojom.PluginAuthHostPendingReceiver = 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.PluginAuthHost.$interfaceName, |
| scope); |
| } |
| }; |
| |
| |
| |
| /** |
| * @export |
| * @implements { chrome.mojom.PluginAuthHostInterface } |
| */ |
| chrome.mojom.PluginAuthHostRemote = class { |
| /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ |
| constructor(handle = undefined) { |
| /** |
| * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!chrome.mojom.PluginAuthHostPendingReceiver>} |
| */ |
| this.proxy = |
| new mojo.internal.interfaceSupport.InterfaceRemoteBase( |
| chrome.mojom.PluginAuthHostPendingReceiver, |
| handle); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!chrome.mojom.PluginAuthHostPendingReceiver>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); |
| } |
| |
| |
| /** |
| * @param { !mojoBase.mojom.String16 } name |
| * @param { !string } groupId |
| */ |
| |
| blockedUnauthorizedPlugin( |
| name, |
| groupId) { |
| this.proxy.sendMessage( |
| 0, |
| chrome.mojom.PluginAuthHost_BlockedUnauthorizedPlugin_ParamsSpec.$, |
| null, |
| [ |
| name, |
| groupId |
| ]); |
| } |
| }; |
| |
| /** |
| * An object which receives request messages for the PluginAuthHost |
| * mojom interface. Must be constructed over an object which implements that |
| * interface. |
| * |
| * @export |
| */ |
| chrome.mojom.PluginAuthHostReceiver = class { |
| /** |
| * @param {!chrome.mojom.PluginAuthHostInterface } impl |
| */ |
| constructor(impl) { |
| /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!chrome.mojom.PluginAuthHostRemote>} */ |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| chrome.mojom.PluginAuthHostRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!chrome.mojom.PluginAuthHostRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| chrome.mojom.PluginAuthHost_BlockedUnauthorizedPlugin_ParamsSpec.$, |
| null, |
| impl.blockedUnauthorizedPlugin.bind(impl)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| }; |
| |
| /** |
| * @export |
| */ |
| chrome.mojom.PluginAuthHost = class { |
| /** |
| * @return {!string} |
| */ |
| static get $interfaceName() { |
| return "chrome.mojom.PluginAuthHost"; |
| } |
| |
| /** |
| * 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.PluginAuthHostRemote} |
| * @export |
| */ |
| static getRemote() { |
| let remote = new chrome.mojom.PluginAuthHostRemote; |
| remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); |
| return remote; |
| } |
| }; |
| |
| |
| /** |
| * An object which receives request messages for the PluginAuthHost |
| * 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.PluginAuthHostCallbackRouter = class { |
| constructor() { |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| chrome.mojom.PluginAuthHostRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!chrome.mojom.PluginAuthHostRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.blockedUnauthorizedPlugin = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| chrome.mojom.PluginAuthHost_BlockedUnauthorizedPlugin_ParamsSpec.$, |
| null, |
| this.blockedUnauthorizedPlugin.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); |
| } |
| }; |
| |
| |
| |
| |
| /** |
| * @implements {mojo.internal.interfaceSupport.PendingReceiver} |
| * @export |
| */ |
| chrome.mojom.PluginInfoHostPendingReceiver = 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.PluginInfoHost.$interfaceName, |
| scope); |
| } |
| }; |
| |
| |
| |
| /** |
| * @export |
| * @implements { chrome.mojom.PluginInfoHostInterface } |
| */ |
| chrome.mojom.PluginInfoHostRemote = class { |
| /** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */ |
| constructor(handle = undefined) { |
| /** |
| * @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!chrome.mojom.PluginInfoHostPendingReceiver>} |
| */ |
| this.proxy = |
| new mojo.internal.interfaceSupport.InterfaceRemoteBase( |
| chrome.mojom.PluginInfoHostPendingReceiver, |
| handle); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!chrome.mojom.PluginInfoHostPendingReceiver>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy); |
| |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.proxy.getConnectionErrorEventRouter(); |
| } |
| |
| |
| /** |
| * @param { !url.mojom.Url } url |
| * @param { !url.mojom.Origin } origin |
| * @param { !string } mimeType |
| * @return {!Promise<{ |
| pluginInfo: !chrome.mojom.PluginInfo, |
| * }>} |
| */ |
| |
| getPluginInfo( |
| url, |
| origin, |
| mimeType) { |
| return this.proxy.sendMessage( |
| 0, |
| chrome.mojom.PluginInfoHost_GetPluginInfo_ParamsSpec.$, |
| chrome.mojom.PluginInfoHost_GetPluginInfo_ResponseParamsSpec.$, |
| [ |
| url, |
| origin, |
| mimeType |
| ]); |
| } |
| }; |
| |
| /** |
| * An object which receives request messages for the PluginInfoHost |
| * mojom interface. Must be constructed over an object which implements that |
| * interface. |
| * |
| * @export |
| */ |
| chrome.mojom.PluginInfoHostReceiver = class { |
| /** |
| * @param {!chrome.mojom.PluginInfoHostInterface } impl |
| */ |
| constructor(impl) { |
| /** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!chrome.mojom.PluginInfoHostRemote>} */ |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| chrome.mojom.PluginInfoHostRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!chrome.mojom.PluginInfoHostRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| chrome.mojom.PluginInfoHost_GetPluginInfo_ParamsSpec.$, |
| chrome.mojom.PluginInfoHost_GetPluginInfo_ResponseParamsSpec.$, |
| impl.getPluginInfo.bind(impl)); |
| /** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */ |
| this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter(); |
| } |
| }; |
| |
| /** |
| * @export |
| */ |
| chrome.mojom.PluginInfoHost = class { |
| /** |
| * @return {!string} |
| */ |
| static get $interfaceName() { |
| return "chrome.mojom.PluginInfoHost"; |
| } |
| |
| /** |
| * 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.PluginInfoHostRemote} |
| * @export |
| */ |
| static getRemote() { |
| let remote = new chrome.mojom.PluginInfoHostRemote; |
| remote.$.bindNewPipeAndPassReceiver().bindInBrowser(); |
| return remote; |
| } |
| }; |
| |
| |
| /** |
| * An object which receives request messages for the PluginInfoHost |
| * 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.PluginInfoHostCallbackRouter = class { |
| constructor() { |
| this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal( |
| chrome.mojom.PluginInfoHostRemote); |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!chrome.mojom.PluginInfoHostRemote>} |
| */ |
| this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_); |
| |
| this.router_ = new mojo.internal.interfaceSupport.CallbackRouter; |
| |
| /** |
| * @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver} |
| */ |
| this.getPluginInfo = |
| new mojo.internal.interfaceSupport.InterfaceCallbackReceiver( |
| this.router_); |
| |
| this.helper_internal_.registerHandler( |
| 0, |
| chrome.mojom.PluginInfoHost_GetPluginInfo_ParamsSpec.$, |
| chrome.mojom.PluginInfoHost_GetPluginInfo_ResponseParamsSpec.$, |
| this.getPluginInfo.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); |
| } |
| }; |
| |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| chrome.mojom.PluginInfoSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| chrome.mojom.PluginParamSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| chrome.mojom.PluginHost_CouldNotLoadPlugin_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| chrome.mojom.PluginHost_OpenPDF_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| chrome.mojom.PluginAuthHost_BlockedUnauthorizedPlugin_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| chrome.mojom.PluginInfoHost_GetPluginInfo_ParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| chrome.mojom.PluginInfoHost_GetPluginInfo_ResponseParamsSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| chrome.mojom.PluginInfoSpec.$, |
| 'PluginInfo', |
| [ |
| mojo.internal.StructField( |
| 'status', 0, |
| 0, |
| chrome.mojom.PluginStatusSpec.$, |
| 0, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'plugin', 8, |
| 0, |
| content.mojom.WebPluginInfoSpec.$, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'actualMimeType', 16, |
| 0, |
| mojo.internal.String, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'groupIdentifier', 24, |
| 0, |
| mojo.internal.String, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'groupName', 32, |
| 0, |
| mojoBase.mojom.String16Spec.$, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 48],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| chrome.mojom.PluginInfo = class { |
| constructor() { |
| /** @export { !chrome.mojom.PluginStatus } */ |
| this.status; |
| /** @export { !content.mojom.WebPluginInfo } */ |
| this.plugin; |
| /** @export { !string } */ |
| this.actualMimeType; |
| /** @export { !string } */ |
| this.groupIdentifier; |
| /** @export { !mojoBase.mojom.String16 } */ |
| this.groupName; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| chrome.mojom.PluginParamSpec.$, |
| 'PluginParam', |
| [ |
| mojo.internal.StructField( |
| 'name', 0, |
| 0, |
| mojoBase.mojom.String16Spec.$, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'value', 8, |
| 0, |
| mojoBase.mojom.String16Spec.$, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 24],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| chrome.mojom.PluginParam = class { |
| constructor() { |
| /** @export { !mojoBase.mojom.String16 } */ |
| this.name; |
| /** @export { !mojoBase.mojom.String16 } */ |
| this.value; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| chrome.mojom.PluginHost_CouldNotLoadPlugin_ParamsSpec.$, |
| 'PluginHost_CouldNotLoadPlugin_Params', |
| [ |
| mojo.internal.StructField( |
| 'filePath', 0, |
| 0, |
| mojoBase.mojom.FilePathSpec.$, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| chrome.mojom.PluginHost_CouldNotLoadPlugin_Params = class { |
| constructor() { |
| /** @export { !mojoBase.mojom.FilePath } */ |
| this.filePath; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| chrome.mojom.PluginHost_OpenPDF_ParamsSpec.$, |
| 'PluginHost_OpenPDF_Params', |
| [ |
| mojo.internal.StructField( |
| 'url', 0, |
| 0, |
| url.mojom.UrlSpec.$, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| chrome.mojom.PluginHost_OpenPDF_Params = class { |
| constructor() { |
| /** @export { !url.mojom.Url } */ |
| this.url; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| chrome.mojom.PluginAuthHost_BlockedUnauthorizedPlugin_ParamsSpec.$, |
| 'PluginAuthHost_BlockedUnauthorizedPlugin_Params', |
| [ |
| mojo.internal.StructField( |
| 'name', 0, |
| 0, |
| mojoBase.mojom.String16Spec.$, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'groupId', 8, |
| 0, |
| mojo.internal.String, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 24],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| chrome.mojom.PluginAuthHost_BlockedUnauthorizedPlugin_Params = class { |
| constructor() { |
| /** @export { !mojoBase.mojom.String16 } */ |
| this.name; |
| /** @export { !string } */ |
| this.groupId; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| chrome.mojom.PluginInfoHost_GetPluginInfo_ParamsSpec.$, |
| 'PluginInfoHost_GetPluginInfo_Params', |
| [ |
| mojo.internal.StructField( |
| 'url', 0, |
| 0, |
| url.mojom.UrlSpec.$, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'origin', 8, |
| 0, |
| url.mojom.OriginSpec.$, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'mimeType', 16, |
| 0, |
| mojo.internal.String, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 32],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| chrome.mojom.PluginInfoHost_GetPluginInfo_Params = class { |
| constructor() { |
| /** @export { !url.mojom.Url } */ |
| this.url; |
| /** @export { !url.mojom.Origin } */ |
| this.origin; |
| /** @export { !string } */ |
| this.mimeType; |
| } |
| }; |
| |
| |
| |
| mojo.internal.Struct( |
| chrome.mojom.PluginInfoHost_GetPluginInfo_ResponseParamsSpec.$, |
| 'PluginInfoHost_GetPluginInfo_ResponseParams', |
| [ |
| mojo.internal.StructField( |
| 'pluginInfo', 0, |
| 0, |
| chrome.mojom.PluginInfoSpec.$, |
| null, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| chrome.mojom.PluginInfoHost_GetPluginInfo_ResponseParams = class { |
| constructor() { |
| /** @export { !chrome.mojom.PluginInfo } */ |
| this.pluginInfo; |
| } |
| }; |
| |