Commit e11cd75f authored by Andras Becsi's avatar Andras Becsi
Browse files

Add API for intercepting url requests


This patch is adding a QWebEngineUrlRequestInterceptor interface
that can be subclassed to observe or intercept all resource requests
making it possible to implement browser features like adblocking
and setting custom request headers for url requests.
The interceptRequest virtual function is executed on the IO thread.
This patch also includes a unit test for the testable API parts.

Change-Id: Ibe740fc55551a9a5da40794088ccb6d03d913631
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
Reviewed-by: default avatarMartin Rotter <rotter.martinos@gmail.com>
Reviewed-by: default avatarAndras Becsi <andras.becsi@theqtcompany.com>
parent 853d5867
No related merge requests found
Showing with 656 additions and 17 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment