Added more code comments.

Added documentation for ICefResponseFilter, TCustomResponseFilter, TCefResponseFilterRef and TCefResponseFilterOwn
This commit is contained in:
Salvador Díaz Fau 2024-04-20 17:46:13 +02:00
parent 7d822c5340
commit 82f6d8eeb6
12 changed files with 406 additions and 27 deletions

Binary file not shown.

View File

@ -2484,12 +2484,12 @@
<tr class="list"> <tr class="list">
<td class="itemname"><a class="bold" href="uCEFResponseFilter.TCefResponseFilterOwn.html">TCefResponseFilterOwn</a></td> <td class="itemname"><a class="bold" href="uCEFResponseFilter.TCefResponseFilterOwn.html">TCefResponseFilterOwn</a></td>
<td class="itemunit"><a class="bold" href="uCEFResponseFilter.html">uCEFResponseFilter</a></td> <td class="itemunit"><a class="bold" href="uCEFResponseFilter.html">uCEFResponseFilter</a></td>
<td class="itemdesc"><p>&nbsp;</p></td> <td class="itemdesc"><p> Owned class implementing a resource filter. </p></td>
</tr> </tr>
<tr class="list2"> <tr class="list2">
<td class="itemname"><a class="bold" href="uCEFResponseFilter.TCefResponseFilterRef.html">TCefResponseFilterRef</a></td> <td class="itemname"><a class="bold" href="uCEFResponseFilter.TCefResponseFilterRef.html">TCefResponseFilterRef</a></td>
<td class="itemunit"><a class="bold" href="uCEFResponseFilter.html">uCEFResponseFilter</a></td> <td class="itemunit"><a class="bold" href="uCEFResponseFilter.html">uCEFResponseFilter</a></td>
<td class="itemdesc"><p>&nbsp;</p></td> <td class="itemdesc"><p> Reference class implementing a resource filter. </p></td>
</tr> </tr>
<tr class="list"> <tr class="list">
<td class="itemname"><a class="bold" href="uCEFResponse.TCefResponseRef.html">TCefResponseRef</a></td> <td class="itemname"><a class="bold" href="uCEFResponse.TCefResponseRef.html">TCefResponseRef</a></td>
@ -3408,7 +3408,7 @@
<tr class="list"> <tr class="list">
<td class="itemname"><a class="bold" href="uCEFResponseFilter.TCustomResponseFilter.html">TCustomResponseFilter</a></td> <td class="itemname"><a class="bold" href="uCEFResponseFilter.TCustomResponseFilter.html">TCustomResponseFilter</a></td>
<td class="itemunit"><a class="bold" href="uCEFResponseFilter.html">uCEFResponseFilter</a></td> <td class="itemunit"><a class="bold" href="uCEFResponseFilter.html">uCEFResponseFilter</a></td>
<td class="itemdesc"><p>&nbsp;</p></td> <td class="itemdesc"><p> Custom class implementing a resource filter with events. </p></td>
</tr> </tr>
<tr class="list2"> <tr class="list2">
<td class="itemname"><a class="bold" href="uCEFServerHandler.TCustomServerHandler.html">TCustomServerHandler</a></td> <td class="itemname"><a class="bold" href="uCEFServerHandler.TCustomServerHandler.html">TCustomServerHandler</a></td>

View File

@ -11093,12 +11093,12 @@ Ranges:
<tr class="list2"> <tr class="list2">
<td class="itemname"><a class="bold" href="uCEFResponseFilter.TCefResponseFilterOwn.html">TCefResponseFilterOwn</a></td> <td class="itemname"><a class="bold" href="uCEFResponseFilter.TCefResponseFilterOwn.html">TCefResponseFilterOwn</a></td>
<td class="itemunit"><a class="bold" href="uCEFResponseFilter.html">uCEFResponseFilter</a></td> <td class="itemunit"><a class="bold" href="uCEFResponseFilter.html">uCEFResponseFilter</a></td>
<td class="itemdesc"><p>&nbsp;</p></td> <td class="itemdesc"><p> Owned class implementing a resource filter. </p></td>
</tr> </tr>
<tr class="list"> <tr class="list">
<td class="itemname"><a class="bold" href="uCEFResponseFilter.TCefResponseFilterRef.html">TCefResponseFilterRef</a></td> <td class="itemname"><a class="bold" href="uCEFResponseFilter.TCefResponseFilterRef.html">TCefResponseFilterRef</a></td>
<td class="itemunit"><a class="bold" href="uCEFResponseFilter.html">uCEFResponseFilter</a></td> <td class="itemunit"><a class="bold" href="uCEFResponseFilter.html">uCEFResponseFilter</a></td>
<td class="itemdesc"><p>&nbsp;</p></td> <td class="itemdesc"><p> Reference class implementing a resource filter. </p></td>
</tr> </tr>
<tr class="list2"> <tr class="list2">
<td class="itemname"><a class="bold" href="uCEFTypes.html#TCefResponseFilterStatus">TCefResponseFilterStatus</a></td> <td class="itemname"><a class="bold" href="uCEFTypes.html#TCefResponseFilterStatus">TCefResponseFilterStatus</a></td>
@ -12282,7 +12282,7 @@ Ranges:
<tr class="list"> <tr class="list">
<td class="itemname"><a class="bold" href="uCEFResponseFilter.TCustomResponseFilter.html">TCustomResponseFilter</a></td> <td class="itemname"><a class="bold" href="uCEFResponseFilter.TCustomResponseFilter.html">TCustomResponseFilter</a></td>
<td class="itemunit"><a class="bold" href="uCEFResponseFilter.html">uCEFResponseFilter</a></td> <td class="itemunit"><a class="bold" href="uCEFResponseFilter.html">uCEFResponseFilter</a></td>
<td class="itemdesc"><p>&nbsp;</p></td> <td class="itemdesc"><p> Custom class implementing a resource filter with events. </p></td>
</tr> </tr>
<tr class="list2"> <tr class="list2">
<td class="itemname"><a class="bold" href="uCEFServerHandler.TCustomServerHandler.html">TCustomServerHandler</a></td> <td class="itemname"><a class="bold" href="uCEFServerHandler.TCustomServerHandler.html">TCustomServerHandler</a></td>

View File

@ -925,12 +925,12 @@ published.gif
automated.gif automated.gif
pasdoc.css pasdoc.css
Compile time: 0 minutes, 14 seconds Compile time: 0 minutes, 15 seconds
16,138 Topics 16,138 Topics
137,728 Local links 137,730 Local links
35 Internet links 35 Internet links
5 Graphics 5 Graphics
Created c:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\docs\cef4delphi.chm, 3,516,164 bytes Created c:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\docs\cef4delphi.chm, 3,522,122 bytes
Compression decreased file by 22,971,062 bytes. Compression decreased file by 22,975,919 bytes.

View File

@ -49,7 +49,9 @@
<td class="itemcode"><span id="InitFilter"></span><code>function <strong>InitFilter</strong>: Boolean;</code></td> <td class="itemcode"><span id="InitFilter"></span><code>function <strong>InitFilter</strong>: Boolean;</code></td>
</tr> </tr>
<tr><td colspan="2"> <tr><td colspan="2">
<p class="nodescription">This item has no description.</p><h6 class="description_section">Attributes</h6> <p>
Initialize the response filter. Will only be called a single time. The filter will not be installed if this function returns false (0). </p>
<h6 class="description_section">Attributes</h6>
<dl class="attributes"> <dl class="attributes">
<dt>GUID['{5013BC3C-F1AE-407A-A571-A4C6B1D6831E}']</dt> <dt>GUID['{5013BC3C-F1AE-407A-A571-A4C6B1D6831E}']</dt>
<dd></dd> <dd></dd>
@ -62,7 +64,44 @@
<td class="itemcode"><span id="Filter-Pointer-NativeUInt-NativeUInt-Pointer-NativeUInt-NativeUInt-"></span><code>function <strong>Filter</strong>(data_in: Pointer; data_in_size: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; var data_in_read: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; data_out: Pointer; data_out_size : <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; var data_out_written: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>): <a href="uCEFTypes.html#TCefResponseFilterStatus">TCefResponseFilterStatus</a>;</code></td> <td class="itemcode"><span id="Filter-Pointer-NativeUInt-NativeUInt-Pointer-NativeUInt-NativeUInt-"></span><code>function <strong>Filter</strong>(data_in: Pointer; data_in_size: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; var data_in_read: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; data_out: Pointer; data_out_size : <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; var data_out_written: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>): <a href="uCEFTypes.html#TCefResponseFilterStatus">TCefResponseFilterStatus</a>;</code></td>
</tr> </tr>
<tr><td colspan="2"> <tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr> <p>
<p>Called to filter a chunk of data. Expected usage is as follows:
<p></p>
<pre class="preformatted">
1. Read input data from |data_in| and set |data_in_read| to the number of
bytes that were read up to a maximum of |data_in_size|. |data_in| will
be NULL if |data_in_size| is zero.
2. Write filtered output data to |data_out| and set |data_out_written| to
the number of bytes that were written up to a maximum of
|data_out_size|. If no output data was written then all data must be
read from |data_in| (user must set |data_in_read| = |data_in_size|).
3. Return RESPONSE_FILTER_DONE if all output data was written or
RESPONSE_FILTER_NEED_MORE_DATA if output data is still pending.</pre>
<p>
<p>This function will be called repeatedly until the input buffer has been fully read (user sets |data_in_read| = |data_in_size|) and there is no more input data to filter (the resource response is complete). This function may then be called an additional time with an NULL input buffer if the user filled the output buffer (set |data_out_written| = |data_out_size|) and returned RESPONSE_FILTER_NEED_MORE_DATA to indicate that output data is still pending.
<p>Calls to this function will stop when one of the following conditions is met:
<p></p>
<pre class="preformatted">
1. There is no more input data to filter (the resource response is
complete) and the user sets |data_out_written| = 0 or returns
RESPONSE_FILTER_DONE to indicate that all data has been written, or;
2. The user returns RESPONSE_FILTER_ERROR to indicate an error.</pre>
<p>
<p>Do not keep a reference to the buffers passed to this function.
<p></p>
</td></tr>
</table> </table>
<hr><span class="appinfo"><em>Generated by <a href="https://pasdoc.github.io/">PasDoc 0.16.0-snapshot</a>. </em> <hr><span class="appinfo"><em>Generated by <a href="https://pasdoc.github.io/">PasDoc 0.16.0-snapshot</a>. </em>
</span> </span>

View File

@ -18,7 +18,15 @@
<p class="declaration"> <p class="declaration">
<code>type TCefResponseFilterOwn = class(<a class="normal" href="uCEFBaseRefCounted.TCefBaseRefCountedOwn.html">TCefBaseRefCountedOwn</a>, <a class="normal" href="uCEFInterfaces.ICefResponseFilter.html">ICefResponseFilter</a>)</code></p> <code>type TCefResponseFilterOwn = class(<a class="normal" href="uCEFBaseRefCounted.TCefBaseRefCountedOwn.html">TCefBaseRefCountedOwn</a>, <a class="normal" href="uCEFInterfaces.ICefResponseFilter.html">ICefResponseFilter</a>)</code></p>
<h2 class="description">Description</h2> <h2 class="description">Description</h2>
<p class="nodescription">This item has no description.</p><span id="PasDoc-Hierarchy"></span><h2 class="hierarchy">Hierarchy</h2> <p>
Owned class implementing a resource filter. </p>
<p>
<p>The functions of this interface will be called on the browser process IO thread.
<p>&lt;see href=&quot;<a href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_response_filter_capi.h">https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_response_filter_capi.h</a>&quot;&gt;CEF source file: /include/capi/cef_response_filter_capi.h (cef_response_filter_t))</p>
<span id="PasDoc-Hierarchy"></span><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TInterfacedObject</li> <ul class="hierarchy"><li class="ancestor">TInterfacedObject</li>
<li class="ancestor"><a class="normal" href="uCEFBaseRefCounted.TCefBaseRefCountedOwn.html">TCefBaseRefCountedOwn</a></li> <li class="ancestor"><a class="normal" href="uCEFBaseRefCounted.TCefBaseRefCountedOwn.html">TCefBaseRefCountedOwn</a></li>
<li class="thisitem">TCefResponseFilterOwn</li></ul><h2 class="overview">Overview</h2> <li class="thisitem">TCefResponseFilterOwn</li></ul><h2 class="overview">Overview</h2>
@ -45,7 +53,9 @@
<td class="itemcode"><span id="InitFilter"></span><code>function <strong>InitFilter</strong>: Boolean; virtual; abstract;</code></td> <td class="itemcode"><span id="InitFilter"></span><code>function <strong>InitFilter</strong>: Boolean; virtual; abstract;</code></td>
</tr> </tr>
<tr><td colspan="2"> <tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr> <p>
Initialize the response filter. Will only be called a single time. The filter will not be installed if this function returns false (0). </p>
</td></tr>
</table> </table>
<table class="detail wide_list"> <table class="detail wide_list">
<tr class="list"> <tr class="list">
@ -53,7 +63,44 @@
<td class="itemcode"><span id="Filter-Pointer-NativeUInt-NativeUInt-Pointer-NativeUInt-NativeUInt-"></span><code>function <strong>Filter</strong>(data_in: Pointer; data_in_size: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; var data_in_read: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; data_out: Pointer; data_out_size : <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; var data_out_written: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>): <a href="uCEFTypes.html#TCefResponseFilterStatus">TCefResponseFilterStatus</a>; virtual; abstract;</code></td> <td class="itemcode"><span id="Filter-Pointer-NativeUInt-NativeUInt-Pointer-NativeUInt-NativeUInt-"></span><code>function <strong>Filter</strong>(data_in: Pointer; data_in_size: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; var data_in_read: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; data_out: Pointer; data_out_size : <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; var data_out_written: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>): <a href="uCEFTypes.html#TCefResponseFilterStatus">TCefResponseFilterStatus</a>; virtual; abstract;</code></td>
</tr> </tr>
<tr><td colspan="2"> <tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr> <p>
<p>Called to filter a chunk of data. Expected usage is as follows:
<p></p>
<pre class="preformatted">
1. Read input data from |data_in| and set |data_in_read| to the number of
bytes that were read up to a maximum of |data_in_size|. |data_in| will
be NULL if |data_in_size| is zero.
2. Write filtered output data to |data_out| and set |data_out_written| to
the number of bytes that were written up to a maximum of
|data_out_size|. If no output data was written then all data must be
read from |data_in| (user must set |data_in_read| = |data_in_size|).
3. Return RESPONSE_FILTER_DONE if all output data was written or
RESPONSE_FILTER_NEED_MORE_DATA if output data is still pending.</pre>
<p>
<p>This function will be called repeatedly until the input buffer has been fully read (user sets |data_in_read| = |data_in_size|) and there is no more input data to filter (the resource response is complete). This function may then be called an additional time with an NULL input buffer if the user filled the output buffer (set |data_out_written| = |data_out_size|) and returned RESPONSE_FILTER_NEED_MORE_DATA to indicate that output data is still pending.
<p>Calls to this function will stop when one of the following conditions is met:
<p></p>
<pre class="preformatted">
1. There is no more input data to filter (the resource response is
complete) and the user sets |data_out_written| = 0 or returns
RESPONSE_FILTER_DONE to indicate that all data has been written, or;
2. The user returns RESPONSE_FILTER_ERROR to indicate an error.</pre>
<p>
<p>Do not keep a reference to the buffers passed to this function.
<p></p>
</td></tr>
</table> </table>
<table class="detail wide_list"> <table class="detail wide_list">
<tr class="list"> <tr class="list">

View File

@ -18,7 +18,15 @@
<p class="declaration"> <p class="declaration">
<code>type TCefResponseFilterRef = class(<a class="normal" href="uCEFBaseRefCounted.TCefBaseRefCountedRef.html">TCefBaseRefCountedRef</a>, <a class="normal" href="uCEFInterfaces.ICefResponseFilter.html">ICefResponseFilter</a>)</code></p> <code>type TCefResponseFilterRef = class(<a class="normal" href="uCEFBaseRefCounted.TCefBaseRefCountedRef.html">TCefBaseRefCountedRef</a>, <a class="normal" href="uCEFInterfaces.ICefResponseFilter.html">ICefResponseFilter</a>)</code></p>
<h2 class="description">Description</h2> <h2 class="description">Description</h2>
<p class="nodescription">This item has no description.</p><span id="PasDoc-Hierarchy"></span><h2 class="hierarchy">Hierarchy</h2> <p>
Reference class implementing a resource filter. </p>
<p>
<p>The functions of this interface will be called on the browser process IO thread.
<p>&lt;see href=&quot;<a href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_response_filter_capi.h">https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_response_filter_capi.h</a>&quot;&gt;CEF source file: /include/capi/cef_response_filter_capi.h (cef_response_filter_t))</p>
<span id="PasDoc-Hierarchy"></span><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TInterfacedObject</li> <ul class="hierarchy"><li class="ancestor">TInterfacedObject</li>
<li class="ancestor"><a class="normal" href="uCEFBaseRefCounted.TCefBaseRefCountedRef.html">TCefBaseRefCountedRef</a></li> <li class="ancestor"><a class="normal" href="uCEFBaseRefCounted.TCefBaseRefCountedRef.html">TCefBaseRefCountedRef</a></li>
<li class="thisitem">TCefResponseFilterRef</li></ul><h2 class="overview">Overview</h2> <li class="thisitem">TCefResponseFilterRef</li></ul><h2 class="overview">Overview</h2>
@ -45,7 +53,9 @@
<td class="itemcode"><span id="InitFilter"></span><code>function <strong>InitFilter</strong>: Boolean; virtual;</code></td> <td class="itemcode"><span id="InitFilter"></span><code>function <strong>InitFilter</strong>: Boolean; virtual;</code></td>
</tr> </tr>
<tr><td colspan="2"> <tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr> <p>
Initialize the response filter. Will only be called a single time. The filter will not be installed if this function returns false (0). </p>
</td></tr>
</table> </table>
<table class="detail wide_list"> <table class="detail wide_list">
<tr class="list"> <tr class="list">
@ -53,7 +63,44 @@
<td class="itemcode"><span id="Filter-Pointer-NativeUInt-NativeUInt-Pointer-NativeUInt-NativeUInt-"></span><code>function <strong>Filter</strong>(data_in: Pointer; data_in_size: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; var data_in_read: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; data_out: Pointer; data_out_size : <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; var data_out_written: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>): <a href="uCEFTypes.html#TCefResponseFilterStatus">TCefResponseFilterStatus</a>; virtual;</code></td> <td class="itemcode"><span id="Filter-Pointer-NativeUInt-NativeUInt-Pointer-NativeUInt-NativeUInt-"></span><code>function <strong>Filter</strong>(data_in: Pointer; data_in_size: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; var data_in_read: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; data_out: Pointer; data_out_size : <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; var data_out_written: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>): <a href="uCEFTypes.html#TCefResponseFilterStatus">TCefResponseFilterStatus</a>; virtual;</code></td>
</tr> </tr>
<tr><td colspan="2"> <tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr> <p>
<p>Called to filter a chunk of data. Expected usage is as follows:
<p></p>
<pre class="preformatted">
1. Read input data from |data_in| and set |data_in_read| to the number of
bytes that were read up to a maximum of |data_in_size|. |data_in| will
be NULL if |data_in_size| is zero.
2. Write filtered output data to |data_out| and set |data_out_written| to
the number of bytes that were written up to a maximum of
|data_out_size|. If no output data was written then all data must be
read from |data_in| (user must set |data_in_read| = |data_in_size|).
3. Return RESPONSE_FILTER_DONE if all output data was written or
RESPONSE_FILTER_NEED_MORE_DATA if output data is still pending.</pre>
<p>
<p>This function will be called repeatedly until the input buffer has been fully read (user sets |data_in_read| = |data_in_size|) and there is no more input data to filter (the resource response is complete). This function may then be called an additional time with an NULL input buffer if the user filled the output buffer (set |data_out_written| = |data_out_size|) and returned RESPONSE_FILTER_NEED_MORE_DATA to indicate that output data is still pending.
<p>Calls to this function will stop when one of the following conditions is met:
<p></p>
<pre class="preformatted">
1. There is no more input data to filter (the resource response is
complete) and the user sets |data_out_written| = 0 or returns
RESPONSE_FILTER_DONE to indicate that all data has been written, or;
2. The user returns RESPONSE_FILTER_ERROR to indicate an error.</pre>
<p>
<p>Do not keep a reference to the buffers passed to this function.
<p></p>
</td></tr>
</table> </table>
<table class="detail wide_list"> <table class="detail wide_list">
<tr class="list"> <tr class="list">

View File

@ -18,7 +18,15 @@
<p class="declaration"> <p class="declaration">
<code>type TCustomResponseFilter = class(<a class="normal" href="uCEFResponseFilter.TCefResponseFilterOwn.html">TCefResponseFilterOwn</a>)</code></p> <code>type TCustomResponseFilter = class(<a class="normal" href="uCEFResponseFilter.TCefResponseFilterOwn.html">TCefResponseFilterOwn</a>)</code></p>
<h2 class="description">Description</h2> <h2 class="description">Description</h2>
<p class="nodescription">This item has no description.</p><span id="PasDoc-Hierarchy"></span><h2 class="hierarchy">Hierarchy</h2> <p>
Custom class implementing a resource filter with events. </p>
<p>
<p>The functions and events of this interface will be called on the browser process IO thread.
<p>&lt;see href=&quot;<a href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_response_filter_capi.h">https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_response_filter_capi.h</a>&quot;&gt;CEF source file: /include/capi/cef_response_filter_capi.h (cef_response_filter_t))</p>
<span id="PasDoc-Hierarchy"></span><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TInterfacedObject</li> <ul class="hierarchy"><li class="ancestor">TInterfacedObject</li>
<li class="ancestor"><a class="normal" href="uCEFBaseRefCounted.TCefBaseRefCountedOwn.html">TCefBaseRefCountedOwn</a></li> <li class="ancestor"><a class="normal" href="uCEFBaseRefCounted.TCefBaseRefCountedOwn.html">TCefBaseRefCountedOwn</a></li>
<li class="ancestor"><a class="normal" href="uCEFResponseFilter.TCefResponseFilterOwn.html">TCefResponseFilterOwn</a></li> <li class="ancestor"><a class="normal" href="uCEFResponseFilter.TCefResponseFilterOwn.html">TCefResponseFilterOwn</a></li>
@ -85,7 +93,9 @@
<td class="itemcode"><span id="InitFilter"></span><code>function <strong>InitFilter</strong>: Boolean; override;</code></td> <td class="itemcode"><span id="InitFilter"></span><code>function <strong>InitFilter</strong>: Boolean; override;</code></td>
</tr> </tr>
<tr><td colspan="2"> <tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr> <p class="inheritdescription">This item has no description. Showing description inherited from <a class="normal" href="uCEFResponseFilter.TCefResponseFilterOwn.html#InitFilter">TCefResponseFilterOwn.InitFilter</a>.</p><p>
Initialize the response filter. Will only be called a single time. The filter will not be installed if this function returns false (0). </p>
</td></tr>
</table> </table>
<table class="detail wide_list"> <table class="detail wide_list">
<tr class="list"> <tr class="list">
@ -93,7 +103,44 @@
<td class="itemcode"><span id="Filter-Pointer-NativeUInt-NativeUInt-Pointer-NativeUInt-NativeUInt-"></span><code>function <strong>Filter</strong>(data_in: Pointer; data_in_size: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; var data_in_read: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; data_out: Pointer; data_out_size : <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; var data_out_written: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>): <a href="uCEFTypes.html#TCefResponseFilterStatus">TCefResponseFilterStatus</a>; override;</code></td> <td class="itemcode"><span id="Filter-Pointer-NativeUInt-NativeUInt-Pointer-NativeUInt-NativeUInt-"></span><code>function <strong>Filter</strong>(data_in: Pointer; data_in_size: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; var data_in_read: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; data_out: Pointer; data_out_size : <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>; var data_out_written: <a href="uCEFTypes.html#NativeUInt">NativeUInt</a>): <a href="uCEFTypes.html#TCefResponseFilterStatus">TCefResponseFilterStatus</a>; override;</code></td>
</tr> </tr>
<tr><td colspan="2"> <tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr> <p class="inheritdescription">This item has no description. Showing description inherited from <a class="normal" href="uCEFResponseFilter.TCefResponseFilterOwn.html#Filter-Pointer-NativeUInt-NativeUInt-Pointer-NativeUInt-NativeUInt-">TCefResponseFilterOwn.Filter</a>.</p><p>
<p>Called to filter a chunk of data. Expected usage is as follows:
<p></p>
<pre class="preformatted">
1. Read input data from |data_in| and set |data_in_read| to the number of
bytes that were read up to a maximum of |data_in_size|. |data_in| will
be NULL if |data_in_size| is zero.
2. Write filtered output data to |data_out| and set |data_out_written| to
the number of bytes that were written up to a maximum of
|data_out_size|. If no output data was written then all data must be
read from |data_in| (user must set |data_in_read| = |data_in_size|).
3. Return RESPONSE_FILTER_DONE if all output data was written or
RESPONSE_FILTER_NEED_MORE_DATA if output data is still pending.</pre>
<p>
<p>This function will be called repeatedly until the input buffer has been fully read (user sets |data_in_read| = |data_in_size|) and there is no more input data to filter (the resource response is complete). This function may then be called an additional time with an NULL input buffer if the user filled the output buffer (set |data_out_written| = |data_out_size|) and returned RESPONSE_FILTER_NEED_MORE_DATA to indicate that output data is still pending.
<p>Calls to this function will stop when one of the following conditions is met:
<p></p>
<pre class="preformatted">
1. There is no more input data to filter (the resource response is
complete) and the user sets |data_out_written| = 0 or returns
RESPONSE_FILTER_DONE to indicate that all data has been written, or;
2. The user returns RESPONSE_FILTER_ERROR to indicate an error.</pre>
<p>
<p>Do not keep a reference to the buffers passed to this function.
<p></p>
</td></tr>
</table> </table>
<table class="detail wide_list"> <table class="detail wide_list">
<tr class="list"> <tr class="list">
@ -110,7 +157,46 @@
<td class="itemcode"><span id="OnFilter"></span><code>property <strong>OnFilter</strong> : <a href="uCEFResponseFilter.html#TOnFilterEvent">TOnFilterEvent</a> read <a href="uCEFResponseFilter.TCustomResponseFilter.html#FOnFilter">FOnFilter</a> write <a href="uCEFResponseFilter.TCustomResponseFilter.html#FOnFilter">FOnFilter</a>;</code></td> <td class="itemcode"><span id="OnFilter"></span><code>property <strong>OnFilter</strong> : <a href="uCEFResponseFilter.html#TOnFilterEvent">TOnFilterEvent</a> read <a href="uCEFResponseFilter.TCustomResponseFilter.html#FOnFilter">FOnFilter</a> write <a href="uCEFResponseFilter.TCustomResponseFilter.html#FOnFilter">FOnFilter</a>;</code></td>
</tr> </tr>
<tr><td colspan="2"> <tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr> <p>
<p>OnFilter is triggered when ICefResponseFilter.Filter is executed to filter a chunk of data.
<p>Expected usage is as follows:
<p></p>
<pre class="preformatted">
1. Read input data from |data_in| and set |data_in_read| to the number of
bytes that were read up to a maximum of |data_in_size|. |data_in| will
be NULL if |data_in_size| is zero.
2. Write filtered output data to |data_out| and set |data_out_written| to
the number of bytes that were written up to a maximum of
|data_out_size|. If no output data was written then all data must be
read from |data_in| (user must set |data_in_read| = |data_in_size|).
3. Return RESPONSE_FILTER_DONE if all output data was written or
RESPONSE_FILTER_NEED_MORE_DATA if output data is still pending.</pre>
<p>
<p>This function will be called repeatedly until the input buffer has been fully read (user sets |data_in_read| = |data_in_size|) and there is no more input data to filter (the resource response is complete). This function may then be called an additional time with an NULL input buffer if the user filled the output buffer (set |data_out_written| = |data_out_size|) and returned RESPONSE_FILTER_NEED_MORE_DATA to indicate that output data is still pending.
<p>Calls to this function will stop when one of the following conditions is met:
<p></p>
<pre class="preformatted">
1. There is no more input data to filter (the resource response is
complete) and the user sets |data_out_written| = 0 or returns
RESPONSE_FILTER_DONE to indicate that all data has been written, or;
2. The user returns RESPONSE_FILTER_ERROR to indicate an error.</pre>
<p>
<p>Do not keep a reference to the buffers passed to this function.
<p></p>
</td></tr>
</table> </table>
<table class="detail wide_list"> <table class="detail wide_list">
<tr class="list"> <tr class="list">
@ -118,7 +204,9 @@
<td class="itemcode"><span id="OnInitFilter"></span><code>property <strong>OnInitFilter</strong> : <a href="uCEFResponseFilter.html#TOnInitFilterEvent">TOnInitFilterEvent</a> read <a href="uCEFResponseFilter.TCustomResponseFilter.html#FOnInitFilter">FOnInitFilter</a> write <a href="uCEFResponseFilter.TCustomResponseFilter.html#FOnInitFilter">FOnInitFilter</a>;</code></td> <td class="itemcode"><span id="OnInitFilter"></span><code>property <strong>OnInitFilter</strong> : <a href="uCEFResponseFilter.html#TOnInitFilterEvent">TOnInitFilterEvent</a> read <a href="uCEFResponseFilter.TCustomResponseFilter.html#FOnInitFilter">FOnInitFilter</a> write <a href="uCEFResponseFilter.TCustomResponseFilter.html#FOnInitFilter">FOnInitFilter</a>;</code></td>
</tr> </tr>
<tr><td colspan="2"> <tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr> <p>
OnInitFilter is triggered when ICefResponseFilter.InitFilter is executed. Set the aResult parameter to install the filter. </p>
</td></tr>
</table> </table>
<hr><span class="appinfo"><em>Generated by <a href="https://pasdoc.github.io/">PasDoc 0.16.0-snapshot</a>. </em> <hr><span class="appinfo"><em>Generated by <a href="https://pasdoc.github.io/">PasDoc 0.16.0-snapshot</a>. </em>
</span> </span>

View File

@ -21,15 +21,15 @@
</tr> </tr>
<tr class="list"> <tr class="list">
<td class="itemname">Class&nbsp;<a class="bold" href="uCEFResponseFilter.TCefResponseFilterRef.html"><code>TCefResponseFilterRef</code></a></td> <td class="itemname">Class&nbsp;<a class="bold" href="uCEFResponseFilter.TCefResponseFilterRef.html"><code>TCefResponseFilterRef</code></a></td>
<td class="itemdesc">&nbsp;</td> <td class="itemdesc"> Reference class implementing a resource filter. </td>
</tr> </tr>
<tr class="list2"> <tr class="list2">
<td class="itemname">Class&nbsp;<a class="bold" href="uCEFResponseFilter.TCefResponseFilterOwn.html"><code>TCefResponseFilterOwn</code></a></td> <td class="itemname">Class&nbsp;<a class="bold" href="uCEFResponseFilter.TCefResponseFilterOwn.html"><code>TCefResponseFilterOwn</code></a></td>
<td class="itemdesc">&nbsp;</td> <td class="itemdesc"> Owned class implementing a resource filter. </td>
</tr> </tr>
<tr class="list"> <tr class="list">
<td class="itemname">Class&nbsp;<a class="bold" href="uCEFResponseFilter.TCustomResponseFilter.html"><code>TCustomResponseFilter</code></a></td> <td class="itemname">Class&nbsp;<a class="bold" href="uCEFResponseFilter.TCustomResponseFilter.html"><code>TCustomResponseFilter</code></a></td>
<td class="itemdesc">&nbsp;</td> <td class="itemdesc"> Custom class implementing a resource filter with events. </td>
</tr> </tr>
</table> </table>
<span id="PasDoc-Types"></span><h3 class="summary">Types</h3> <span id="PasDoc-Types"></span><h3 class="summary">Types</h3>

View File

@ -6619,7 +6619,41 @@ type
/// </remarks> /// </remarks>
ICefResponseFilter = interface(ICefBaseRefCounted) ICefResponseFilter = interface(ICefBaseRefCounted)
['{5013BC3C-F1AE-407A-A571-A4C6B1D6831E}'] ['{5013BC3C-F1AE-407A-A571-A4C6B1D6831E}']
/// <summary>
/// Initialize the response filter. Will only be called a single time. The
/// filter will not be installed if this function returns false (0).
/// </summary>
function InitFilter: Boolean; function InitFilter: Boolean;
/// <summary>
/// <para>Called to filter a chunk of data. Expected usage is as follows:</para>
/// <code>
/// 1. Read input data from |data_in| and set |data_in_read| to the number of
/// bytes that were read up to a maximum of |data_in_size|. |data_in| will
/// be NULL if |data_in_size| is zero.
/// 2. Write filtered output data to |data_out| and set |data_out_written| to
/// the number of bytes that were written up to a maximum of
/// |data_out_size|. If no output data was written then all data must be
/// read from |data_in| (user must set |data_in_read| = |data_in_size|).
/// 3. Return RESPONSE_FILTER_DONE if all output data was written or
/// RESPONSE_FILTER_NEED_MORE_DATA if output data is still pending.
/// </code>
/// <para>This function will be called repeatedly until the input buffer has been
/// fully read (user sets |data_in_read| = |data_in_size|) and there is no
/// more input data to filter (the resource response is complete). This
/// function may then be called an additional time with an NULL input buffer
/// if the user filled the output buffer (set |data_out_written| =
/// |data_out_size|) and returned RESPONSE_FILTER_NEED_MORE_DATA to indicate
/// that output data is still pending.</para>
/// <para>Calls to this function will stop when one of the following conditions is
/// met:</para>
/// <code>
/// 1. There is no more input data to filter (the resource response is
/// complete) and the user sets |data_out_written| = 0 or returns
/// RESPONSE_FILTER_DONE to indicate that all data has been written, or;
/// 2. The user returns RESPONSE_FILTER_ERROR to indicate an error.
/// </code>
/// <para>Do not keep a reference to the buffers passed to this function.</para>
/// </summary>
function Filter(data_in: Pointer; data_in_size: NativeUInt; var data_in_read: NativeUInt; data_out: Pointer; data_out_size : NativeUInt; var data_out_written: NativeUInt): TCefResponseFilterStatus; function Filter(data_in: Pointer; data_in_size: NativeUInt; var data_in_read: NativeUInt; data_out: Pointer; data_out_size : NativeUInt; var data_out_written: NativeUInt): TCefResponseFilterStatus;
end; end;

View File

@ -18,24 +18,113 @@ type
TOnFilterEvent = procedure(Sender: TObject; data_in: Pointer; data_in_size: NativeUInt; var data_in_read: NativeUInt; data_out: Pointer; data_out_size : NativeUInt; var data_out_written: NativeUInt; var aResult : TCefResponseFilterStatus) of object; TOnFilterEvent = procedure(Sender: TObject; data_in: Pointer; data_in_size: NativeUInt; var data_in_read: NativeUInt; data_out: Pointer; data_out_size : NativeUInt; var data_out_written: NativeUInt; var aResult : TCefResponseFilterStatus) of object;
TOnInitFilterEvent = procedure(Sender: TObject; var aResult : boolean) of object; TOnInitFilterEvent = procedure(Sender: TObject; var aResult : boolean) of object;
/// <summary>
/// Reference class implementing a resource filter.
/// </summary>
/// <remarks>
/// <para>The functions of this interface will be called on the browser process IO thread.</para>
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_response_filter_capi.h">CEF source file: /include/capi/cef_response_filter_capi.h (cef_response_filter_t)</see></para>
/// </remarks>
TCefResponseFilterRef = class(TCefBaseRefCountedRef, ICefResponseFilter) TCefResponseFilterRef = class(TCefBaseRefCountedRef, ICefResponseFilter)
protected protected
/// <summary>
/// Initialize the response filter. Will only be called a single time. The
/// filter will not be installed if this function returns false (0).
/// </summary>
function InitFilter: Boolean; virtual; function InitFilter: Boolean; virtual;
/// <summary>
/// <para>Called to filter a chunk of data. Expected usage is as follows:</para>
/// <code>
/// 1. Read input data from |data_in| and set |data_in_read| to the number of
/// bytes that were read up to a maximum of |data_in_size|. |data_in| will
/// be NULL if |data_in_size| is zero.
/// 2. Write filtered output data to |data_out| and set |data_out_written| to
/// the number of bytes that were written up to a maximum of
/// |data_out_size|. If no output data was written then all data must be
/// read from |data_in| (user must set |data_in_read| = |data_in_size|).
/// 3. Return RESPONSE_FILTER_DONE if all output data was written or
/// RESPONSE_FILTER_NEED_MORE_DATA if output data is still pending.
/// </code>
/// <para>This function will be called repeatedly until the input buffer has been
/// fully read (user sets |data_in_read| = |data_in_size|) and there is no
/// more input data to filter (the resource response is complete). This
/// function may then be called an additional time with an NULL input buffer
/// if the user filled the output buffer (set |data_out_written| =
/// |data_out_size|) and returned RESPONSE_FILTER_NEED_MORE_DATA to indicate
/// that output data is still pending.</para>
/// <para>Calls to this function will stop when one of the following conditions is
/// met:</para>
/// <code>
/// 1. There is no more input data to filter (the resource response is
/// complete) and the user sets |data_out_written| = 0 or returns
/// RESPONSE_FILTER_DONE to indicate that all data has been written, or;
/// 2. The user returns RESPONSE_FILTER_ERROR to indicate an error.
/// </code>
/// <para>Do not keep a reference to the buffers passed to this function.</para>
/// </summary>
function Filter(data_in: Pointer; data_in_size: NativeUInt; var data_in_read: NativeUInt; data_out: Pointer; data_out_size : NativeUInt; var data_out_written: NativeUInt): TCefResponseFilterStatus; virtual; function Filter(data_in: Pointer; data_in_size: NativeUInt; var data_in_read: NativeUInt; data_out: Pointer; data_out_size : NativeUInt; var data_out_written: NativeUInt): TCefResponseFilterStatus; virtual;
public public
class function UnWrap(data: Pointer): ICefResponseFilter; class function UnWrap(data: Pointer): ICefResponseFilter;
end; end;
/// <summary>
/// Owned class implementing a resource filter.
/// </summary>
/// <remarks>
/// <para>The functions of this interface will be called on the browser process IO thread.</para>
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_response_filter_capi.h">CEF source file: /include/capi/cef_response_filter_capi.h (cef_response_filter_t)</see></para>
/// </remarks>
TCefResponseFilterOwn = class(TCefBaseRefCountedOwn, ICefResponseFilter) TCefResponseFilterOwn = class(TCefBaseRefCountedOwn, ICefResponseFilter)
protected protected
/// <summary>
/// Initialize the response filter. Will only be called a single time. The
/// filter will not be installed if this function returns false (0).
/// </summary>
function InitFilter: Boolean; virtual; abstract; function InitFilter: Boolean; virtual; abstract;
/// <summary>
/// <para>Called to filter a chunk of data. Expected usage is as follows:</para>
/// <code>
/// 1. Read input data from |data_in| and set |data_in_read| to the number of
/// bytes that were read up to a maximum of |data_in_size|. |data_in| will
/// be NULL if |data_in_size| is zero.
/// 2. Write filtered output data to |data_out| and set |data_out_written| to
/// the number of bytes that were written up to a maximum of
/// |data_out_size|. If no output data was written then all data must be
/// read from |data_in| (user must set |data_in_read| = |data_in_size|).
/// 3. Return RESPONSE_FILTER_DONE if all output data was written or
/// RESPONSE_FILTER_NEED_MORE_DATA if output data is still pending.
/// </code>
/// <para>This function will be called repeatedly until the input buffer has been
/// fully read (user sets |data_in_read| = |data_in_size|) and there is no
/// more input data to filter (the resource response is complete). This
/// function may then be called an additional time with an NULL input buffer
/// if the user filled the output buffer (set |data_out_written| =
/// |data_out_size|) and returned RESPONSE_FILTER_NEED_MORE_DATA to indicate
/// that output data is still pending.</para>
/// <para>Calls to this function will stop when one of the following conditions is
/// met:</para>
/// <code>
/// 1. There is no more input data to filter (the resource response is
/// complete) and the user sets |data_out_written| = 0 or returns
/// RESPONSE_FILTER_DONE to indicate that all data has been written, or;
/// 2. The user returns RESPONSE_FILTER_ERROR to indicate an error.
/// </code>
/// <para>Do not keep a reference to the buffers passed to this function.</para>
/// </summary>
function Filter(data_in: Pointer; data_in_size: NativeUInt; var data_in_read: NativeUInt; data_out: Pointer; data_out_size : NativeUInt; var data_out_written: NativeUInt): TCefResponseFilterStatus; virtual; abstract; function Filter(data_in: Pointer; data_in_size: NativeUInt; var data_in_read: NativeUInt; data_out: Pointer; data_out_size : NativeUInt; var data_out_written: NativeUInt): TCefResponseFilterStatus; virtual; abstract;
public public
constructor Create; virtual; constructor Create; virtual;
end; end;
/// <summary>
/// Custom class implementing a resource filter with events.
/// </summary>
/// <remarks>
/// <para>The functions and events of this interface will be called on the browser process IO thread.</para>
/// <para><see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_response_filter_capi.h">CEF source file: /include/capi/cef_response_filter_capi.h (cef_response_filter_t)</see></para>
/// </remarks>
TCustomResponseFilter = class(TCefResponseFilterOwn) TCustomResponseFilter = class(TCefResponseFilterOwn)
protected protected
FOnFilter : TOnFilterEvent; FOnFilter : TOnFilterEvent;
@ -47,7 +136,42 @@ type
public public
constructor Create; override; constructor Create; override;
/// <summary>
/// <para>OnFilter is triggered when ICefResponseFilter.Filter is executed to filter a chunk of data.</para>
/// <para>Expected usage is as follows:</para>
/// <code>
/// 1. Read input data from |data_in| and set |data_in_read| to the number of
/// bytes that were read up to a maximum of |data_in_size|. |data_in| will
/// be NULL if |data_in_size| is zero.
/// 2. Write filtered output data to |data_out| and set |data_out_written| to
/// the number of bytes that were written up to a maximum of
/// |data_out_size|. If no output data was written then all data must be
/// read from |data_in| (user must set |data_in_read| = |data_in_size|).
/// 3. Return RESPONSE_FILTER_DONE if all output data was written or
/// RESPONSE_FILTER_NEED_MORE_DATA if output data is still pending.
/// </code>
/// <para>This function will be called repeatedly until the input buffer has been
/// fully read (user sets |data_in_read| = |data_in_size|) and there is no
/// more input data to filter (the resource response is complete). This
/// function may then be called an additional time with an NULL input buffer
/// if the user filled the output buffer (set |data_out_written| =
/// |data_out_size|) and returned RESPONSE_FILTER_NEED_MORE_DATA to indicate
/// that output data is still pending.</para>
/// <para>Calls to this function will stop when one of the following conditions is
/// met:</para>
/// <code>
/// 1. There is no more input data to filter (the resource response is
/// complete) and the user sets |data_out_written| = 0 or returns
/// RESPONSE_FILTER_DONE to indicate that all data has been written, or;
/// 2. The user returns RESPONSE_FILTER_ERROR to indicate an error.
/// </code>
/// <para>Do not keep a reference to the buffers passed to this function.</para>
/// </summary>
property OnFilter : TOnFilterEvent read FOnFilter write FOnFilter; property OnFilter : TOnFilterEvent read FOnFilter write FOnFilter;
/// <summary>
/// OnInitFilter is triggered when ICefResponseFilter.InitFilter is executed.
/// Set the aResult parameter to install the filter.
/// </summary>
property OnInitFilter : TOnInitFilterEvent read FOnInitFilter write FOnInitFilter; property OnInitFilter : TOnInitFilterEvent read FOnInitFilter write FOnInitFilter;
end; end;

View File

@ -2,7 +2,7 @@
"UpdateLazPackages" : [ "UpdateLazPackages" : [
{ {
"ForceNotify" : true, "ForceNotify" : true,
"InternalVersion" : 584, "InternalVersion" : 585,
"Name" : "cef4delphi_lazarus.lpk", "Name" : "cef4delphi_lazarus.lpk",
"Version" : "123.0.13" "Version" : "123.0.13"
} }