Click or drag to resize

BrowserProcessHandler Class

Version 130.1.90
Inherit from this class to handle events related to browser process callbacks. The methods of this class will be called on the CEF UI thread unless otherwise indicated. .
Inheritance Hierarchy
SystemObject
  CefSharp.HandlerBrowserProcessHandler

Namespace: CefSharp.Handler
Assembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
public class BrowserProcessHandler : IBrowserProcessHandler, 
	IDisposable

The BrowserProcessHandler type exposes the following members.

Constructors
 NameDescription
Public methodBrowserProcessHandlerInitializes a new instance of the BrowserProcessHandler class
Top
Properties
 NameDescription
Public propertyIsDisposed IsDisposed
Top
Methods
 NameDescription
Protected methodDispose Disposes of the resources
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnAlreadyRunningAppRelaunch Implement this method to provide app-specific behavior when an already running app is relaunched with the same CefSettings.RootCachePath value. For example, activate an existing app window or create a new app window. To avoid cache corruption only a single app instance is allowed to run for a given CefSettings.RootCachePath value. On relaunch the app checks a process singleton lock and then forwards the new launch arguments to the already running app process before exiting early. Client apps should therefore check the Cef.Initialize() return value for early exit before proceeding. It's important to note that this method will be called on a CEF UI thread, which by default is not the same as your application UI thread.
Protected methodOnContextInitialized Called on the CEF UI thread immediately after the CEF context has been initialized. You can now access the Global RequestContext through Cef.GetGlobalRequestContext() - this is the first place you can set Preferences (e.g. proxy settings, spell check dictionaries).
Protected methodOnScheduleMessagePumpWork Called from any thread when work has been scheduled for the browser process main (UI) thread. This callback is used in combination with CefSettings. ExternalMessagePump and Cef.DoMessageLoopWork() in cases where the CEF message loop must be integrated into an existing application message loop (see additional comments and warnings on Cef.DoMessageLoopWork). This callback should schedule a Cef.DoMessageLoopWork() call to happen on the main (UI) thread.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also