mshtml: Added JSProtocol class factory stub implementation.

This commit is contained in:
Jacek Caban 2009-09-08 22:27:31 +02:00 committed by Alexandre Julliard
parent 09c20de83c
commit 316cd27660
1 changed files with 54 additions and 0 deletions

View File

@ -938,6 +938,58 @@ static ProtocolFactory ResProtocolFactory = {
&ResProtocolFactoryVtbl
};
/********************************************************************
* JSProtocol implementation
*/
static HRESULT WINAPI JSProtocolFactory_CreateInstance(IClassFactory *iface, IUnknown *pUnkOuter,
REFIID riid, void **ppv)
{
FIXME("(%p)->(%p %s %p)\n", iface, pUnkOuter, debugstr_guid(riid), ppv);
return E_NOTIMPL;
}
static HRESULT WINAPI JSProtocolInfo_ParseUrl(IInternetProtocolInfo *iface, LPCWSTR pwzUrl,
PARSEACTION ParseAction, DWORD dwParseFlags, LPWSTR pwzResult, DWORD cchResult,
DWORD* pcchResult, DWORD dwReserved)
{
FIXME("%p)->(%s %d %x %p %d %p %d)\n", iface, debugstr_w(pwzUrl), ParseAction,
dwParseFlags, pwzResult, cchResult, pcchResult, dwReserved);
return E_NOTIMPL;
}
static HRESULT WINAPI JSProtocolInfo_QueryInfo(IInternetProtocolInfo *iface, LPCWSTR pwzUrl,
QUERYOPTION QueryOption, DWORD dwQueryFlags, LPVOID pBuffer, DWORD cbBuffer, DWORD* pcbBuf,
DWORD dwReserved)
{
FIXME("%p)->(%s %08x %08x %p %d %p %d)\n", iface, debugstr_w(pwzUrl), QueryOption, dwQueryFlags, pBuffer,
cbBuffer, pcbBuf, dwReserved);
return E_NOTIMPL;
}
static const IInternetProtocolInfoVtbl JSProtocolInfoVtbl = {
InternetProtocolInfo_QueryInterface,
InternetProtocolInfo_AddRef,
InternetProtocolInfo_Release,
JSProtocolInfo_ParseUrl,
InternetProtocolInfo_CombineUrl,
InternetProtocolInfo_CompareUrl,
JSProtocolInfo_QueryInfo
};
static const IClassFactoryVtbl JSProtocolFactoryVtbl = {
ClassFactory_QueryInterface,
ClassFactory_AddRef,
ClassFactory_Release,
JSProtocolFactory_CreateInstance,
ClassFactory_LockServer
};
static ProtocolFactory JSProtocolFactory = {
&JSProtocolInfoVtbl,
&JSProtocolFactoryVtbl
};
HRESULT ProtocolFactory_Create(REFCLSID rclsid, REFIID riid, void **ppv)
{
ProtocolFactory *cf = NULL;
@ -946,6 +998,8 @@ HRESULT ProtocolFactory_Create(REFCLSID rclsid, REFIID riid, void **ppv)
cf = &AboutProtocolFactory;
else if(IsEqualGUID(&CLSID_ResProtocol, rclsid))
cf = &ResProtocolFactory;
else if(IsEqualGUID(&CLSID_JSProtocol, rclsid))
cf = &JSProtocolFactory;
if(!cf) {
FIXME("not implemented protocol %s\n", debugstr_guid(rclsid));