[This is preliminary documentation and is subject to change.]
The CefMessageRouterBrowserSide type exposes the following members.Methods
Name | Description | |
---|---|---|
AddHandler |
Add a new query handler. If |first| is true it will be added as the first
handler, otherwise it will be added as the last handler. Returns true if
the handler is added successfully or false if the handler has already been
added. Must be called on the browser process UI thread. The Handler object
must either outlive the router or be removed before deletion.
| |
CancelPending |
Cancel all pending queries associated with either |browser| or |handler|.
If both |browser| and |handler| are NULL all pending queries will be
canceled. Handler::OnQueryCanceled will be called and the associated
JavaScript onFailure callback will be executed in all cases with an error
code of -1.
| |
Create |
Create a new router with the specified configuration.
| |
Equals | (Inherited from Object.) | |
Finalize | (Overrides Object Finalize .) | |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetPendingCount |
Returns the number of queries currently pending for the specified |browser|
and/or |handler|. Either or both values may be empty. Must be called on the
browser process UI thread.
| |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
OnBeforeBrowse |
Call from CefRequestHandler::OnBeforeBrowse only if the navigation is
allowed to proceed. If |frame| is the main frame then any pending queries
associated with |browser| will be canceled and Handler::OnQueryCanceled
will be called. No JavaScript callbacks will be executed since this
indicates destruction of the context.
| |
OnBeforeClose |
Call from CefLifeSpanHandler::OnBeforeClose. Any pending queries associated
with |browser| will be canceled and Handler::OnQueryCanceled will be called.
No JavaScript callbacks will be executed since this indicates destruction
of the browser.
| |
OnProcessMessageReceived |
Call from CefClient::OnProcessMessageReceived. Returns true if the message
is handled by this router or false otherwise.
| |
OnRenderProcessTerminated |
Call from CefRequestHandler::OnRenderProcessTerminated. Any pending queries
associated with |browser| will be canceled and Handler::OnQueryCanceled
will be called. No JavaScript callbacks will be executed since this
indicates destruction of the context.
| |
RemoveHandler |
Remove an existing query handler. Any pending queries associated with the
handler will be canceled. Handler::OnQueryCanceled will be called and the
associated JavaScript onFailure callback will be executed with an error
code of -1. Returns true if the handler is removed successfully or false
if the handler is not found. Must be called on the browser process UI
thread.
| |
ToString | (Inherited from Object.) |
See Also