Commit bbd4a634 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added nsIChannel::[Get|Set]Owner implementation.

parent d356d152
...@@ -348,6 +348,7 @@ typedef struct { ...@@ -348,6 +348,7 @@ typedef struct {
nsIInputStream *post_data_stream; nsIInputStream *post_data_stream;
nsILoadGroup *load_group; nsILoadGroup *load_group;
nsIInterfaceRequestor *notif_callback; nsIInterfaceRequestor *notif_callback;
nsISupports *owner;
nsLoadFlags load_flags; nsLoadFlags load_flags;
nsIURI *original_uri; nsIURI *original_uri;
char *content_type; char *content_type;
......
...@@ -417,8 +417,11 @@ static nsresult NSAPI nsChannel_GetOwner(nsIHttpChannel *iface, nsISupports **aO ...@@ -417,8 +417,11 @@ static nsresult NSAPI nsChannel_GetOwner(nsIHttpChannel *iface, nsISupports **aO
if(This->channel) if(This->channel)
return nsIChannel_GetOwner(This->channel, aOwner); return nsIChannel_GetOwner(This->channel, aOwner);
FIXME("default action not implemented\n"); if(This->owner)
return NS_ERROR_NOT_IMPLEMENTED; nsISupports_AddRef(This->owner);
*aOwner = This->owner;
return NS_OK;
} }
static nsresult NSAPI nsChannel_SetOwner(nsIHttpChannel *iface, nsISupports *aOwner) static nsresult NSAPI nsChannel_SetOwner(nsIHttpChannel *iface, nsISupports *aOwner)
...@@ -430,8 +433,13 @@ static nsresult NSAPI nsChannel_SetOwner(nsIHttpChannel *iface, nsISupports *aOw ...@@ -430,8 +433,13 @@ static nsresult NSAPI nsChannel_SetOwner(nsIHttpChannel *iface, nsISupports *aOw
if(This->channel) if(This->channel)
return nsIChannel_SetOwner(This->channel, aOwner); return nsIChannel_SetOwner(This->channel, aOwner);
FIXME("default action not implemented\n"); if(aOwner)
return NS_ERROR_NOT_IMPLEMENTED; nsISupports_AddRef(aOwner);
if(This->owner)
nsISupports_Release(This->owner);
This->owner = aOwner;
return NS_OK;
} }
static nsresult NSAPI nsChannel_GetNotificationCallbacks(nsIHttpChannel *iface, static nsresult NSAPI nsChannel_GetNotificationCallbacks(nsIHttpChannel *iface,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment