| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef URLINTERCEPTOR_H |
| 4 | #define URLINTERCEPTOR_H |
| 5 | |
| 6 | #include <QObject> |
| 7 | #include <QWebEngineUrlRequestInfo> |
| 8 | |
| 9 | class UrlInterceptor : public QObject { |
| 10 | Q_OBJECT |
| 11 | |
| 12 | public: |
| 13 | explicit UrlInterceptor(QObject* parent = nullptr) : QObject(parent) {} |
| 14 | |
| 15 | virtual void interceptRequest(QWebEngineUrlRequestInfo& info) = 0; |
| 16 | }; |
| 17 | |
| 18 | #endif // URLINTERCEPTOR_H |