summaryrefslogtreecommitdiffstats
path: root/src/core/custom_handlers/register_protocol_handler_request_controller.h
blob: 6305ce5b746b8f4a25f233c085cf7813c4a34587 (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) 2018 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 REGISTER_PROTOCOL_HANDLER_REQUEST_CONTROLLER_H
#define REGISTER_PROTOCOL_HANDLER_REQUEST_CONTROLLER_H

#include "request_controller.h"

namespace QtWebEngineCore {

class RegisterProtocolHandlerRequestController : public RequestController {
public:
    RegisterProtocolHandlerRequestController(QUrl origin, QString scheme)
        : RequestController(std::move(origin))
        , m_scheme(std::move(scheme))
    {}

    QString scheme() const { return m_scheme; }

private:
    QString m_scheme;
};

} // namespace QtWebEngineCore

#endif // REGISTER_PROTOCOL_HANDLER_REQUEST_CONTROLLER_H