Chromium Embedded Framework (CEF)  114.2.1+gd70a0a8+chromium-114.0.5735.45
CefApp Class Reference

Implement this interface to provide handler implementations. More...

#include "include/cef_app.h"

Inheritance diagram for CefApp:
CefBaseRefCounted

Public Member Functions

virtual void OnBeforeCommandLineProcessing (const CefString &process_type, CefRefPtr< CefCommandLine > command_line)
 Provides an opportunity to view and/or modify command-line arguments before processing by CEF and Chromium. More...
 
virtual void OnRegisterCustomSchemes (CefRawPtr< CefSchemeRegistrar > registrar)
 Provides an opportunity to register custom schemes. More...
 
virtual CefRefPtr< CefResourceBundleHandlerGetResourceBundleHandler ()
 Return the handler for resource bundle events. More...
 
virtual CefRefPtr< CefBrowserProcessHandlerGetBrowserProcessHandler ()
 Return the handler for functionality specific to the browser process. More...
 
virtual CefRefPtr< CefRenderProcessHandlerGetRenderProcessHandler ()
 Return the handler for functionality specific to the render process. 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

Implement this interface to provide handler implementations.

Methods will be called by the process and/or thread indicated.

Member Function Documentation

◆ GetBrowserProcessHandler()

virtual CefRefPtr<CefBrowserProcessHandler> CefApp::GetBrowserProcessHandler ( )
inlinevirtual

Return the handler for functionality specific to the browser process.

This method is called on multiple threads in the browser process.

◆ GetRenderProcessHandler()

virtual CefRefPtr<CefRenderProcessHandler> CefApp::GetRenderProcessHandler ( )
inlinevirtual

Return the handler for functionality specific to the render process.

This method is called on the render process main thread.

◆ GetResourceBundleHandler()

virtual CefRefPtr<CefResourceBundleHandler> CefApp::GetResourceBundleHandler ( )
inlinevirtual

Return the handler for resource bundle events.

If cef_settings_t.pack_loading_disabled is true a handler must be returned. If no handler is returned resources will be loaded from pack files. This method is called by the browser and render processes on multiple threads.

◆ OnBeforeCommandLineProcessing()

virtual void CefApp::OnBeforeCommandLineProcessing ( const CefString process_type,
CefRefPtr< CefCommandLine command_line 
)
inlinevirtual

Provides an opportunity to view and/or modify command-line arguments before processing by CEF and Chromium.

The |process_type| value will be empty for the browser process. Do not keep a reference to the CefCommandLine object passed to this method. The cef_settings_t.command_line_args_disabled value can be used to start with an empty command-line object. Any values specified in CefSettings that equate to command-line arguments will be set before this method is called. Be cautious when using this method to modify command-line arguments for non-browser processes as this may result in undefined behavior including crashes.

◆ OnRegisterCustomSchemes()

virtual void CefApp::OnRegisterCustomSchemes ( CefRawPtr< CefSchemeRegistrar registrar)
inlinevirtual

Provides an opportunity to register custom schemes.

Do not keep a reference to the |registrar| object. This method is called on the main thread for each process and the registered schemes should be the same across all processes.


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