Chromium Embedded Framework (CEF)  128.4.2+g5c235a2+chromium-128.0.6613.18
CefRenderProcessHandler Class Reference

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

#include "include/cef_render_process_handler.h"

Inheritance diagram for CefRenderProcessHandler:
CefBaseRefCounted

Public Types

typedef cef_navigation_type_t NavigationType
 

Public Member Functions

virtual void OnWebKitInitialized ()
 Called after WebKit has been initialized. More...
 
virtual void OnBrowserCreated (CefRefPtr< CefBrowser > browser, CefRefPtr< CefDictionaryValue > extra_info)
 Called after a browser has been created. More...
 
virtual void OnBrowserDestroyed (CefRefPtr< CefBrowser > browser)
 Called before a browser is destroyed. More...
 
virtual CefRefPtr< CefLoadHandlerGetLoadHandler ()
 Return the handler for browser load status events. More...
 
virtual void OnContextCreated (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context)
 Called immediately after the V8 context for a frame has been created. More...
 
virtual void OnContextReleased (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context)
 Called immediately before the V8 context for a frame is released. More...
 
virtual void OnUncaughtException (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context, CefRefPtr< CefV8Exception > exception, CefRefPtr< CefV8StackTrace > stackTrace)
 Called for global uncaught exceptions in a frame. More...
 
virtual void OnFocusedNodeChanged (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefDOMNode > node)
 Called when a new node in the the browser gets focus. More...
 
virtual bool OnProcessMessageReceived (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefProcessId source_process, CefRefPtr< CefProcessMessage > message)
 Called when a new message is received from a different 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

Class used to implement render process callbacks.

The methods of this class will be called on the render process main thread (TID_RENDERER) unless otherwise indicated.

Member Typedef Documentation

◆ NavigationType

Member Function Documentation

◆ GetLoadHandler()

virtual CefRefPtr<CefLoadHandler> CefRenderProcessHandler::GetLoadHandler ( )
inlinevirtual

Return the handler for browser load status events.

◆ OnBrowserCreated()

virtual void CefRenderProcessHandler::OnBrowserCreated ( CefRefPtr< CefBrowser browser,
CefRefPtr< CefDictionaryValue extra_info 
)
inlinevirtual

Called after a browser has been created.

When browsing cross-origin a new browser will be created before the old browser with the same identifier is destroyed. |extra_info| is an optional read-only value originating from CefBrowserHost::CreateBrowser(), CefBrowserHost::CreateBrowserSync(), CefLifeSpanHandler::OnBeforePopup() or CefBrowserView::CreateBrowserView().

◆ OnBrowserDestroyed()

virtual void CefRenderProcessHandler::OnBrowserDestroyed ( CefRefPtr< CefBrowser browser)
inlinevirtual

Called before a browser is destroyed.

◆ OnContextCreated()

virtual void CefRenderProcessHandler::OnContextCreated ( CefRefPtr< CefBrowser browser,
CefRefPtr< CefFrame frame,
CefRefPtr< CefV8Context context 
)
inlinevirtual

Called immediately after the V8 context for a frame has been created.

To retrieve the JavaScript 'window' object use the CefV8Context::GetGlobal() method. V8 handles can only be accessed from the thread on which they are created. A task runner for posting tasks on the associated thread can be retrieved via the CefV8Context::GetTaskRunner() method.

◆ OnContextReleased()

virtual void CefRenderProcessHandler::OnContextReleased ( CefRefPtr< CefBrowser browser,
CefRefPtr< CefFrame frame,
CefRefPtr< CefV8Context context 
)
inlinevirtual

Called immediately before the V8 context for a frame is released.

No references to the context should be kept after this method is called.

◆ OnFocusedNodeChanged()

virtual void CefRenderProcessHandler::OnFocusedNodeChanged ( CefRefPtr< CefBrowser browser,
CefRefPtr< CefFrame frame,
CefRefPtr< CefDOMNode node 
)
inlinevirtual

Called when a new node in the the browser gets focus.

The |node| value may be empty if no specific node has gained focus. The node object passed to this method represents a snapshot of the DOM at the time this method is executed. DOM objects are only valid for the scope of this method. Do not keep references to or attempt to access any DOM objects outside the scope of this method.

◆ OnProcessMessageReceived()

virtual bool CefRenderProcessHandler::OnProcessMessageReceived ( CefRefPtr< CefBrowser browser,
CefRefPtr< CefFrame frame,
CefProcessId  source_process,
CefRefPtr< CefProcessMessage message 
)
inlinevirtual

Called when a new message is received from a different process.

Return true if the message was handled or false otherwise. It is safe to keep a reference to |message| outside of this callback.

◆ OnUncaughtException()

virtual void CefRenderProcessHandler::OnUncaughtException ( CefRefPtr< CefBrowser browser,
CefRefPtr< CefFrame frame,
CefRefPtr< CefV8Context context,
CefRefPtr< CefV8Exception exception,
CefRefPtr< CefV8StackTrace stackTrace 
)
inlinevirtual

Called for global uncaught exceptions in a frame.

Execution of this callback is disabled by default. To enable set cef_settings_t.uncaught_exception_stack_size > 0.

◆ OnWebKitInitialized()

virtual void CefRenderProcessHandler::OnWebKitInitialized ( )
inlinevirtual

Called after WebKit has been initialized.


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