summaryrefslogtreecommitdiffstats
path: root/src/core/authentication_dialog_controller_p.h
blob: 6c35a60dc66fadfee30ca5a10402ab8c23542283 (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
28
// 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

#ifndef AUTHENTICATION_DIALOG_CONTROLLER_P_H
#define AUTHENTICATION_DIALOG_CONTROLLER_P_H

#include "base/memory/weak_ptr.h"

#include "login_delegate_qt.h"

namespace QtWebEngineCore {

class AuthenticationDialogControllerPrivate {

public:
    AuthenticationDialogControllerPrivate(base::WeakPtr<LoginDelegateQt> loginDelegate);
    void dialogFinished(bool accepted, const QString &user = QString(), const QString &password = QString());

    base::WeakPtr<LoginDelegateQt> loginDelegate;
    QUrl url;
    QString host;
    QString realm;
    bool isProxy;
};

} // namespace QtWebEngineCore

#endif // AUTHENTICATION_DIALOG_CONTROLLER_H