WebURLProtectionSpace.h [plain text]
#ifndef WebURLProtectionSpace_h
#define WebURLProtectionSpace_h
#include "WebKit.h"
#include <WebCore/ProtectionSpace.h>
class WebURLProtectionSpace : public IWebURLProtectionSpace
{
public:
static WebURLProtectionSpace* createInstance();
static WebURLProtectionSpace* createInstance(const WebCore::ProtectionSpace&);
private:
WebURLProtectionSpace(const WebCore::ProtectionSpace&);
~WebURLProtectionSpace();
public:
virtual HRESULT STDMETHODCALLTYPE QueryInterface(_In_ REFIID riid, _COM_Outptr_ void** ppvObject);
virtual ULONG STDMETHODCALLTYPE AddRef();
virtual ULONG STDMETHODCALLTYPE Release();
virtual HRESULT STDMETHODCALLTYPE authenticationMethod(__deref_opt_out BSTR* result);
virtual HRESULT STDMETHODCALLTYPE host(__deref_opt_out BSTR* result);
virtual HRESULT STDMETHODCALLTYPE initWithHost(_In_ BSTR host, int port, _In_ BSTR protocol, _In_ BSTR realm, _In_ BSTR authenticationMethod);
virtual HRESULT STDMETHODCALLTYPE initWithProxyHost(_In_ BSTR host, int port, _In_ BSTR proxyType, _In_ BSTR realm, _In_ BSTR authenticationMethod);
virtual HRESULT STDMETHODCALLTYPE isProxy(_Out_ BOOL* result);
virtual HRESULT STDMETHODCALLTYPE port(_Out_ int* result);
virtual HRESULT STDMETHODCALLTYPE protocol(__deref_opt_out BSTR* result);
virtual HRESULT STDMETHODCALLTYPE proxyType(__deref_opt_out BSTR* result);
virtual HRESULT STDMETHODCALLTYPE realm(__deref_opt_out BSTR* result);
virtual HRESULT STDMETHODCALLTYPE receivesCredentialSecurely(_Out_ BOOL* result);
const WebCore::ProtectionSpace& protectionSpace() const;
protected:
ULONG m_refCount { 0 };
WebCore::ProtectionSpace m_protectionSpace;
};
#endif