# Interface ICefRequestContextHandler

Description
Hierarchy
Methods

## Unit

uCEFInterfaces

## Declaration

`type ICefRequestContextHandler = interface(ICefBaseRefCounted)`

## Description

Implement this interface to provide handler implementations. The handler instance will not be released until all objects related to the context have been destroyed.

UNKNOWN

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_request_context_handler_capi.h">CEF source file: /include/capi/cef_request_context_handler_capi.h (cef_request_context_handler_t))

## Hierarchy

- IInterface
- ICefBaseRefCounted
- ICefRequestContextHandler

## Overview

### Methods

Public | `procedure OnRequestContextInitialized(const request_context: ICefRequestContext);`
Public | `procedure GetResourceRequestHandler(const browser: ICefBrowser; const frame: ICefFrame; const request: ICefRequest; is_navigation, is_download: boolean; const request_initiator: ustring; var disable_default_handling: boolean; var aResourceRequestHandler : ICefResourceRequestHandler);`
Public | `procedure RemoveReferences;`

## Description

### Methods

Public | `procedure OnRequestContextInitialized(const request_context: ICefRequestContext);`
Called on the browser process UI thread immediately after the request context has been initialized. ###### Attributes GUID['{76EB1FA7-78DF-4FD5-ABB3-1CDD3E73A140}']

Public | `procedure GetResourceRequestHandler(const browser: ICefBrowser; const frame: ICefFrame; const request: ICefRequest; is_navigation, is_download: boolean; const request_initiator: ustring; var disable_default_handling: boolean; var aResourceRequestHandler : ICefResourceRequestHandler);`
Called on the browser process IO thread before a resource request is initiated. The |browser| and |frame| values represent the source of the request, and may be NULL for requests originating from service workers or ICefUrlRequest. |request| represents the request contents and cannot be modified in this callback. |is_navigation| will be true (1) if the resource request is a navigation. |is_download| will be true (1) if the resource request is a download. |request_initiator| is the origin (scheme + domain) of the page that initiated the request. Set |disable_default_handling| to true (1) to disable default handling of the request, in which case it will need to be handled via ICefResourceRequestHandler.GetResourceHandler or it will be canceled. To allow the resource load to proceed with default handling return NULL. To specify a handler for the resource return a ICefResourceRequestHandler object. This function will not be called if the client associated with |browser| returns a non-NULL value from ICefRequestHandler.GetResourceRequestHandler for the same request (identified by ICefRequest.GetIdentifier).

Public | `procedure RemoveReferences;`
Custom procedure to clear all references.

Generated by PasDoc 1.0.4.