summaryrefslogtreecommitdiff
path: root/src/core/api/qwebengineurlresponseinterceptor.h
blob: 505acce57234c4da9e7438dfa5169aab0dc1f837 (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
27
// Copyright (C) 2023 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

#ifndef QWEBENGINEURLRESPONSEINTERCEPTOR_H
#define QWEBENGINEURLRESPONSEINTERCEPTOR_H

#include <QtWebEngineCore/qtwebenginecoreglobal.h>

#include <QtCore/QObject>

QT_BEGIN_NAMESPACE

class QWebEngineUrlResponseInfo;

class Q_WEBENGINECORE_EXPORT QWebEngineUrlResponseInterceptor : public QObject
{
    Q_OBJECT
    Q_DISABLE_COPY(QWebEngineUrlResponseInterceptor)
public:
    explicit QWebEngineUrlResponseInterceptor(QObject *p = nullptr) : QObject(p) { }

    virtual void interceptResponseHeaders(QWebEngineUrlResponseInfo &info) = 0;
};

QT_END_NAMESPACE

#endif // QWEBENGINEURLRESPONSEINTERCEPTOR_H