blob: 061b626184323ab41efddfd9af3b0ed7167c2b58 (
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
25
|
#ifndef ADBLOCKINTERCEPTOR_H
#define ADBLOCKINTERCEPTOR_H
#include <QWebEngineUrlRequestInterceptor>
#include "adblockrule.h"
class AdBlockInterceptor : public QWebEngineUrlRequestInterceptor
{
Q_OBJECT
public:
explicit AdBlockInterceptor(QObject *parent = 0);
void interceptRequest(QWebEngineUrlRequestInfo &info);
int loadSubscription(const QString &subpath);
signals:
public slots:
private:
QList<AdBlockRule*> m_urlBlacklist;
};
#endif // ADBLOCKINTERCEPTOR_H
|