| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef ADBLOCKURLINTERCEPTOR_H |
| 4 | #define ADBLOCKURLINTERCEPTOR_H |
| 5 | |
| 6 | #include "network-web/webengine//urlinterceptor.h" |
| 7 | |
| 8 | class AdBlockManager; |
| 9 | |
| 10 | class AdBlockUrlInterceptor : public UrlInterceptor { |
| 11 | Q_OBJECT |
| 12 | |
| 13 | public: |
| 14 | explicit AdBlockUrlInterceptor(AdBlockManager* manager); |
| 15 | |
| 16 | void interceptRequest(QWebEngineUrlRequestInfo& info); |
| 17 | |
| 18 | private: |
| 19 | AdBlockManager* m_manager; |
| 20 | }; |
| 21 | |
| 22 | #endif // ADBLOCKURLINTERCEPTOR_H |