mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add support for response filtering (issue #515).
- Add a new CefRequestHandler::GetResourceResponseFilter method and CefResponseFilter class.
This commit is contained in:
@@ -2304,7 +2304,7 @@ typedef enum {
|
||||
// If the `--no-referrers` command-line flag is specified then the policy value
|
||||
// will be ignored and the Referrer value will never be sent.
|
||||
///
|
||||
typedef enum {
|
||||
typedef enum {
|
||||
///
|
||||
// Always send the complete Referrer value.
|
||||
///
|
||||
@@ -2341,6 +2341,28 @@ typedef enum {
|
||||
REFERRER_POLICY_ORIGIN_WHEN_CROSS_ORIGIN,
|
||||
} cef_referrer_policy_t;
|
||||
|
||||
///
|
||||
// Return values for CefResponseFilter::Filter().
|
||||
///
|
||||
typedef enum {
|
||||
///
|
||||
// Some or all of the pre-filter data was read successfully but more data is
|
||||
// needed in order to continue filtering (filtered output is pending).
|
||||
///
|
||||
RESPONSE_FILTER_NEED_MORE_DATA,
|
||||
|
||||
///
|
||||
// Some or all of the pre-filter data was read successfully and all available
|
||||
// filtered output has been written.
|
||||
///
|
||||
RESPONSE_FILTER_DONE,
|
||||
|
||||
///
|
||||
// An error occurred during filtering.
|
||||
///
|
||||
RESPONSE_FILTER_ERROR
|
||||
} cef_response_filter_status_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user