webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
HistoryDelegate.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  * notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
17  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24  */
25 
26 #ifndef HistoryDelegate_h
27 #define HistoryDelegate_h
28 
29 #include <WebKit/WebKit.h>
30 
31 class HistoryDelegate : public IWebHistoryDelegate {
32 public:
34  virtual ~HistoryDelegate();
35 
36  // IUnknown
37  virtual HRESULT STDMETHODCALLTYPE QueryInterface(_In_ REFIID riid, _COM_Outptr_ void** ppvObject);
38  virtual ULONG STDMETHODCALLTYPE AddRef();
39  virtual ULONG STDMETHODCALLTYPE Release();
40 
41  // IWebHistoryDelegate
42  virtual HRESULT STDMETHODCALLTYPE didNavigateWithNavigationData(_In_opt_ IWebView*, _In_opt_ IWebNavigationData*, _In_opt_ IWebFrame*);
43  virtual HRESULT STDMETHODCALLTYPE didPerformClientRedirectFromURL(_In_opt_ IWebView*, _In_ BSTR sourceURL, _In_ BSTR destinationURL, _In_opt_ IWebFrame*);
44  virtual HRESULT STDMETHODCALLTYPE didPerformServerRedirectFromURL(_In_opt_ IWebView*, _In_ BSTR sourceURL, _In_ BSTR destinationURL, _In_opt_ IWebFrame*);
45  virtual HRESULT STDMETHODCALLTYPE updateHistoryTitle(_In_opt_ IWebView*, _In_ BSTR title, _In_ BSTR url);
46  virtual HRESULT STDMETHODCALLTYPE populateVisitedLinksForWebView(_In_opt_ IWebView*);
47 
48 private:
49  ULONG m_refCount { 1 };
50 };
51 
52 #endif // HistoryDelegate_h
virtual ULONG STDMETHODCALLTYPE Release()
Definition: HistoryDelegate.cpp:73
virtual HRESULT STDMETHODCALLTYPE didPerformClientRedirectFromURL(_In_opt_ IWebView *, _In_ BSTR sourceURL, _In_ BSTR destinationURL, _In_opt_ IWebFrame *)
Definition: HistoryDelegate.cpp:154
unsigned long ULONG
Definition: MD5.h:32
HRESULT
Definition: RenderThemeWin.cpp:150
HistoryDelegate()
Definition: HistoryDelegate.cpp:43
title('Estimate ms')
Definition: HistoryDelegate.h:28
wchar_t * BSTR
Definition: BString.h:36
virtual ~HistoryDelegate()
Definition: HistoryDelegate.cpp:47
Definition: IWebFrame.idl:66
virtual ULONG STDMETHODCALLTYPE AddRef()
Definition: HistoryDelegate.cpp:68
virtual HRESULT STDMETHODCALLTYPE didPerformServerRedirectFromURL(_In_opt_ IWebView *, _In_ BSTR sourceURL, _In_ BSTR destinationURL, _In_opt_ IWebFrame *)
Definition: HistoryDelegate.cpp:171
url
Definition: setup.py:223
virtual HRESULT STDMETHODCALLTYPE updateHistoryTitle(_In_opt_ IWebView *, _In_ BSTR title, _In_ BSTR url)
Definition: HistoryDelegate.cpp:188
DOMString destinationURL
Definition: WebKitMediaKeyMessageEvent.idl:36
virtual HRESULT STDMETHODCALLTYPE QueryInterface(_In_ REFIID riid, _COM_Outptr_ void **ppvObject)
Definition: HistoryDelegate.cpp:52
Definition: IWebView.idl:161
virtual HRESULT STDMETHODCALLTYPE populateVisitedLinksForWebView(_In_opt_ IWebView *)
Definition: HistoryDelegate.cpp:201
virtual HRESULT STDMETHODCALLTYPE didNavigateWithNavigationData(_In_opt_ IWebView *, _In_opt_ IWebNavigationData *, _In_opt_ IWebFrame *)
Definition: HistoryDelegate.cpp:83
Definition: IWebHistoryDelegate.idl:42
Definition: IWebNavigationData.idl:43