Click or drag to resize
CfxOnBeforePluginLoadEventArgs Class

[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.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    ChromiumCfxEventArgs
      Chromium.EventCfxOnBeforePluginLoadEventArgs

Namespace: Chromium.Event
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public class CfxOnBeforePluginLoadEventArgs : CfxEventArgs

The CfxOnBeforePluginLoadEventArgs type exposes the following members.

Properties
  NameDescription
Public propertyIsMainFrame
Get the IsMainFrame parameter for the OnBeforePluginLoad callback.
Public propertyMimeType
Get the MimeType parameter for the OnBeforePluginLoad callback.
Public propertyPluginInfo
Get the PluginInfo parameter for the OnBeforePluginLoad callback.
Public propertyPluginPolicy
Get or set the PluginPolicy parameter for the OnBeforePluginLoad callback.
Public propertyPluginUrl
Get the PluginUrl parameter for the OnBeforePluginLoad callback.
Public propertyTopOriginUrl
Get the TopOriginUrl parameter for the OnBeforePluginLoad callback.
Top
Methods
  NameDescription
Public methodSetReturnValue
Set the return value for the OnBeforePluginLoad callback. Calling SetReturnValue() more then once per callback or from different event handlers will cause an exception to be thrown.
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_request_context_handler_capi.h.
See Also