Click or drag to resize
CfxOnBeforePluginLoadEventHandler Delegate

[This is preliminary documentation and is subject to change.]

Called on multiple browser process threads before a plugin instance is loaded. |MimeType| is the mime type of the plugin that will be loaded. |PluginUrl| is the content URL that the plugin will load and may be NULL. |IsMainFrame| will be true (1) if the plugin is being loaded in the main (top-level) frame, |TopOriginUrl| is the URL for the top-level frame that contains the plugin when loading a specific plugin instance or NULL when building the initial list of enabled plugins for 'navigator.plugins' JavaScript state. |PluginInfo| includes additional information about the plugin that will be loaded. |PluginPolicy| is the recommended policy. Modify |PluginPolicy| and return true (1) to change the policy. Return false (0) to use the recommended policy. The default plugin policy can be set at runtime using the `--plugin-policy=[allow|Detect|block]` command- line flag. Decisions to mark a plugin as disabled by setting |PluginPolicy| to PLUGIN_POLICY_DISABLED may be cached when |TopOriginUrl| is NULL. To purge the plugin list cache and potentially trigger new calls to this function call CfxRequestContext.PurgePluginListCache.

Namespace: Chromium.Event
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public delegate void CfxOnBeforePluginLoadEventHandler(
	Object sender,
	CfxOnBeforePluginLoadEventArgs e
)

Parameters

sender
Type: SystemObject
e
Type: Chromium.EventCfxOnBeforePluginLoadEventArgs
Remarks
See also the original CEF documentation in cef/include/capi/cef_request_context_handler_capi.h.
See Also