Chromium Embedded Framework (CEF)
131.2.1+ge081753+chromium-131.0.6778.13
|
Callback associated with a single pending asynchronous query. More...
#include "include/wrapper/cef_message_router.h"
Public Member Functions | |
virtual void | Success (const CefString &response)=0 |
Notify the associated JavaScript onSuccess callback that the query has completed successfully with the specified string |response|. More... | |
virtual void | Success (const void *data, size_t size)=0 |
Notify the associated JavaScript onSuccess callback that the query has completed successfully with binary data. More... | |
virtual void | Failure (int error_code, const CefString &error_message)=0 |
Notify the associated JavaScript onFailure callback that the query has failed with the specified |error_code| and |error_message|. 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 () |
Callback associated with a single pending asynchronous query.
Execute the Success or Failure method to send an asynchronous response to the associated JavaScript handler. It is a runtime error to destroy a Callback object associated with an uncanceled query without first executing one of the callback methods. The methods of this class may be called on any browser process thread.
|
pure virtual |
Notify the associated JavaScript onFailure callback that the query has failed with the specified |error_code| and |error_message|.
|
pure virtual |
Notify the associated JavaScript onSuccess callback that the query has completed successfully with the specified string |response|.
|
pure virtual |
Notify the associated JavaScript onSuccess callback that the query has completed successfully with binary data.
A |data| pointer to the binary data can be nullptr only if the |size| is 0.