Click or drag to resize
CfxLoadHandler Class

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

Implement this structure to handle events related to browser load status. The functions of this structure will be called on the browser process UI thread or render process main thread (TID_RENDERER).
Inheritance Hierarchy
SystemObject
  ChromiumCfxObject
    ChromiumCfxBase
      ChromiumCfxClientBase
        ChromiumCfxLoadHandler

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

The CfxLoadHandler type exposes the following members.

Constructors
  NameDescription
Public methodCfxLoadHandler
Initializes a new instance of the CfxLoadHandler class
Top
Properties
  NameDescription
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.)
Top
Events
  NameDescription
Public eventOnLoadEnd
Called when the browser is done loading a frame. The |Frame| value will never be NULL -- call the is_main() function to check if this frame is the main frame. Multiple frames may be loading at the same time. Sub-frames may start or continue loading after the main frame load has ended. This function will always be called for all frames irrespective of whether the request completes successfully. For notification of overall browser load status use OnLoadingStateChange instead.
Public eventOnLoadError
Called when the resource load for a navigation fails or is canceled. |ErrorCode| is the error code number, |ErrorText| is the error text and |FailedUrl| is the URL that failed to load. See net\base\net_error_list.h for complete descriptions of the error codes.
Public eventOnLoadingStateChange
Called when the loading state has changed. This callback will be executed twice -- once when loading is initiated either programmatically or by user action, and once when loading is terminated due to completion, cancellation of failure. It will be called before any calls to OnLoadStart and after all calls to OnLoadError and/or OnLoadEnd.
Public eventOnLoadStart
Called when the browser begins loading a frame. The |Frame| value will never be NULL -- call the is_main() function to check if this frame is the main frame. |TransitionType| provides information about the source of the navigation and an accurate value is only available in the browser process. Multiple frames may be loading at the same time. Sub-frames may start or continue loading after the main frame load has ended. This function will always be called for all frames irrespective of whether the request completes successfully. For notification of overall browser load status use OnLoadingStateChange instead.
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_load_handler_capi.h.
See Also