mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update include/ comments to Doxygen formatting (see issue #3384)
See related guidelines in the issue.
This commit is contained in:
@ -33,7 +33,7 @@
|
||||
// by hand. See the translator.README.txt file in the tools directory for
|
||||
// more information.
|
||||
//
|
||||
// $hash=3d5c3c54c9f7eedc5cd1dd61c0f69edcd6a1143a$
|
||||
// $hash=64d090faf64e2ffb99da110840af383b757e113b$
|
||||
//
|
||||
|
||||
#ifndef CEF_INCLUDE_CAPI_CEF_RESOURCE_REQUEST_HANDLER_CAPI_H_
|
||||
@ -56,23 +56,23 @@ extern "C" {
|
||||
struct _cef_cookie_access_filter_t;
|
||||
|
||||
///
|
||||
// Implement this structure to handle events related to browser requests. The
|
||||
// functions of this structure will be called on the IO thread unless otherwise
|
||||
// indicated.
|
||||
/// Implement this structure to handle events related to browser requests. The
|
||||
/// functions of this structure will be called on the IO thread unless otherwise
|
||||
/// indicated.
|
||||
///
|
||||
typedef struct _cef_resource_request_handler_t {
|
||||
///
|
||||
// Base structure.
|
||||
/// Base structure.
|
||||
///
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called on the IO thread before a resource request is loaded. The |browser|
|
||||
// and |frame| values represent the source of the request, and may be NULL for
|
||||
// requests originating from service workers or cef_urlrequest_t. To
|
||||
// optionally filter cookies for the request return a
|
||||
// cef_cookie_access_filter_t object. The |request| object cannot not be
|
||||
// modified in this callback.
|
||||
/// Called on the IO thread before a resource request is loaded. The |browser|
|
||||
/// and |frame| values represent the source of the request, and may be NULL
|
||||
/// for requests originating from service workers or cef_urlrequest_t. To
|
||||
/// optionally filter cookies for the request return a
|
||||
/// cef_cookie_access_filter_t object. The |request| object cannot not be
|
||||
/// modified in this callback.
|
||||
///
|
||||
struct _cef_cookie_access_filter_t*(CEF_CALLBACK* get_cookie_access_filter)(
|
||||
struct _cef_resource_request_handler_t* self,
|
||||
@ -81,15 +81,15 @@ typedef struct _cef_resource_request_handler_t {
|
||||
struct _cef_request_t* request);
|
||||
|
||||
///
|
||||
// Called on the IO thread before a resource request is loaded. The |browser|
|
||||
// and |frame| values represent the source of the request, and may be NULL for
|
||||
// requests originating from service workers or cef_urlrequest_t. To redirect
|
||||
// or change the resource load optionally modify |request|. Modification of
|
||||
// the request URL will be treated as a redirect. Return RV_CONTINUE to
|
||||
// continue the request immediately. Return RV_CONTINUE_ASYNC and call
|
||||
// cef_callback_t functions at a later time to continue or cancel the request
|
||||
// asynchronously. Return RV_CANCEL to cancel the request immediately.
|
||||
//
|
||||
/// Called on the IO thread before a resource request is loaded. The |browser|
|
||||
/// and |frame| values represent the source of the request, and may be NULL
|
||||
/// for requests originating from service workers or cef_urlrequest_t. To
|
||||
/// redirect or change the resource load optionally modify |request|.
|
||||
/// Modification of the request URL will be treated as a redirect. Return
|
||||
/// RV_CONTINUE to continue the request immediately. Return RV_CONTINUE_ASYNC
|
||||
/// and call cef_callback_t functions at a later time to continue or cancel
|
||||
/// the request asynchronously. Return RV_CANCEL to cancel the request
|
||||
/// immediately.
|
||||
///
|
||||
cef_return_value_t(CEF_CALLBACK* on_before_resource_load)(
|
||||
struct _cef_resource_request_handler_t* self,
|
||||
@ -99,12 +99,12 @@ typedef struct _cef_resource_request_handler_t {
|
||||
struct _cef_callback_t* callback);
|
||||
|
||||
///
|
||||
// Called on the IO thread before a resource is loaded. The |browser| and
|
||||
// |frame| values represent the source of the request, and may be NULL for
|
||||
// requests originating from service workers or cef_urlrequest_t. To allow the
|
||||
// resource to load using the default network loader return NULL. To specify a
|
||||
// handler for the resource return a cef_resource_handler_t object. The
|
||||
// |request| object cannot not be modified in this callback.
|
||||
/// Called on the IO thread before a resource is loaded. The |browser| and
|
||||
/// |frame| values represent the source of the request, and may be NULL for
|
||||
/// requests originating from service workers or cef_urlrequest_t. To allow
|
||||
/// the resource to load using the default network loader return NULL. To
|
||||
/// specify a handler for the resource return a cef_resource_handler_t object.
|
||||
/// The |request| object cannot not be modified in this callback.
|
||||
///
|
||||
struct _cef_resource_handler_t*(CEF_CALLBACK* get_resource_handler)(
|
||||
struct _cef_resource_request_handler_t* self,
|
||||
@ -113,14 +113,14 @@ typedef struct _cef_resource_request_handler_t {
|
||||
struct _cef_request_t* request);
|
||||
|
||||
///
|
||||
// Called on the IO thread when a resource load is redirected. The |browser|
|
||||
// and |frame| values represent the source of the request, and may be NULL for
|
||||
// requests originating from service workers or cef_urlrequest_t. The
|
||||
// |request| parameter will contain the old URL and other request-related
|
||||
// information. The |response| parameter will contain the response that
|
||||
// resulted in the redirect. The |new_url| parameter will contain the new URL
|
||||
// and can be changed if desired. The |request| and |response| objects cannot
|
||||
// be modified in this callback.
|
||||
/// Called on the IO thread when a resource load is redirected. The |browser|
|
||||
/// and |frame| values represent the source of the request, and may be NULL
|
||||
/// for requests originating from service workers or cef_urlrequest_t. The
|
||||
/// |request| parameter will contain the old URL and other request-related
|
||||
/// information. The |response| parameter will contain the response that
|
||||
/// resulted in the redirect. The |new_url| parameter will contain the new URL
|
||||
/// and can be changed if desired. The |request| and |response| objects cannot
|
||||
/// be modified in this callback.
|
||||
///
|
||||
void(CEF_CALLBACK* on_resource_redirect)(
|
||||
struct _cef_resource_request_handler_t* self,
|
||||
@ -131,17 +131,18 @@ typedef struct _cef_resource_request_handler_t {
|
||||
cef_string_t* new_url);
|
||||
|
||||
///
|
||||
// Called on the IO thread when a resource response is received. The |browser|
|
||||
// and |frame| values represent the source of the request, and may be NULL for
|
||||
// requests originating from service workers or cef_urlrequest_t. To allow the
|
||||
// resource load to proceed without modification return false (0). To redirect
|
||||
// or retry the resource load optionally modify |request| and return true (1).
|
||||
// Modification of the request URL will be treated as a redirect. Requests
|
||||
// handled using the default network loader cannot be redirected in this
|
||||
// callback. The |response| object cannot be modified in this callback.
|
||||
//
|
||||
// WARNING: Redirecting using this function is deprecated. Use
|
||||
// OnBeforeResourceLoad or GetResourceHandler to perform redirects.
|
||||
/// Called on the IO thread when a resource response is received. The
|
||||
/// |browser| and |frame| values represent the source of the request, and may
|
||||
/// be NULL for requests originating from service workers or cef_urlrequest_t.
|
||||
/// To allow the resource load to proceed without modification return false
|
||||
/// (0). To redirect or retry the resource load optionally modify |request|
|
||||
/// and return true (1). Modification of the request URL will be treated as a
|
||||
/// redirect. Requests handled using the default network loader cannot be
|
||||
/// redirected in this callback. The |response| object cannot be modified in
|
||||
/// this callback.
|
||||
///
|
||||
/// WARNING: Redirecting using this function is deprecated. Use
|
||||
/// OnBeforeResourceLoad or GetResourceHandler to perform redirects.
|
||||
///
|
||||
int(CEF_CALLBACK* on_resource_response)(
|
||||
struct _cef_resource_request_handler_t* self,
|
||||
@ -151,11 +152,11 @@ typedef struct _cef_resource_request_handler_t {
|
||||
struct _cef_response_t* response);
|
||||
|
||||
///
|
||||
// Called on the IO thread to optionally filter resource response content. The
|
||||
// |browser| and |frame| values represent the source of the request, and may
|
||||
// be NULL for requests originating from service workers or cef_urlrequest_t.
|
||||
// |request| and |response| represent the request and response respectively
|
||||
// and cannot be modified in this callback.
|
||||
/// Called on the IO thread to optionally filter resource response content.
|
||||
/// The |browser| and |frame| values represent the source of the request, and
|
||||
/// may be NULL for requests originating from service workers or
|
||||
/// cef_urlrequest_t. |request| and |response| represent the request and
|
||||
/// response respectively and cannot be modified in this callback.
|
||||
///
|
||||
struct _cef_response_filter_t*(CEF_CALLBACK* get_resource_response_filter)(
|
||||
struct _cef_resource_request_handler_t* self,
|
||||
@ -165,20 +166,20 @@ typedef struct _cef_resource_request_handler_t {
|
||||
struct _cef_response_t* response);
|
||||
|
||||
///
|
||||
// Called on the IO thread when a resource load has completed. The |browser|
|
||||
// and |frame| values represent the source of the request, and may be NULL for
|
||||
// requests originating from service workers or cef_urlrequest_t. |request|
|
||||
// and |response| represent the request and response respectively and cannot
|
||||
// be modified in this callback. |status| indicates the load completion
|
||||
// status. |received_content_length| is the number of response bytes actually
|
||||
// read. This function will be called for all requests, including requests
|
||||
// that are aborted due to CEF shutdown or destruction of the associated
|
||||
// browser. In cases where the associated browser is destroyed this callback
|
||||
// may arrive after the cef_life_span_handler_t::OnBeforeClose callback for
|
||||
// that browser. The cef_frame_t::IsValid function can be used to test for
|
||||
// this situation, and care should be taken not to call |browser| or |frame|
|
||||
// functions that modify state (like LoadURL, SendProcessMessage, etc.) if the
|
||||
// frame is invalid.
|
||||
/// Called on the IO thread when a resource load has completed. The |browser|
|
||||
/// and |frame| values represent the source of the request, and may be NULL
|
||||
/// for requests originating from service workers or cef_urlrequest_t.
|
||||
/// |request| and |response| represent the request and response respectively
|
||||
/// and cannot be modified in this callback. |status| indicates the load
|
||||
/// completion status. |received_content_length| is the number of response
|
||||
/// bytes actually read. This function will be called for all requests,
|
||||
/// including requests that are aborted due to CEF shutdown or destruction of
|
||||
/// the associated browser. In cases where the associated browser is destroyed
|
||||
/// this callback may arrive after the cef_life_span_handler_t::OnBeforeClose
|
||||
/// callback for that browser. The cef_frame_t::IsValid function can be used
|
||||
/// to test for this situation, and care should be taken not to call |browser|
|
||||
/// or |frame| functions that modify state (like LoadURL, SendProcessMessage,
|
||||
/// etc.) if the frame is invalid.
|
||||
///
|
||||
void(CEF_CALLBACK* on_resource_load_complete)(
|
||||
struct _cef_resource_request_handler_t* self,
|
||||
@ -190,14 +191,14 @@ typedef struct _cef_resource_request_handler_t {
|
||||
int64 received_content_length);
|
||||
|
||||
///
|
||||
// Called on the IO thread to handle requests for URLs with an unknown
|
||||
// protocol component. The |browser| and |frame| values represent the source
|
||||
// of the request, and may be NULL for requests originating from service
|
||||
// workers or cef_urlrequest_t. |request| cannot be modified in this callback.
|
||||
// Set |allow_os_execution| to true (1) to attempt execution via the
|
||||
// registered OS protocol handler, if any. SECURITY WARNING: YOU SHOULD USE
|
||||
// THIS METHOD TO ENFORCE RESTRICTIONS BASED ON SCHEME, HOST OR OTHER URL
|
||||
// ANALYSIS BEFORE ALLOWING OS EXECUTION.
|
||||
/// Called on the IO thread to handle requests for URLs with an unknown
|
||||
/// protocol component. The |browser| and |frame| values represent the source
|
||||
/// of the request, and may be NULL for requests originating from service
|
||||
/// workers or cef_urlrequest_t. |request| cannot be modified in this
|
||||
/// callback. Set |allow_os_execution| to true (1) to attempt execution via
|
||||
/// the registered OS protocol handler, if any. SECURITY WARNING: YOU SHOULD
|
||||
/// USE THIS METHOD TO ENFORCE RESTRICTIONS BASED ON SCHEME, HOST OR OTHER URL
|
||||
/// ANALYSIS BEFORE ALLOWING OS EXECUTION.
|
||||
///
|
||||
void(CEF_CALLBACK* on_protocol_execution)(
|
||||
struct _cef_resource_request_handler_t* self,
|
||||
@ -208,22 +209,22 @@ typedef struct _cef_resource_request_handler_t {
|
||||
} cef_resource_request_handler_t;
|
||||
|
||||
///
|
||||
// Implement this structure to filter cookies that may be sent or received from
|
||||
// resource requests. The functions of this structure will be called on the IO
|
||||
// thread unless otherwise indicated.
|
||||
/// Implement this structure to filter cookies that may be sent or received from
|
||||
/// resource requests. The functions of this structure will be called on the IO
|
||||
/// thread unless otherwise indicated.
|
||||
///
|
||||
typedef struct _cef_cookie_access_filter_t {
|
||||
///
|
||||
// Base structure.
|
||||
/// Base structure.
|
||||
///
|
||||
cef_base_ref_counted_t base;
|
||||
|
||||
///
|
||||
// Called on the IO thread before a resource request is sent. The |browser|
|
||||
// and |frame| values represent the source of the request, and may be NULL for
|
||||
// requests originating from service workers or cef_urlrequest_t. |request|
|
||||
// cannot be modified in this callback. Return true (1) if the specified
|
||||
// cookie can be sent with the request or false (0) otherwise.
|
||||
/// Called on the IO thread before a resource request is sent. The |browser|
|
||||
/// and |frame| values represent the source of the request, and may be NULL
|
||||
/// for requests originating from service workers or cef_urlrequest_t.
|
||||
/// |request| cannot be modified in this callback. Return true (1) if the
|
||||
/// specified cookie can be sent with the request or false (0) otherwise.
|
||||
///
|
||||
int(CEF_CALLBACK* can_send_cookie)(struct _cef_cookie_access_filter_t* self,
|
||||
struct _cef_browser_t* browser,
|
||||
@ -232,12 +233,12 @@ typedef struct _cef_cookie_access_filter_t {
|
||||
const struct _cef_cookie_t* cookie);
|
||||
|
||||
///
|
||||
// Called on the IO thread after a resource response is received. The
|
||||
// |browser| and |frame| values represent the source of the request, and may
|
||||
// be NULL for requests originating from service workers or cef_urlrequest_t.
|
||||
// |request| cannot be modified in this callback. Return true (1) if the
|
||||
// specified cookie returned with the response can be saved or false (0)
|
||||
// otherwise.
|
||||
/// Called on the IO thread after a resource response is received. The
|
||||
/// |browser| and |frame| values represent the source of the request, and may
|
||||
/// be NULL for requests originating from service workers or cef_urlrequest_t.
|
||||
/// |request| cannot be modified in this callback. Return true (1) if the
|
||||
/// specified cookie returned with the response can be saved or false (0)
|
||||
/// otherwise.
|
||||
///
|
||||
int(CEF_CALLBACK* can_save_cookie)(struct _cef_cookie_access_filter_t* self,
|
||||
struct _cef_browser_t* browser,
|
||||
|
Reference in New Issue
Block a user