summaryrefslogtreecommitdiffstats
path: root/src/core/api/qwebengineurlrequestinterceptor.h
blob: 49bac424481fe88eb8fdcac6837bae5e40cec863 (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
26
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
// Qt-Security score:significant reason:default

#ifndef QWEBENINGEURLREQUESTINTERCEPTOR_H
#define QWEBENINGEURLREQUESTINTERCEPTOR_H

#include <QtWebEngineCore/qtwebenginecoreglobal.h>
#include <QtWebEngineCore/qwebengineurlrequestinfo.h>

#include <QtCore/qobject.h>

QT_BEGIN_NAMESPACE

class Q_WEBENGINECORE_EXPORT QWebEngineUrlRequestInterceptor : public QObject
{
    Q_OBJECT
public:
    explicit QWebEngineUrlRequestInterceptor(QObject *p = nullptr) : QObject(p) {}
    ~QWebEngineUrlRequestInterceptor() override;
    virtual void interceptRequest(QWebEngineUrlRequestInfo &info) = 0;
};

QT_END_NAMESPACE

#endif // QWEBENINGEURLREQUESTINTERCEPTOR_H