Chromium Embedded Framework (CEF)  122.1.5+gf09a9bc+chromium-122.0.6261.29
CefMessageRouterRendererSide Class Referenceabstract

Implements the renderer side of query routing. More...

#include "include/wrapper/cef_message_router.h"

Inheritance diagram for CefMessageRouterRendererSide:
base::RefCountedThreadSafe< CefMessageRouterRendererSide >

Public Member Functions

virtual int GetPendingCount (CefRefPtr< CefBrowser > browser, CefRefPtr< CefV8Context > context)=0
 Returns the number of queries currently pending for the specified |browser| and/or |context|. More...
 
virtual void OnContextCreated (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context)=0
 Call from CefRenderProcessHandler::OnContextCreated. More...
 
virtual void OnContextReleased (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context)=0
 Call from CefRenderProcessHandler::OnContextReleased. More...
 
virtual bool OnProcessMessageReceived (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefProcessId source_process, CefRefPtr< CefProcessMessage > message)=0
 Call from CefRenderProcessHandler::OnProcessMessageReceived. More...
 
- Public Member Functions inherited from base::RefCountedThreadSafe< CefMessageRouterRendererSide >
 RefCountedThreadSafe ()
 
 RefCountedThreadSafe (const RefCountedThreadSafe &)=delete
 
RefCountedThreadSafeoperator= (const RefCountedThreadSafe &)=delete
 
void AddRef () const
 
void Release () const
 

Static Public Member Functions

static CefRefPtr< CefMessageRouterRendererSideCreate (const CefMessageRouterConfig &config)
 Create a new router with the specified configuration. More...
 

Protected Member Functions

virtual ~CefMessageRouterRendererSide ()=default
 
- Protected Member Functions inherited from base::RefCountedThreadSafe< CefMessageRouterRendererSide >
 ~RefCountedThreadSafe ()=default
 

Friends

class base::RefCountedThreadSafe< CefMessageRouterRendererSide >
 

Additional Inherited Members

- Static Public Attributes inherited from base::RefCountedThreadSafe< CefMessageRouterRendererSide >
static constexpr cef_subtle::StartRefCountFromZeroTag kRefCountPreference
 

Detailed Description

Implements the renderer side of query routing.

The methods of this class must be called on the render process main thread.

Constructor & Destructor Documentation

◆ ~CefMessageRouterRendererSide()

virtual CefMessageRouterRendererSide::~CefMessageRouterRendererSide ( )
protectedvirtualdefault

Member Function Documentation

◆ Create()

static CefRefPtr<CefMessageRouterRendererSide> CefMessageRouterRendererSide::Create ( const CefMessageRouterConfig config)
static

Create a new router with the specified configuration.

◆ GetPendingCount()

virtual int CefMessageRouterRendererSide::GetPendingCount ( CefRefPtr< CefBrowser browser,
CefRefPtr< CefV8Context context 
)
pure virtual

Returns the number of queries currently pending for the specified |browser| and/or |context|.

Either or both values may be empty.

◆ OnContextCreated()

virtual void CefMessageRouterRendererSide::OnContextCreated ( CefRefPtr< CefBrowser browser,
CefRefPtr< CefFrame frame,
CefRefPtr< CefV8Context context 
)
pure virtual

Call from CefRenderProcessHandler::OnContextCreated.

Registers the JavaScripts functions with the new context.

◆ OnContextReleased()

virtual void CefMessageRouterRendererSide::OnContextReleased ( CefRefPtr< CefBrowser browser,
CefRefPtr< CefFrame frame,
CefRefPtr< CefV8Context context 
)
pure virtual

Call from CefRenderProcessHandler::OnContextReleased.

Any pending queries associated with the released context will be canceled and Handler::OnQueryCanceled will be called in the browser process.

◆ OnProcessMessageReceived()

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

Call from CefRenderProcessHandler::OnProcessMessageReceived.

Returns true if the message is handled by this router or false otherwise.

Friends And Related Function Documentation

◆ base::RefCountedThreadSafe< CefMessageRouterRendererSide >


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