You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2026-04-03 01:00:31 +02:00
151 lines
13 KiB
HTML
151 lines
13 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>cef4delphi: uCEFResourceHandler: Class TCefResourceHandlerRef</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="generator" content="PasDoc 1.0.2">
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<link rel="StyleSheet" type="text/css" href="bootstrap.min.css">
|
|
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
|
|
<style type="text/css">
|
|
body { margin: 0.5em; }
|
|
.badge { padding: 0.1em 0.5em; color: white; }
|
|
</style></head>
|
|
<body>
|
|
<span id="TCefResourceHandlerRef"></span><h1 class="cio">Class TCefResourceHandlerRef</h1>
|
|
<div class="sections">
|
|
<div class="one_section"><a class="section" href="#PasDoc-Description">Description</a></div><div class="one_section"><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></div><div class="one_section"><a class="section" href="#PasDoc-Methods">Methods</a></div></div>
|
|
<span id="PasDoc-Description"></span><h2 class="unit">Unit</h2>
|
|
<p class="unitlink">
|
|
<a href="uCEFResourceHandler.html">uCEFResourceHandler</a></p>
|
|
<h2 class="declaration">Declaration</h2>
|
|
<p class="declaration">
|
|
<code>type TCefResourceHandlerRef = class(<a class="normal" href="uCEFBaseRefCounted.TCefBaseRefCountedRef.html">TCefBaseRefCountedRef</a>, <a class="normal" href="uCEFInterfaces.ICefResourceHandler.html">ICefResourceHandler</a>)</code></p>
|
|
<h2 class="description">Description</h2>
|
|
<p class="nodescription">This item has no description.</p><span id="PasDoc-Hierarchy"></span><h2 class="hierarchy">Hierarchy</h2>
|
|
<ul class="hierarchy"><li class="ancestor">TInterfacedObject</li>
|
|
<li class="ancestor"><a class="normal" href="uCEFBaseRefCounted.TCefBaseRefCountedRef.html">TCefBaseRefCountedRef</a></li>
|
|
<li class="thisitem">TCefResourceHandlerRef</li></ul><h2 class="overview">Overview</h2>
|
|
<span id="PasDoc-Methods"></span><h3 class="summary">Methods</h3>
|
|
<table class="summary wide_list">
|
|
<tr class="list visibility-protected">
|
|
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
|
|
<td class="itemcode"><code>function <strong><a href="uCEFResourceHandler.TCefResourceHandlerRef.html#open-ICefRequest-boolean-ICefCallback-">open</a></strong>(const request: <a href="uCEFInterfaces.ICefRequest.html">ICefRequest</a>; var handle_request: boolean; const callback: <a href="uCEFInterfaces.ICefCallback.html">ICefCallback</a>): boolean;</code></td>
|
|
</tr>
|
|
<tr class="list2 visibility-protected">
|
|
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
|
|
<td class="itemcode"><code>function <strong><a href="uCEFResourceHandler.TCefResourceHandlerRef.html#ProcessRequest-ICefRequest-ICefCallback-">ProcessRequest</a></strong>(const request: <a href="uCEFInterfaces.ICefRequest.html">ICefRequest</a>; const callback: <a href="uCEFInterfaces.ICefCallback.html">ICefCallback</a>): Boolean;</code></td>
|
|
</tr>
|
|
<tr class="list visibility-protected">
|
|
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
|
|
<td class="itemcode"><code>procedure <strong><a href="uCEFResourceHandler.TCefResourceHandlerRef.html#GetResponseHeaders-ICefResponse-Int64-ustring-">GetResponseHeaders</a></strong>(const response: <a href="uCEFInterfaces.ICefResponse.html">ICefResponse</a>; out responseLength: Int64; out redirectUrl: <a href="uCEFTypes.html#ustring">ustring</a>);</code></td>
|
|
</tr>
|
|
<tr class="list2 visibility-protected">
|
|
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
|
|
<td class="itemcode"><code>function <strong><a href="uCEFResourceHandler.TCefResourceHandlerRef.html#skip-int64-Int64-ICefResourceSkipCallback-">skip</a></strong>(bytes_to_skip: int64; var bytes_skipped: Int64; const callback: <a href="uCEFInterfaces.ICefResourceSkipCallback.html">ICefResourceSkipCallback</a>): boolean;</code></td>
|
|
</tr>
|
|
<tr class="list visibility-protected">
|
|
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
|
|
<td class="itemcode"><code>function <strong><a href="uCEFResourceHandler.TCefResourceHandlerRef.html#read-Pointer-Integer-Integer-ICefResourceReadCallback-">read</a></strong>(const data_out: Pointer; bytes_to_read: Integer; var bytes_read: Integer; const callback: <a href="uCEFInterfaces.ICefResourceReadCallback.html">ICefResourceReadCallback</a>): boolean;</code></td>
|
|
</tr>
|
|
<tr class="list2 visibility-protected">
|
|
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
|
|
<td class="itemcode"><code>function <strong><a href="uCEFResourceHandler.TCefResourceHandlerRef.html#ReadResponse-Pointer-Integer-Integer-ICefCallback-">ReadResponse</a></strong>(const dataOut: Pointer; bytesToRead: Integer; var bytesRead: Integer; const callback: <a href="uCEFInterfaces.ICefCallback.html">ICefCallback</a>): Boolean;</code></td>
|
|
</tr>
|
|
<tr class="list visibility-protected">
|
|
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
|
|
<td class="itemcode"><code>procedure <strong><a href="uCEFResourceHandler.TCefResourceHandlerRef.html#Cancel">Cancel</a></strong>;</code></td>
|
|
</tr>
|
|
<tr class="list2 visibility-public">
|
|
<td class="visibility"><span class="badge vis-public">Public</span></td>
|
|
<td class="itemcode"><code>class function <strong><a href="uCEFResourceHandler.TCefResourceHandlerRef.html#UnWrap-Pointer-">UnWrap</a></strong>(data: Pointer): <a href="uCEFInterfaces.ICefResourceHandler.html">ICefResourceHandler</a>;</code></td>
|
|
</tr>
|
|
</table>
|
|
<h2 class="description">Description</h2>
|
|
<h3 class="detail">Methods</h3>
|
|
<table class="detail visibility-protected wide_list">
|
|
<tr class="list visibility-protected">
|
|
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
|
|
<td class="itemcode"><span id="open-ICefRequest-boolean-ICefCallback-"></span><code>function <strong>open</strong>(const request: <a href="uCEFInterfaces.ICefRequest.html">ICefRequest</a>; var handle_request: boolean; const callback: <a href="uCEFInterfaces.ICefCallback.html">ICefCallback</a>): boolean;</code></td>
|
|
</tr>
|
|
<tr><td colspan="2">
|
|
<p class="inheritdescription">This item has no description. Showing description inherited from <a class="normal" href="uCEFInterfaces.ICefResourceHandler.html#open-ICefRequest-boolean-ICefCallback-">ICefResourceHandler.open</a>.</p><p>
|
|
Open the response stream. To handle the request immediately set |handle_request| to true (1) and return true (1). To decide at a later time set |handle_request| to false (0), return true (1), and execute |callback| to continue or cancel the request. To cancel the request immediately set |handle_request| to true (1) and return false (0). This function will be called in sequence but not from a dedicated thread. For backwards compatibility set |handle_request| to false (0) and return false (0) and the ProcessRequest function will be called. </p>
|
|
</td></tr>
|
|
</table>
|
|
<table class="detail visibility-protected wide_list">
|
|
<tr class="list visibility-protected">
|
|
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
|
|
<td class="itemcode"><span id="ProcessRequest-ICefRequest-ICefCallback-"></span><code>function <strong>ProcessRequest</strong>(const request: <a href="uCEFInterfaces.ICefRequest.html">ICefRequest</a>; const callback: <a href="uCEFInterfaces.ICefCallback.html">ICefCallback</a>): Boolean;</code></td>
|
|
</tr>
|
|
<tr><td colspan="2">
|
|
<p class="inheritdescription">This item has no description. Showing description inherited from <a class="normal" href="uCEFInterfaces.ICefResourceHandler.html#ProcessRequest-ICefRequest-ICefCallback-">ICefResourceHandler.ProcessRequest</a>.</p><p>
|
|
Begin processing the request. To handle the request return true (1) and call ICefCallback.cont() once the response header information is available (ICefCallback.cont() can also be called from inside this function if header information is available immediately). To cancel the request return false (0).
|
|
|
|
<p>WARNING: This function is deprecated. Use Open instead.</p>
|
|
</td></tr>
|
|
</table>
|
|
<table class="detail visibility-protected wide_list">
|
|
<tr class="list visibility-protected">
|
|
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
|
|
<td class="itemcode"><span id="GetResponseHeaders-ICefResponse-Int64-ustring-"></span><code>procedure <strong>GetResponseHeaders</strong>(const response: <a href="uCEFInterfaces.ICefResponse.html">ICefResponse</a>; out responseLength: Int64; out redirectUrl: <a href="uCEFTypes.html#ustring">ustring</a>);</code></td>
|
|
</tr>
|
|
<tr><td colspan="2">
|
|
<p>
|
|
deprecated</p>
|
|
</td></tr>
|
|
</table>
|
|
<table class="detail visibility-protected wide_list">
|
|
<tr class="list visibility-protected">
|
|
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
|
|
<td class="itemcode"><span id="skip-int64-Int64-ICefResourceSkipCallback-"></span><code>function <strong>skip</strong>(bytes_to_skip: int64; var bytes_skipped: Int64; const callback: <a href="uCEFInterfaces.ICefResourceSkipCallback.html">ICefResourceSkipCallback</a>): boolean;</code></td>
|
|
</tr>
|
|
<tr><td colspan="2">
|
|
<p class="inheritdescription">This item has no description. Showing description inherited from <a class="normal" href="uCEFInterfaces.ICefResourceHandler.html#skip-int64-Int64-ICefResourceSkipCallback-">ICefResourceHandler.skip</a>.</p><p>
|
|
Skip response data when requested by a Range header. Skip over and discard |bytes_to_skip| bytes of response data. If data is available immediately set |bytes_skipped| to the number of bytes skipped and return true (1). To read the data at a later time set |bytes_skipped| to 0, return true (1) and execute |callback| when the data is available. To indicate failure set |bytes_skipped| to < 0 (e.g. -2 for ERR_FAILED) and return false (0). This function will be called in sequence but not from a dedicated thread. </p>
|
|
</td></tr>
|
|
</table>
|
|
<table class="detail visibility-protected wide_list">
|
|
<tr class="list visibility-protected">
|
|
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
|
|
<td class="itemcode"><span id="read-Pointer-Integer-Integer-ICefResourceReadCallback-"></span><code>function <strong>read</strong>(const data_out: Pointer; bytes_to_read: Integer; var bytes_read: Integer; const callback: <a href="uCEFInterfaces.ICefResourceReadCallback.html">ICefResourceReadCallback</a>): boolean;</code></td>
|
|
</tr>
|
|
<tr><td colspan="2">
|
|
<p class="inheritdescription">This item has no description. Showing description inherited from <a class="normal" href="uCEFInterfaces.ICefResourceHandler.html#read-Pointer-Integer-Integer-ICefResourceReadCallback-">ICefResourceHandler.read</a>.</p><p>
|
|
Read response data. If data is available immediately copy up to |bytes_to_read| bytes into |data_out|, set |bytes_read| to the number of bytes copied, and return true (1). To read the data at a later time keep a pointer to |data_out|, set |bytes_read| to 0, return true (1) and execute |callback| when the data is available (|data_out| will remain valid until the callback is executed). To indicate response completion set |bytes_read| to 0 and return false (0). To indicate failure set |bytes_read| to < 0 (e.g. -2 for ERR_FAILED) and return false (0). This function will be called in sequence but not from a dedicated thread. For backwards compatibility set |bytes_read| to -1 and return false (0) and the ReadResponse function will be called. </p>
|
|
</td></tr>
|
|
</table>
|
|
<table class="detail visibility-protected wide_list">
|
|
<tr class="list visibility-protected">
|
|
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
|
|
<td class="itemcode"><span id="ReadResponse-Pointer-Integer-Integer-ICefCallback-"></span><code>function <strong>ReadResponse</strong>(const dataOut: Pointer; bytesToRead: Integer; var bytesRead: Integer; const callback: <a href="uCEFInterfaces.ICefCallback.html">ICefCallback</a>): Boolean;</code></td>
|
|
</tr>
|
|
<tr><td colspan="2">
|
|
<p class="inheritdescription">This item has no description. Showing description inherited from <a class="normal" href="uCEFInterfaces.ICefResourceHandler.html#ReadResponse-Pointer-Integer-Integer-ICefCallback-">ICefResourceHandler.ReadResponse</a>.</p><p>
|
|
Read response data. If data is available immediately copy up to |bytes_to_read| bytes into |data_out|, set |bytes_read| to the number of bytes copied, and return true (1). To read the data at a later time set |bytes_read| to 0, return true (1) and call ICefCallback.cont() when the data is available. To indicate response completion return false (0).
|
|
|
|
<p>WARNING: This function is deprecated. Use Skip and Read instead.</p>
|
|
</td></tr>
|
|
</table>
|
|
<table class="detail visibility-protected wide_list">
|
|
<tr class="list visibility-protected">
|
|
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
|
|
<td class="itemcode"><span id="Cancel"></span><code>procedure <strong>Cancel</strong>;</code></td>
|
|
</tr>
|
|
<tr><td colspan="2">
|
|
<p>
|
|
deprecated</p>
|
|
</td></tr>
|
|
</table>
|
|
<table class="detail visibility-public wide_list">
|
|
<tr class="list visibility-public">
|
|
<td class="visibility"><span class="badge vis-public">Public</span></td>
|
|
<td class="itemcode"><span id="UnWrap-Pointer-"></span><code>class function <strong>UnWrap</strong>(data: Pointer): <a href="uCEFInterfaces.ICefResourceHandler.html">ICefResourceHandler</a>;</code></td>
|
|
</tr>
|
|
<tr><td colspan="2">
|
|
<p class="nodescription">This item has no description.</p></td></tr>
|
|
</table>
|
|
<hr><span class="appinfo"><em>Generated by <a href="https://pasdoc.github.io/">PasDoc 1.0.2</a>. </em>
|
|
</span>
|
|
</body></html>
|