diff --git a/docs/cef4delphi.chm b/docs/cef4delphi.chm
index 0cc127a8..7b9b74cb 100644
Binary files a/docs/cef4delphi.chm and b/docs/cef4delphi.chm differ
diff --git a/docs/html/AllClasses.html b/docs/html/AllClasses.html
index 82bcf869..016e8ef3 100644
--- a/docs/html/AllClasses.html
+++ b/docs/html/AllClasses.html
@@ -2484,12 +2484,12 @@
TCefResponseFilterOwn |
uCEFResponseFilter |
- |
+ Owned class implementing a resource filter. |
TCefResponseFilterRef |
uCEFResponseFilter |
- |
+ Reference class implementing a resource filter. |
TCefResponseRef |
@@ -3408,7 +3408,7 @@
TCustomResponseFilter |
uCEFResponseFilter |
- |
+ Custom class implementing a resource filter with events. |
TCustomServerHandler |
diff --git a/docs/html/AllIdentifiers.html b/docs/html/AllIdentifiers.html
index 9b7dbe05..b3ce798b 100644
--- a/docs/html/AllIdentifiers.html
+++ b/docs/html/AllIdentifiers.html
@@ -11093,12 +11093,12 @@ Ranges:
TCefResponseFilterOwn |
uCEFResponseFilter |
- |
+ Owned class implementing a resource filter. |
TCefResponseFilterRef |
uCEFResponseFilter |
- |
+ Reference class implementing a resource filter. |
TCefResponseFilterStatus |
@@ -12282,7 +12282,7 @@ Ranges:
TCustomResponseFilter |
uCEFResponseFilter |
- |
+ Custom class implementing a resource filter with events. |
TCustomServerHandler |
diff --git a/docs/html/cef4delphi.log b/docs/html/cef4delphi.log
index 0f493fca..9fc4d8d2 100644
--- a/docs/html/cef4delphi.log
+++ b/docs/html/cef4delphi.log
@@ -925,12 +925,12 @@ published.gif
automated.gif
pasdoc.css
-Compile time: 0 minutes, 14 seconds
+Compile time: 0 minutes, 15 seconds
16,138 Topics
-137,728 Local links
+137,730 Local links
35 Internet links
5 Graphics
-Created c:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\docs\cef4delphi.chm, 3,516,164 bytes
-Compression decreased file by 22,971,062 bytes.
+Created c:\Users\usuario\Documents\Embarcadero\Studio\Projects\CEF4Delphi\docs\cef4delphi.chm, 3,522,122 bytes
+Compression decreased file by 22,975,919 bytes.
diff --git a/docs/html/uCEFInterfaces.ICefResponseFilter.html b/docs/html/uCEFInterfaces.ICefResponseFilter.html
index d93a137b..98f06b52 100644
--- a/docs/html/uCEFInterfaces.ICefResponseFilter.html
+++ b/docs/html/uCEFInterfaces.ICefResponseFilter.html
@@ -49,7 +49,9 @@
function InitFilter: Boolean; |
- This item has no description. Attributes
+
+ Initialize the response filter. Will only be called a single time. The filter will not be installed if this function returns false (0).
+Attributes
- GUID['{5013BC3C-F1AE-407A-A571-A4C6B1D6831E}']
@@ -62,7 +64,44 @@
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; |
|
- This item has no description. |
+
+
+
+
Called to filter a chunk of data. Expected usage is as follows:
+
+
+
+
+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.
+
+
+
+
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.
+
+
Calls to this function will stop when one of the following conditions is met:
+
+
+
+
+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.
+
+
+
+
Do not keep a reference to the buffers passed to this function.
+
+
+
Generated by PasDoc 0.16.0-snapshot.
diff --git a/docs/html/uCEFResponseFilter.TCefResponseFilterOwn.html b/docs/html/uCEFResponseFilter.TCefResponseFilterOwn.html
index eae4bfc5..85e4fa7d 100644
--- a/docs/html/uCEFResponseFilter.TCefResponseFilterOwn.html
+++ b/docs/html/uCEFResponseFilter.TCefResponseFilterOwn.html
@@ -18,7 +18,15 @@
type TCefResponseFilterOwn = class(TCefBaseRefCountedOwn, ICefResponseFilter)
Description
-This item has no description.
Hierarchy
+
+ Owned class implementing a resource filter.
+
+
+
+
The functions of this interface will be called on the browser process IO thread.
+
+
<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))
+Hierarchy
Overview
@@ -45,7 +53,9 @@
function InitFilter: Boolean; virtual; abstract; |
- This item has no description. |
+
+ Initialize the response filter. Will only be called a single time. The filter will not be installed if this function returns false (0).
+
@@ -53,7 +63,44 @@
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; |
- This item has no description. |
+
+
+
+
Called to filter a chunk of data. Expected usage is as follows:
+
+
+
+
+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.
+
+
+
+
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.
+
+
Calls to this function will stop when one of the following conditions is met:
+
+
+
+
+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.
+
+
+
+
Do not keep a reference to the buffers passed to this function.
+
+
+
diff --git a/docs/html/uCEFResponseFilter.TCefResponseFilterRef.html b/docs/html/uCEFResponseFilter.TCefResponseFilterRef.html
index fafe2f95..c42a236b 100644
--- a/docs/html/uCEFResponseFilter.TCefResponseFilterRef.html
+++ b/docs/html/uCEFResponseFilter.TCefResponseFilterRef.html
@@ -18,7 +18,15 @@
type TCefResponseFilterRef = class(TCefBaseRefCountedRef, ICefResponseFilter)
Description
-This item has no description.
Hierarchy
+
+ Reference class implementing a resource filter.
+
+
+
+
The functions of this interface will be called on the browser process IO thread.
+
+
<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))
+Hierarchy
Overview
@@ -45,7 +53,9 @@
function InitFilter: Boolean; virtual; |
- This item has no description. |
+
+ Initialize the response filter. Will only be called a single time. The filter will not be installed if this function returns false (0).
+
@@ -53,7 +63,44 @@
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; |
- This item has no description. |
+
+
+
+
Called to filter a chunk of data. Expected usage is as follows:
+
+
+
+
+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.
+
+
+
+
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.
+
+
Calls to this function will stop when one of the following conditions is met:
+
+
+
+
+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.
+
+
+
+
Do not keep a reference to the buffers passed to this function.
+
+
+
diff --git a/docs/html/uCEFResponseFilter.TCustomResponseFilter.html b/docs/html/uCEFResponseFilter.TCustomResponseFilter.html
index 90095f1d..6521d588 100644
--- a/docs/html/uCEFResponseFilter.TCustomResponseFilter.html
+++ b/docs/html/uCEFResponseFilter.TCustomResponseFilter.html
@@ -18,7 +18,15 @@
type TCustomResponseFilter = class(TCefResponseFilterOwn)
Description
-This item has no description.
Hierarchy
+
+ Custom class implementing a resource filter with events.
+
+
+
+
The functions and events of this interface will be called on the browser process IO thread.
+
+
<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))
+Hierarchy
- This item has no description. |
+This item has no description. Showing description inherited from TCefResponseFilterOwn.InitFilter.
+ Initialize the response filter. Will only be called a single time. The filter will not be installed if this function returns false (0).
+
@@ -93,7 +103,44 @@
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; override; |
- This item has no description. |
+This item has no description. Showing description inherited from TCefResponseFilterOwn.Filter.
+
+
+
Called to filter a chunk of data. Expected usage is as follows:
+
+
+
+
+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.
+
+
+
+
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.
+
+
Calls to this function will stop when one of the following conditions is met:
+
+
+
+
+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.
+
+
+
+
Do not keep a reference to the buffers passed to this function.
+
+
+
@@ -110,7 +157,46 @@
property OnFilter : TOnFilterEvent read FOnFilter write FOnFilter; |
- This item has no description. |
+
+
+
+
OnFilter is triggered when ICefResponseFilter.Filter is executed to filter a chunk of data.
+
+
Expected usage is as follows:
+
+
+
+
+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.
+
+
+
+
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.
+
+
Calls to this function will stop when one of the following conditions is met:
+
+
+
+
+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.
+
+
+
+
Do not keep a reference to the buffers passed to this function.
+
+
+
@@ -118,7 +204,9 @@
property OnInitFilter : TOnInitFilterEvent read FOnInitFilter write FOnInitFilter; |
- This item has no description. |
+
+ OnInitFilter is triggered when ICefResponseFilter.InitFilter is executed. Set the aResult parameter to install the filter.
+
Generated by PasDoc 0.16.0-snapshot.
diff --git a/docs/html/uCEFResponseFilter.html b/docs/html/uCEFResponseFilter.html
index bec487a3..04aff2ef 100644
--- a/docs/html/uCEFResponseFilter.html
+++ b/docs/html/uCEFResponseFilter.html
@@ -21,15 +21,15 @@
Class TCefResponseFilterRef |
- |
+ Reference class implementing a resource filter. |
Class TCefResponseFilterOwn |
- |
+ Owned class implementing a resource filter. |
Class TCustomResponseFilter |
- |
+ Custom class implementing a resource filter with events. |
Types
diff --git a/source/uCEFInterfaces.pas b/source/uCEFInterfaces.pas
index 9805ed74..703e2312 100644
--- a/source/uCEFInterfaces.pas
+++ b/source/uCEFInterfaces.pas
@@ -6619,7 +6619,41 @@ type
///
ICefResponseFilter = interface(ICefBaseRefCounted)
['{5013BC3C-F1AE-407A-A571-A4C6B1D6831E}']
+ ///
+ /// Initialize the response filter. Will only be called a single time. The
+ /// filter will not be installed if this function returns false (0).
+ ///
function InitFilter: Boolean;
+ ///
+ /// Called to filter a chunk of data. Expected usage is as follows:
+ ///
+ /// 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.
+ ///
+ /// 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.
+ /// Calls to this function will stop when one of the following conditions is
+ /// met:
+ ///
+ /// 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.
+ ///
+ /// Do not keep a reference to the buffers passed to this function.
+ ///
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;
diff --git a/source/uCEFResponseFilter.pas b/source/uCEFResponseFilter.pas
index 2cff14b3..3f4bd794 100644
--- a/source/uCEFResponseFilter.pas
+++ b/source/uCEFResponseFilter.pas
@@ -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;
TOnInitFilterEvent = procedure(Sender: TObject; var aResult : boolean) of object;
+ ///
+ /// Reference class implementing a resource filter.
+ ///
+ ///
+ /// The functions of this interface will be called on the browser process IO thread.
+ /// CEF source file: /include/capi/cef_response_filter_capi.h (cef_response_filter_t)
+ ///
TCefResponseFilterRef = class(TCefBaseRefCountedRef, ICefResponseFilter)
protected
+ ///
+ /// Initialize the response filter. Will only be called a single time. The
+ /// filter will not be installed if this function returns false (0).
+ ///
function InitFilter: Boolean; virtual;
+ ///
+ /// Called to filter a chunk of data. Expected usage is as follows:
+ ///
+ /// 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.
+ ///
+ /// 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.
+ /// Calls to this function will stop when one of the following conditions is
+ /// met:
+ ///
+ /// 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.
+ ///
+ /// Do not keep a reference to the buffers passed to this function.
+ ///
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
class function UnWrap(data: Pointer): ICefResponseFilter;
end;
+ ///
+ /// Owned class implementing a resource filter.
+ ///
+ ///
+ /// The functions of this interface will be called on the browser process IO thread.
+ /// CEF source file: /include/capi/cef_response_filter_capi.h (cef_response_filter_t)
+ ///
TCefResponseFilterOwn = class(TCefBaseRefCountedOwn, ICefResponseFilter)
protected
+ ///
+ /// Initialize the response filter. Will only be called a single time. The
+ /// filter will not be installed if this function returns false (0).
+ ///
function InitFilter: Boolean; virtual; abstract;
+ ///
+ /// Called to filter a chunk of data. Expected usage is as follows:
+ ///
+ /// 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.
+ ///
+ /// 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.
+ /// Calls to this function will stop when one of the following conditions is
+ /// met:
+ ///
+ /// 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.
+ ///
+ /// Do not keep a reference to the buffers passed to this function.
+ ///
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
constructor Create; virtual;
end;
+ ///
+ /// Custom class implementing a resource filter with events.
+ ///
+ ///
+ /// The functions and events of this interface will be called on the browser process IO thread.
+ /// CEF source file: /include/capi/cef_response_filter_capi.h (cef_response_filter_t)
+ ///
TCustomResponseFilter = class(TCefResponseFilterOwn)
protected
FOnFilter : TOnFilterEvent;
@@ -47,7 +136,42 @@ type
public
constructor Create; override;
+ ///
+ /// OnFilter is triggered when ICefResponseFilter.Filter is executed to filter a chunk of data.
+ /// Expected usage is as follows:
+ ///
+ /// 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.
+ ///
+ /// 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.
+ /// Calls to this function will stop when one of the following conditions is
+ /// met:
+ ///
+ /// 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.
+ ///
+ /// Do not keep a reference to the buffers passed to this function.
+ ///
property OnFilter : TOnFilterEvent read FOnFilter write FOnFilter;
+ ///
+ /// OnInitFilter is triggered when ICefResponseFilter.InitFilter is executed.
+ /// Set the aResult parameter to install the filter.
+ ///
property OnInitFilter : TOnInitFilterEvent read FOnInitFilter write FOnInitFilter;
end;
diff --git a/update_CEF4Delphi.json b/update_CEF4Delphi.json
index 17c245ed..d7b0f524 100644
--- a/update_CEF4Delphi.json
+++ b/update_CEF4Delphi.json
@@ -2,7 +2,7 @@
"UpdateLazPackages" : [
{
"ForceNotify" : true,
- "InternalVersion" : 584,
+ "InternalVersion" : 585,
"Name" : "cef4delphi_lazarus.lpk",
"Version" : "123.0.13"
}