Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
404c183d
Commit
404c183d
authored
Sep 29, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IInternetHostSecurityManager stub implementation.
parent
c14c3a6e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
114 additions
and
1 deletion
+114
-1
Makefile.in
dlls/mshtml/Makefile.in
+1
-0
htmldoc.c
dlls/mshtml/htmldoc.c
+11
-1
mshtml_private.h
dlls/mshtml/mshtml_private.h
+6
-0
secmgr.c
dlls/mshtml/secmgr.c
+95
-0
dom.c
dlls/mshtml/tests/dom.c
+1
-0
No files found.
dlls/mshtml/Makefile.in
View file @
404c183d
...
...
@@ -60,6 +60,7 @@ C_SRCS = \
persist.c
\
protocol.c
\
script.c
\
secmgr.c
\
selection.c
\
service.c
\
task.c
\
...
...
dlls/mshtml/htmldoc.c
View file @
404c183d
...
...
@@ -28,6 +28,7 @@
#include "winuser.h"
#include "ole2.h"
#include "perhist.h"
#include "mshtmdid.h"
#include "wine/debug.h"
...
...
@@ -1756,7 +1757,15 @@ static HRESULT HTMLDocumentNode_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
if
(
htmldoc_qi
(
&
This
->
basedoc
,
riid
,
ppv
))
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
return
HTMLDOMNode_QI
(
&
This
->
node
,
riid
,
ppv
);
if
(
IsEqualGUID
(
&
IID_IInternetHostSecurityManager
,
riid
))
{
TRACE
(
"(%p)->(IID_IInternetHostSecurityManager %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HOSTSECMGR
(
This
);
}
else
{
return
HTMLDOMNode_QI
(
&
This
->
node
,
riid
,
ppv
);
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
void
HTMLDocumentNode_destructor
(
HTMLDOMNode
*
iface
)
...
...
@@ -1806,6 +1815,7 @@ HRESULT create_doc_from_nsdoc(nsIDOMHTMLDocument *nsdoc, HTMLDocumentObj *doc_ob
init_dispex
(
&
doc
->
node
.
dispex
,
(
IUnknown
*
)
HTMLDOMNODE
(
&
doc
->
node
),
&
HTMLDocumentNode_dispex
);
init_doc
(
&
doc
->
basedoc
,
(
IUnknown
*
)
HTMLDOMNODE
(
&
doc
->
node
),
DISPATCHEX
(
&
doc
->
node
.
dispex
));
HTMLDocumentNode_SecMgr_Init
(
doc
);
doc
->
ref
=
1
;
nsIDOMHTMLDocument_AddRef
(
nsdoc
);
...
...
dlls/mshtml/mshtml_private.h
View file @
404c183d
...
...
@@ -465,6 +465,8 @@ struct HTMLDocumentNode {
HTMLDOMNode
node
;
HTMLDocument
basedoc
;
const
IInternetHostSecurityManagerVtbl
*
lpIInternetHostSecurityManagerVtbl
;
LONG
ref
;
HTMLDOMNode
*
nodes
;
...
...
@@ -540,6 +542,8 @@ struct HTMLDocumentNode {
#define SUPPERRINFO(x) ((ISupportErrorInfo*) &(x)->lpSupportErrorInfoVtbl)
#define HOSTSECMGR(x) ((IInternetHostSecurityManager*) &(x)->lpIInternetHostSecurityManagerVtbl)
#define DEFINE_THIS2(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,ifc)))
#define DEFINE_THIS(cls,ifc,iface) DEFINE_THIS2(cls,lp ## ifc ## Vtbl,iface)
...
...
@@ -564,6 +568,8 @@ void HTMLDocument_Window_Init(HTMLDocument*);
void
HTMLDocument_Service_Init
(
HTMLDocument
*
);
void
HTMLDocument_Hlink_Init
(
HTMLDocument
*
);
void
HTMLDocumentNode_SecMgr_Init
(
HTMLDocumentNode
*
);
HRESULT
HTMLCurrentStyle_Create
(
HTMLElement
*
,
IHTMLCurrentStyle
**
);
void
ConnectionPoint_Init
(
ConnectionPoint
*
,
ConnectionPointContainer
*
,
REFIID
);
...
...
dlls/mshtml/secmgr.c
0 → 100644
View file @
404c183d
/*
* Copyright 2009 Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#include <stdio.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "ole2.h"
#include "wine/debug.h"
#include "mshtml_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
#define HOSTSECMGR_THIS(iface) DEFINE_THIS(HTMLDocumentNode, IInternetHostSecurityManager, iface)
static
HRESULT
WINAPI
InternetHostSecurityManager_QueryInterface
(
IInternetHostSecurityManager
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocumentNode
*
This
=
HOSTSECMGR_THIS
(
iface
);
return
IHTMLDOMNode_QueryInterface
(
HTMLDOMNODE
(
&
This
->
node
),
riid
,
ppv
);
}
static
ULONG
WINAPI
InternetHostSecurityManager_AddRef
(
IInternetHostSecurityManager
*
iface
)
{
HTMLDocumentNode
*
This
=
HOSTSECMGR_THIS
(
iface
);
return
IHTMLDOMNode_AddRef
(
HTMLDOMNODE
(
&
This
->
node
));
}
static
ULONG
WINAPI
InternetHostSecurityManager_Release
(
IInternetHostSecurityManager
*
iface
)
{
HTMLDocumentNode
*
This
=
HOSTSECMGR_THIS
(
iface
);
return
IHTMLDOMNode_Release
(
HTMLDOMNODE
(
&
This
->
node
));
}
static
HRESULT
WINAPI
InternetHostSecurityManager_GetSecurityId
(
IInternetHostSecurityManager
*
iface
,
BYTE
*
pbSecurityId
,
DWORD
*
pcbSecurityId
,
DWORD_PTR
dwReserved
)
{
HTMLDocumentNode
*
This
=
HOSTSECMGR_THIS
(
iface
);
FIXME
(
"(%p)->(%p %p %lx)
\n
"
,
This
,
pbSecurityId
,
pcbSecurityId
,
dwReserved
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InternetHostSecurityManager_ProcessUrlAction
(
IInternetHostSecurityManager
*
iface
,
DWORD
dwAction
,
BYTE
*
pPolicy
,
DWORD
cbPolicy
,
BYTE
*
pContext
,
DWORD
cbContext
,
DWORD
dwFlags
,
DWORD
dwReserved
)
{
HTMLDocumentNode
*
This
=
HOSTSECMGR_THIS
(
iface
);
FIXME
(
"%p)->(%d %p %d %p %d %x %x)
\n
"
,
This
,
dwAction
,
pPolicy
,
cbPolicy
,
pContext
,
cbContext
,
dwFlags
,
dwReserved
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
InternetHostSecurityManager_QueryCustomPolicy
(
IInternetHostSecurityManager
*
iface
,
REFGUID
guidKey
,
BYTE
**
ppPolicy
,
DWORD
*
pcbPolicy
,
BYTE
*
pContext
,
DWORD
cbContext
,
DWORD
dwReserved
)
{
HTMLDocumentNode
*
This
=
HOSTSECMGR_THIS
(
iface
);
FIXME
(
"(%p)->(%s %p %p %p %d %x)
\n
"
,
This
,
debugstr_guid
(
guidKey
),
ppPolicy
,
pcbPolicy
,
pContext
,
cbContext
,
dwReserved
);
return
E_NOTIMPL
;
}
#undef HOSTSECMGR_THIS
static
const
IInternetHostSecurityManagerVtbl
InternetHostSecurityManagerVtbl
=
{
InternetHostSecurityManager_QueryInterface
,
InternetHostSecurityManager_AddRef
,
InternetHostSecurityManager_Release
,
InternetHostSecurityManager_GetSecurityId
,
InternetHostSecurityManager_ProcessUrlAction
,
InternetHostSecurityManager_QueryCustomPolicy
};
void
HTMLDocumentNode_SecMgr_Init
(
HTMLDocumentNode
*
This
)
{
This
->
lpIInternetHostSecurityManagerVtbl
=
&
InternetHostSecurityManagerVtbl
;
}
dlls/mshtml/tests/dom.c
View file @
404c183d
...
...
@@ -105,6 +105,7 @@ static const IID * const doc_node_iids[] = {
&
IID_IHTMLDocument5
,
&
IID_IDispatchEx
,
&
IID_IConnectionPointContainer
,
&
IID_IInternetHostSecurityManager
,
NULL
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment