WebURLAuthenticationChallenge.h [plain text]
#ifndef WebURLAuthenticationChallenge_h
#define WebURLAuthenticationChallenge_h
#include "WebKit.h"
#include <WebCore/AuthenticationChallenge.h>
#include <WebCore/COMPtr.h>
class DECLSPEC_UUID("FD3B2381-0BB6-4B59-AF09-0E599C8901CF") WebURLAuthenticationChallenge : public IWebURLAuthenticationChallenge {
public:
static WebURLAuthenticationChallenge* createInstance(const WebCore::AuthenticationChallenge&);
static WebURLAuthenticationChallenge* createInstance(const WebCore::AuthenticationChallenge&, IWebURLAuthenticationChallengeSender*);
private:
WebURLAuthenticationChallenge(const WebCore::AuthenticationChallenge&, IWebURLAuthenticationChallengeSender*);
~WebURLAuthenticationChallenge();
public:
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObject);
virtual ULONG STDMETHODCALLTYPE AddRef(void);
virtual ULONG STDMETHODCALLTYPE Release(void);
virtual HRESULT STDMETHODCALLTYPE initWithProtectionSpace(
IWebURLProtectionSpace* space,
IWebURLCredential* proposedCredential,
int previousFailureCount,
IWebURLResponse* failureResponse,
IWebError* error,
IWebURLAuthenticationChallengeSender* sender);
virtual HRESULT STDMETHODCALLTYPE initWithAuthenticationChallenge(
IWebURLAuthenticationChallenge* challenge,
IWebURLAuthenticationChallengeSender* sender);
virtual HRESULT STDMETHODCALLTYPE error(
IWebError** result);
virtual HRESULT STDMETHODCALLTYPE failureResponse(
IWebURLResponse** result);
virtual HRESULT STDMETHODCALLTYPE previousFailureCount(
UINT* result);
virtual HRESULT STDMETHODCALLTYPE proposedCredential(
IWebURLCredential** result);
virtual HRESULT STDMETHODCALLTYPE protectionSpace(
IWebURLProtectionSpace** result);
virtual HRESULT STDMETHODCALLTYPE sender(
IWebURLAuthenticationChallengeSender** sender);
const WebCore::AuthenticationChallenge& authenticationChallenge() const;
protected:
ULONG m_refCount;
WebCore::AuthenticationChallenge m_authenticationChallenge;
COMPtr<IWebURLAuthenticationChallengeSender> m_sender;
};
#endif