summaryrefslogtreecommitdiffstats
path: root/src/core/quota_request_controller.h
blob: d39a209d334f40d74abb157f6e1cb2b2207e779f (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) 2017 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 QUOTA_REQUEST_CONTROLLER_H
#define QUOTA_REQUEST_CONTROLLER_H

#include "request_controller.h"

namespace QtWebEngineCore {

class QuotaRequestController : public RequestController {
public:
    QuotaRequestController(QUrl origin, qint64 requestedSize)
        : RequestController(std::move(origin))
        , m_requestedSize(requestedSize)
    {}

    qint64 requestedSize() const { return m_requestedSize; }

private:
    qint64 m_requestedSize;
};

} // namespace QtWebEngineCore

#endif // QUOTA_REQUEST_CONTROLLER_H