(default)
Class CefMessageRouterRendererSide
base::RefCountedThreadSafe
|
+--CefMessageRouterRendererSide
in cef_message_router.h
- class CefMessageRouterRendererSide
- extends base::RefCountedThreadSafe
Implements the renderer side of query routing. The methods of this class must
be called on the render process main thread.
~CefMessageRouterRendererSide
protected virtual ~CefMessageRouterRendererSide();
Create
public static CefRefPtr< CefMessageRouterRendererSide > Create( const CefMessageRouterConfig& config );
- Create a new router with the specified configuration.
GetPendingCount
public virtual int GetPendingCount( CefRefPtr< CefBrowser > browser, CefRefPtr< CefV8Context > context )= 0;
- Returns the number of queries currently pending for the specified |browser|
and/or |context|. Either or both values may be empty.
OnContextCreated
public virtual void OnContextCreated( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context )= 0;
- Call from CefRenderProcessHandler::OnContextCreated. Registers the
JavaScripts functions with the new context.
OnContextReleased
public virtual void OnContextReleased( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context )= 0;
- 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
public virtual bool OnProcessMessageReceived( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefProcessId source_process, CefRefPtr< CefProcessMessage > message )= 0;
- Call from CefRenderProcessHandler::OnProcessMessageReceived. Returns true
if the message is handled by this router or false otherwise.
Chromium Embedded Framework (CEF) Copyright © 2016 Marshall A. Greenblatt