Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
7f7e460a
Commit
7f7e460a
authored
Jul 02, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added nsIIOService::NewChannelFromURI2 semi-stub implementation.
parent
bca49f14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
+21
-17
nsio.c
dlls/mshtml/nsio.c
+21
-17
No files found.
dlls/mshtml/nsio.c
View file @
7f7e460a
...
...
@@ -3580,28 +3580,16 @@ static nsresult NSAPI nsIOService_NewFileURI(nsIIOService *iface, nsIFile *aFile
return
nsIIOService_NewFileURI
(
nsio
,
aFile
,
_retval
);
}
static
nsresult
NSAPI
nsIOService_NewChannelFromURI2
(
nsIIOService
*
iface
,
nsIURI
*
aURI
,
nsIDOMNode
*
aLoadingNode
,
nsIPrincipal
*
aLoadingPrincipal
,
nsIPrincipal
*
aTriggeringPrincipal
,
UINT32
aSecurityFlags
,
UINT32
aContentPolicyType
,
nsIChannel
**
_retval
)
{
FIXME
(
"(%p %p %p %p %x %d %p)
\n
"
,
aURI
,
aLoadingNode
,
aLoadingPrincipal
,
aTriggeringPrincipal
,
aSecurityFlags
,
aContentPolicyType
,
_retval
);
return
NS_ERROR_NOT_IMPLEMENTED
;
}
static
nsresult
NSAPI
nsIOService_NewChannelFromURI
(
nsIIOService
*
iface
,
nsIURI
*
aURI
,
nsIChannel
**
_retval
)
static
nsresult
new_channel_from_uri
(
nsIURI
*
uri
,
nsIChannel
**
_retval
)
{
nsWineURI
*
wine_uri
;
nsChannel
*
ret
;
nsresult
nsres
;
TRACE
(
"(%p %p)
\n
"
,
aURI
,
_retval
);
nsres
=
nsIURI_QueryInterface
(
aURI
,
&
IID_nsWineURI
,
(
void
**
)
&
wine_uri
);
nsres
=
nsIURI_QueryInterface
(
uri
,
&
IID_nsWineURI
,
(
void
**
)
&
wine_uri
);
if
(
NS_FAILED
(
nsres
))
{
TRACE
(
"Could not get nsWineURI: %08x
\n
"
,
nsres
);
return
nsIIOService_NewChannelFromURI
(
nsio
,
aURI
,
_retval
);
return
nsIIOService_NewChannelFromURI
(
nsio
,
uri
,
_retval
);
}
nsres
=
create_nschannel
(
wine_uri
,
&
ret
);
...
...
@@ -3609,13 +3597,29 @@ static nsresult NSAPI nsIOService_NewChannelFromURI(nsIIOService *iface, nsIURI
if
(
NS_FAILED
(
nsres
))
return
nsres
;
nsIURI_AddRef
(
aURI
);
ret
->
original_uri
=
aURI
;
nsIURI_AddRef
(
uri
);
ret
->
original_uri
=
uri
;
*
_retval
=
(
nsIChannel
*
)
&
ret
->
nsIHttpChannel_iface
;
return
NS_OK
;
}
static
nsresult
NSAPI
nsIOService_NewChannelFromURI2
(
nsIIOService
*
iface
,
nsIURI
*
aURI
,
nsIDOMNode
*
aLoadingNode
,
nsIPrincipal
*
aLoadingPrincipal
,
nsIPrincipal
*
aTriggeringPrincipal
,
UINT32
aSecurityFlags
,
UINT32
aContentPolicyType
,
nsIChannel
**
_retval
)
{
FIXME
(
"(%p %p %p %p %x %d %p) semi-stub
\n
"
,
aURI
,
aLoadingNode
,
aLoadingPrincipal
,
aTriggeringPrincipal
,
aSecurityFlags
,
aContentPolicyType
,
_retval
);
return
new_channel_from_uri
(
aURI
,
_retval
);
}
static
nsresult
NSAPI
nsIOService_NewChannelFromURI
(
nsIIOService
*
iface
,
nsIURI
*
aURI
,
nsIChannel
**
_retval
)
{
TRACE
(
"(%p %p)
\n
"
,
aURI
,
_retval
);
return
new_channel_from_uri
(
aURI
,
_retval
);
}
static
nsresult
NSAPI
nsIOService_NewChannel2
(
nsIIOService
*
iface
,
const
nsACString
*
aSpec
,
const
char
*
aOriginCharset
,
nsIURI
*
aBaseURI
,
nsIDOMNode
*
aLoadingNode
,
nsIPrincipal
*
aLoadingPrincipal
,
nsIPrincipal
*
aTriggeringPrincipal
,
UINT32
aSecurityFlags
,
UINT32
aContentPolicyType
,
nsIChannel
**
_retval
)
...
...
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