WebNavigationData.h [plain text]
#ifndef WebNavigationData_h
#define WebNavigationData_h
#include "WebKit.h"
#include <WebCore/BString.h>
#include <WebCore/COMPtr.h>
class WebNavigationData : public IWebNavigationData {
public:
static WebNavigationData* createInstance(const WTF::String& url, const WTF::String& title, IWebURLRequest*, IWebURLResponse*, bool hasSubstituteData, const WTF::String& clientRedirectSource);
private:
WebNavigationData(const WTF::String& url, const WTF::String& title, IWebURLRequest*, IWebURLResponse*, bool hasSubstituteData, const WTF::String& clientRedirectSource);
~WebNavigationData();
public:
virtual HRESULT STDMETHODCALLTYPE QueryInterface(_In_ REFIID riid, _COM_Outptr_ void** ppvObject);
virtual ULONG STDMETHODCALLTYPE AddRef();
virtual ULONG STDMETHODCALLTYPE Release();
virtual HRESULT STDMETHODCALLTYPE url(__deref_opt_out BSTR*);
virtual HRESULT STDMETHODCALLTYPE title(__deref_opt_out BSTR*);
virtual HRESULT STDMETHODCALLTYPE originalRequest(_COM_Outptr_opt_ IWebURLRequest**);
virtual HRESULT STDMETHODCALLTYPE response(_COM_Outptr_opt_ IWebURLResponse**);
virtual HRESULT STDMETHODCALLTYPE hasSubstituteData(_Out_ BOOL*);
virtual HRESULT STDMETHODCALLTYPE clientRedirectSource(__deref_opt_out BSTR*);
private:
ULONG m_refCount { 0 };
WebCore::BString m_url;
WebCore::BString m_title;
COMPtr<IWebURLRequest> m_request;
COMPtr<IWebURLResponse> m_response;
bool m_hasSubstituteData;
WebCore::BString m_clientRedirectSource;
};
#endif // WebNavigationData_h