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
28677ea8
Commit
28677ea8
authored
Dec 01, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't depend on necko channel in nsChannel::QueryInterface implementation.
parent
dc3818e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
nsio.c
dlls/mshtml/nsio.c
+12
-2
No files found.
dlls/mshtml/mshtml_private.h
View file @
28677ea8
...
...
@@ -441,6 +441,7 @@ typedef struct {
char
*
content_type
;
char
*
charset
;
PRUint32
response_status
;
UINT
url_scheme
;
}
nsChannel
;
typedef
struct
{
...
...
dlls/mshtml/nsio.c
View file @
28677ea8
...
...
@@ -158,6 +158,11 @@ static BOOL before_async_open(nsChannel *channel, NSContainer *container)
return
hres
!=
S_OK
;
}
static
inline
BOOL
is_http_channel
(
nsChannel
*
This
)
{
return
This
->
url_scheme
==
URL_SCHEME_HTTP
||
This
->
url_scheme
==
URL_SCHEME_HTTP
;
}
#define NSCHANNEL_THIS(iface) DEFINE_THIS(nsChannel, HttpChannel, iface)
static
nsresult
NSAPI
nsChannel_QueryInterface
(
nsIHttpChannel
*
iface
,
nsIIDRef
riid
,
nsQIResult
result
)
...
...
@@ -175,13 +180,13 @@ static nsresult NSAPI nsChannel_QueryInterface(nsIHttpChannel *iface, nsIIDRef r
*
result
=
NSCHANNEL
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_nsIHttpChannel
,
riid
))
{
TRACE
(
"(%p)->(IID_nsIHttpChannel %p)
\n
"
,
This
,
result
);
*
result
=
This
->
http_channel
?
NSHTTPCHANNEL
(
This
)
:
NULL
;
*
result
=
is_http_channel
(
This
)
?
NSHTTPCHANNEL
(
This
)
:
NULL
;
}
else
if
(
IsEqualGUID
(
&
IID_nsIUploadChannel
,
riid
))
{
TRACE
(
"(%p)->(IID_nsIUploadChannel %p)
\n
"
,
This
,
result
);
*
result
=
NSUPCHANNEL
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_nsIHttpChannelInternal
,
riid
))
{
TRACE
(
"(%p)->(IID_nsIHttpChannelInternal %p)
\n
"
,
This
,
result
);
*
result
=
This
->
http_channel_internal
?
NSHTTPINTERNAL
(
This
)
:
NULL
;
*
result
=
is_http_channel
(
This
)
?
NSHTTPINTERNAL
(
This
)
:
NULL
;
}
else
{
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
result
);
*
result
=
NULL
;
...
...
@@ -2689,9 +2694,11 @@ static nsresult NSAPI nsIOService_NewFileURI(nsIIOService *iface, nsIFile *aFile
static
nsresult
NSAPI
nsIOService_NewChannelFromURI
(
nsIIOService
*
iface
,
nsIURI
*
aURI
,
nsIChannel
**
_retval
)
{
PARSEDURLW
parsed_url
=
{
sizeof
(
PARSEDURLW
)};
nsIChannel
*
channel
=
NULL
;
nsChannel
*
ret
;
nsIWineURI
*
wine_uri
;
const
WCHAR
*
url
;
nsresult
nsres
;
TRACE
(
"(%p %p)
\n
"
,
aURI
,
_retval
);
...
...
@@ -2716,6 +2723,9 @@ static nsresult NSAPI nsIOService_NewChannelFromURI(nsIIOService *iface, nsIURI
nsIURI_AddRef
(
aURI
);
ret
->
original_uri
=
aURI
;
nsIWineURI_GetWineURL
(
wine_uri
,
&
url
);
ret
->
url_scheme
=
url
&&
SUCCEEDED
(
ParseURLW
(
url
,
&
parsed_url
))
?
parsed_url
.
nScheme
:
URL_SCHEME_UNKNOWN
;
if
(
channel
)
{
nsIChannel_QueryInterface
(
channel
,
&
IID_nsIHttpChannel
,
(
void
**
)
&
ret
->
http_channel
);
nsIChannel_QueryInterface
(
channel
,
&
IID_nsIHttpChannelInternal
,
(
void
**
)
&
ret
->
http_channel_internal
);
...
...
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