Click or drag to resize
CfxRequestContextHandler Class

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

Implement this structure to provide handler implementations. The handler instance will not be released until all objects related to the context have been destroyed.
Inheritance Hierarchy

Namespace: Chromium
Assembly: ChromiumFX (in ChromiumFX.dll)
public class CfxRequestContextHandler : CfxClientBase

The CfxRequestContextHandler type exposes the following members.

Public methodCfxRequestContextHandler
Initializes a new instance of the CfxRequestContextHandler class
Public propertyCallbacksDisabled
When true, all CEF callback events are disabled for this handler. Incoming callbacks will return default values to CEF.
(Inherited from CfxClientBase.)
Public propertyNativePtr
Provides access to the underlying native cef struct. This is a refcounted client struct derived from cef_base_t. Add a ref in order to keep it alive when this managed object go out of scope.
(Inherited from CfxClientBase.)
Public methodRetrieveCookieManager
Retrieves the CfxCookieManager provided by the event handler attached to the GetCookieManager event, if any. Returns null if no event handler is attached.
Public eventGetCookieManager
Called on the browser process IO thread to retrieve the cookie manager. If this function returns NULL the default cookie manager retrievable via CfxRequestContext.GetDefaultCookieManager() will be used.
Public eventOnBeforePluginLoad
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.
See also the original CEF documentation in cef/include/capi/cef_request_context_handler_capi.h.
See Also