Chromium Embedded Framework (CEF)  106.0.15+gbb70d04+chromium-106.0.5249.12
CefBrowserProcessHandler Class Reference

Class used to implement browser process callbacks. More...

#include "include/cef_browser_process_handler.h"

Inheritance diagram for CefBrowserProcessHandler:
CefBaseRefCounted

Public Member Functions

virtual void OnContextInitialized ()
 Called on the browser process UI thread immediately after the CEF context has been initialized. More...
 
virtual void OnBeforeChildProcessLaunch (CefRefPtr< CefCommandLine > command_line)
 Called before a child process is launched. More...
 
virtual void OnScheduleMessagePumpWork (int64 delay_ms)
 Called from any thread when work has been scheduled for the browser process main (UI) thread. More...
 
virtual CefRefPtr< CefClientGetDefaultClient ()
 Return the default client for use with a newly created browser window. More...
 
- Public Member Functions inherited from CefBaseRefCounted
virtual void AddRef () const =0
 Called to increment the reference count for the object. More...
 
virtual bool Release () const =0
 Called to decrement the reference count for the object. More...
 
virtual bool HasOneRef () const =0
 Returns true if the reference count is 1. More...
 
virtual bool HasAtLeastOneRef () const =0
 Returns true if the reference count is at least 1. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CefBaseRefCounted
virtual ~CefBaseRefCounted ()
 

Detailed Description

Class used to implement browser process callbacks.

The methods of this class will be called on the browser process main thread unless otherwise indicated.

Member Function Documentation

◆ GetDefaultClient()

virtual CefRefPtr<CefClient> CefBrowserProcessHandler::GetDefaultClient ( )
inlinevirtual

Return the default client for use with a newly created browser window.

If null is returned the browser will be unmanaged (no callbacks will be executed for that browser) and application shutdown will be blocked until the browser window is closed manually. This method is currently only used with the chrome runtime.

◆ OnBeforeChildProcessLaunch()

virtual void CefBrowserProcessHandler::OnBeforeChildProcessLaunch ( CefRefPtr< CefCommandLine command_line)
inlinevirtual

Called before a child process is launched.

Will be called on the browser process UI thread when launching a render process and on the browser process IO thread when launching a GPU process. Provides an opportunity to modify the child process command line. Do not keep a reference to |command_line| outside of this method.

◆ OnContextInitialized()

virtual void CefBrowserProcessHandler::OnContextInitialized ( )
inlinevirtual

Called on the browser process UI thread immediately after the CEF context has been initialized.

◆ OnScheduleMessagePumpWork()

virtual void CefBrowserProcessHandler::OnScheduleMessagePumpWork ( int64  delay_ms)
inlinevirtual

Called from any thread when work has been scheduled for the browser process main (UI) thread.

This callback is used in combination with cef_settings_t.external_message_pump and CefDoMessageLoopWork() in cases where the CEF message loop must be integrated into an existing application message loop (see additional comments and warnings on CefDoMessageLoopWork). This callback should schedule a CefDoMessageLoopWork() call to happen on the main (UI) thread. |delay_ms| is the requested delay in milliseconds. If |delay_ms| is <= 0 then the call should happen reasonably soon. If |delay_ms| is > 0 then the call should be scheduled to happen after the specified delay and any currently pending scheduled call should be cancelled.


The documentation for this class was generated from the following file: