2 * Copyright 2009 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
31 #include "wine/debug.h"
33 #include "mshtml_private.h"
35 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
37 #define HOSTSECMGR_THIS(iface) DEFINE_THIS(HTMLDocumentNode, IInternetHostSecurityManager, iface)
39 static HRESULT WINAPI InternetHostSecurityManager_QueryInterface(IInternetHostSecurityManager *iface, REFIID riid, void **ppv)
41 HTMLDocumentNode *This = HOSTSECMGR_THIS(iface);
42 return IHTMLDOMNode_QueryInterface(HTMLDOMNODE(&This->node), riid, ppv);
45 static ULONG WINAPI InternetHostSecurityManager_AddRef(IInternetHostSecurityManager *iface)
47 HTMLDocumentNode *This = HOSTSECMGR_THIS(iface);
48 return IHTMLDOMNode_AddRef(HTMLDOMNODE(&This->node));
51 static ULONG WINAPI InternetHostSecurityManager_Release(IInternetHostSecurityManager *iface)
53 HTMLDocumentNode *This = HOSTSECMGR_THIS(iface);
54 return IHTMLDOMNode_Release(HTMLDOMNODE(&This->node));
57 static HRESULT WINAPI InternetHostSecurityManager_GetSecurityId(IInternetHostSecurityManager *iface, BYTE *pbSecurityId,
58 DWORD *pcbSecurityId, DWORD_PTR dwReserved)
60 HTMLDocumentNode *This = HOSTSECMGR_THIS(iface);
61 FIXME("(%p)->(%p %p %lx)\n", This, pbSecurityId, pcbSecurityId, dwReserved);
65 static HRESULT WINAPI InternetHostSecurityManager_ProcessUrlAction(IInternetHostSecurityManager *iface, DWORD dwAction,
66 BYTE *pPolicy, DWORD cbPolicy, BYTE *pContext, DWORD cbContext, DWORD dwFlags, DWORD dwReserved)
68 HTMLDocumentNode *This = HOSTSECMGR_THIS(iface);
69 FIXME("%p)->(%d %p %d %p %d %x %x)\n", This, dwAction, pPolicy, cbPolicy, pContext, cbContext, dwFlags, dwReserved);
73 static HRESULT WINAPI InternetHostSecurityManager_QueryCustomPolicy(IInternetHostSecurityManager *iface, REFGUID guidKey,
74 BYTE **ppPolicy, DWORD *pcbPolicy, BYTE *pContext, DWORD cbContext, DWORD dwReserved)
76 HTMLDocumentNode *This = HOSTSECMGR_THIS(iface);
77 FIXME("(%p)->(%s %p %p %p %d %x)\n", This, debugstr_guid(guidKey), ppPolicy, pcbPolicy, pContext, cbContext, dwReserved);
81 #undef HOSTSECMGR_THIS
83 static const IInternetHostSecurityManagerVtbl InternetHostSecurityManagerVtbl = {
84 InternetHostSecurityManager_QueryInterface,
85 InternetHostSecurityManager_AddRef,
86 InternetHostSecurityManager_Release,
87 InternetHostSecurityManager_GetSecurityId,
88 InternetHostSecurityManager_ProcessUrlAction,
89 InternetHostSecurityManager_QueryCustomPolicy
92 void HTMLDocumentNode_SecMgr_Init(HTMLDocumentNode *This)
94 This->lpIInternetHostSecurityManagerVtbl = &InternetHostSecurityManagerVtbl;