Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(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.


Constructor Summary
protected  virtual ~CefMessageRouterRendererSide()
          
 
Method Summary
 static CefRefPtr< CefMessageRouterRendererSide > Create( const CefMessageRouterConfig& config )
          Create a new router with the specified configuration.
 virtual int GetPendingCount( CefRefPtr< CefBrowser > browser, CefRefPtr< CefV8Context > context )= 0
          Returns the number of queries currently pending for the specified |browser| and/or |context|.
 virtual void OnContextCreated( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context )= 0
          Call from CefRenderProcessHandler::OnContextCreated.
 virtual void OnContextReleased( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context )= 0
          Call from CefRenderProcessHandler::OnContextReleased.
 virtual bool OnProcessMessageReceived( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefProcessId source_process, CefRefPtr< CefProcessMessage > message )= 0
          Call from CefRenderProcessHandler::OnProcessMessageReceived.
 

Constructor Detail

~CefMessageRouterRendererSide

protected virtual ~CefMessageRouterRendererSide();


Method Detail

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.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2016 Marshall A. Greenblatt