AuthenticationChallenge.h [plain text]
#ifndef AuthenticationChallenge_h
#define AuthenticationChallenge_h
#include "AuthenticationChallengeBase.h"
#include "AuthenticationClient.h"
typedef struct _SoupAuth SoupAuth;
typedef struct _SoupMessage SoupMessage;
namespace WebCore {
class AuthenticationChallenge : public AuthenticationChallengeBase {
public:
AuthenticationChallenge()
{
}
AuthenticationChallenge(const ProtectionSpace& protectionSpace, const Credential& proposedCredential, unsigned previousFailureCount, const ResourceResponse& response, const ResourceError& error)
: AuthenticationChallengeBase(protectionSpace, proposedCredential, previousFailureCount, response, error)
{
}
AuthenticationChallenge(SoupMessage*, SoupAuth*, bool retrying, AuthenticationClient* = nullptr);
AuthenticationClient* authenticationClient() const { return m_authenticationClient.get(); }
SoupAuth* soupAuth() const { return m_soupAuth.get(); }
void setProposedCredential(const Credential& credential) { m_proposedCredential = credential; }
private:
friend class AuthenticationChallengeBase;
static bool platformCompare(const AuthenticationChallenge&, const AuthenticationChallenge&);
GRefPtr<SoupAuth> m_soupAuth;
RefPtr<AuthenticationClient> m_authenticationClient;
};
}
#endif