blob: 31f125627b4dffa0addad46311a5b4116b1e1dab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef ADBLOCKINTERCEPTOR_H
#define ADBLOCKINTERCEPTOR_H
#include <QWebEngineUrlRequestInterceptor>
#include "blockersubscription.h"
class UrlRequestInterceptor : public QWebEngineUrlRequestInterceptor
{
Q_OBJECT
public:
explicit UrlRequestInterceptor(QObject *parent = 0);
void interceptRequest(QWebEngineUrlRequestInfo &info);
void setSubscription(BlockerSubscription *subscription);
signals:
public slots:
private:
BlockerSubscription *m_sub;
};
#endif // ADBLOCKINTERCEPTOR_H
|