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
a29101b0
Commit
a29101b0
authored
Dec 30, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: COM cleanup for the nsIHttpChannel iface.
parent
6c075b6d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-3
navigate.c
dlls/mshtml/navigate.c
+7
-6
nsio.c
dlls/mshtml/nsio.c
+0
-0
No files found.
dlls/mshtml/mshtml_private.h
View file @
a29101b0
...
@@ -483,7 +483,7 @@ typedef enum {
...
@@ -483,7 +483,7 @@ typedef enum {
}
REQUEST_METHOD
;
}
REQUEST_METHOD
;
typedef
struct
{
typedef
struct
{
const
nsIHttpChannelVtbl
*
lpHttpChannelVtbl
;
nsIHttpChannel
nsIHttpChannel_iface
;
const
nsIUploadChannelVtbl
*
lpUploadChannelVtbl
;
const
nsIUploadChannelVtbl
*
lpUploadChannelVtbl
;
const
nsIHttpChannelInternalVtbl
*
lpIHttpChannelInternalVtbl
;
const
nsIHttpChannelInternalVtbl
*
lpIHttpChannelInternalVtbl
;
...
@@ -633,8 +633,6 @@ struct HTMLDocumentNode {
...
@@ -633,8 +633,6 @@ struct HTMLDocumentNode {
#define NSRUNNABLE(x) ((nsIRunnable*) &(x)->lpIRunnableVtbl)
#define NSRUNNABLE(x) ((nsIRunnable*) &(x)->lpIRunnableVtbl)
#define NSCHANNEL(x) ((nsIChannel*) &(x)->lpHttpChannelVtbl)
#define NSHTTPCHANNEL(x) ((nsIHttpChannel*) &(x)->lpHttpChannelVtbl)
#define NSUPCHANNEL(x) ((nsIUploadChannel*) &(x)->lpUploadChannelVtbl)
#define NSUPCHANNEL(x) ((nsIUploadChannel*) &(x)->lpUploadChannelVtbl)
#define NSHTTPINTERNAL(x) ((nsIHttpChannelInternal*) &(x)->lpIHttpChannelInternalVtbl)
#define NSHTTPINTERNAL(x) ((nsIHttpChannelInternal*) &(x)->lpIHttpChannelInternalVtbl)
...
...
dlls/mshtml/navigate.c
View file @
a29101b0
...
@@ -903,7 +903,7 @@ static HRESULT on_start_nsrequest(nsChannelBSC *This)
...
@@ -903,7 +903,7 @@ static HRESULT on_start_nsrequest(nsChannelBSC *This)
This
->
nschannel
->
response_status
=
200
;
This
->
nschannel
->
response_status
=
200
;
nsres
=
nsIStreamListener_OnStartRequest
(
This
->
nslistener
,
nsres
=
nsIStreamListener_OnStartRequest
(
This
->
nslistener
,
(
nsIRequest
*
)
NSCHANNEL
(
This
->
nschannel
)
,
This
->
nscontext
);
(
nsIRequest
*
)
&
This
->
nschannel
->
nsIHttpChannel_iface
,
This
->
nscontext
);
if
(
NS_FAILED
(
nsres
))
{
if
(
NS_FAILED
(
nsres
))
{
FIXME
(
"OnStartRequest failed: %08x
\n
"
,
nsres
);
FIXME
(
"OnStartRequest failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
return
E_FAIL
;
...
@@ -942,14 +942,15 @@ static void on_stop_nsrequest(nsChannelBSC *This, HRESULT result)
...
@@ -942,14 +942,15 @@ static void on_stop_nsrequest(nsChannelBSC *This, HRESULT result)
if
(
This
->
nslistener
)
{
if
(
This
->
nslistener
)
{
nsres
=
nsIStreamListener_OnStopRequest
(
This
->
nslistener
,
nsres
=
nsIStreamListener_OnStopRequest
(
This
->
nslistener
,
(
nsIRequest
*
)
NSCHANNEL
(
This
->
nschannel
),
This
->
nscontext
,
request_result
);
(
nsIRequest
*
)
&
This
->
nschannel
->
nsIHttpChannel_iface
,
This
->
nscontext
,
request_result
);
if
(
NS_FAILED
(
nsres
))
if
(
NS_FAILED
(
nsres
))
WARN
(
"OnStopRequet failed: %08x
\n
"
,
nsres
);
WARN
(
"OnStopRequet failed: %08x
\n
"
,
nsres
);
}
}
if
(
This
->
nschannel
->
load_group
)
{
if
(
This
->
nschannel
->
load_group
)
{
nsres
=
nsILoadGroup_RemoveRequest
(
This
->
nschannel
->
load_group
,
nsres
=
nsILoadGroup_RemoveRequest
(
This
->
nschannel
->
load_group
,
(
nsIRequest
*
)
NSCHANNEL
(
This
->
nschannel
)
,
NULL
,
request_result
);
(
nsIRequest
*
)
&
This
->
nschannel
->
nsIHttpChannel_iface
,
NULL
,
request_result
);
if
(
NS_FAILED
(
nsres
))
if
(
NS_FAILED
(
nsres
))
ERR
(
"RemoveRequest failed: %08x
\n
"
,
nsres
);
ERR
(
"RemoveRequest failed: %08x
\n
"
,
nsres
);
}
}
...
@@ -1011,7 +1012,7 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
...
@@ -1011,7 +1012,7 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
This
->
bsc
.
readed
+=
This
->
nsstream
->
buf_size
;
This
->
bsc
.
readed
+=
This
->
nsstream
->
buf_size
;
nsres
=
nsIStreamListener_OnDataAvailable
(
This
->
nslistener
,
nsres
=
nsIStreamListener_OnDataAvailable
(
This
->
nslistener
,
(
nsIRequest
*
)
NSCHANNEL
(
This
->
nschannel
)
,
This
->
nscontext
,
(
nsIRequest
*
)
&
This
->
nschannel
->
nsIHttpChannel_iface
,
This
->
nscontext
,
NSINSTREAM
(
This
->
nsstream
),
This
->
bsc
.
readed
-
This
->
nsstream
->
buf_size
,
NSINSTREAM
(
This
->
nsstream
),
This
->
bsc
.
readed
-
This
->
nsstream
->
buf_size
,
This
->
nsstream
->
buf_size
);
This
->
nsstream
->
buf_size
);
if
(
NS_FAILED
(
nsres
))
if
(
NS_FAILED
(
nsres
))
...
@@ -1033,7 +1034,7 @@ static void nsChannelBSC_destroy(BSCallback *bsc)
...
@@ -1033,7 +1034,7 @@ static void nsChannelBSC_destroy(BSCallback *bsc)
nsChannelBSC
*
This
=
NSCHANNELBSC_THIS
(
bsc
);
nsChannelBSC
*
This
=
NSCHANNELBSC_THIS
(
bsc
);
if
(
This
->
nschannel
)
if
(
This
->
nschannel
)
nsIChannel_Release
(
NSCHANNEL
(
This
->
nschannel
)
);
nsIChannel_Release
(
&
This
->
nschannel
->
nsIHttpChannel_iface
);
if
(
This
->
nslistener
)
if
(
This
->
nslistener
)
nsIStreamListener_Release
(
This
->
nslistener
);
nsIStreamListener_Release
(
This
->
nslistener
);
if
(
This
->
nscontext
)
if
(
This
->
nscontext
)
...
@@ -1356,7 +1357,7 @@ HRESULT channelbsc_load_stream(nsChannelBSC *bscallback, IStream *stream)
...
@@ -1356,7 +1357,7 @@ HRESULT channelbsc_load_stream(nsChannelBSC *bscallback, IStream *stream)
void
channelbsc_set_channel
(
nsChannelBSC
*
This
,
nsChannel
*
channel
,
nsIStreamListener
*
listener
,
nsISupports
*
context
)
void
channelbsc_set_channel
(
nsChannelBSC
*
This
,
nsChannel
*
channel
,
nsIStreamListener
*
listener
,
nsISupports
*
context
)
{
{
nsIChannel_AddRef
(
NSCHANNEL
(
channel
)
);
nsIChannel_AddRef
(
&
channel
->
nsIHttpChannel_iface
);
This
->
nschannel
=
channel
;
This
->
nschannel
=
channel
;
nsIStreamListener_AddRef
(
listener
);
nsIStreamListener_AddRef
(
listener
);
...
...
dlls/mshtml/nsio.c
View file @
a29101b0
This diff is collapsed.
Click to expand it.
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