Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d4071b56
Commit
d4071b56
authored
Sep 17, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added nsIHttpChannel::VisitResponseHeaders implementation.
parent
19a0350b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
3 deletions
+44
-3
nsiface.idl
dlls/mshtml/nsiface.idl
+10
-1
nsio.c
dlls/mshtml/nsio.c
+34
-2
No files found.
dlls/mshtml/nsiface.idl
View file @
d4071b56
...
...
@@ -107,7 +107,6 @@ interface nsISupports
/*
Currently
we
don
't need a full declaration of these interfaces */
typedef nsISupports nsISHistory;
typedef nsISupports nsIWidget;
typedef nsISupports nsIHttpHeaderVisitor;
typedef nsISupports nsIDOMBarProp;
typedef nsISupports nsIPrompt;
typedef nsISupports nsIAuthPrompt;
...
...
@@ -430,6 +429,16 @@ interface nsIChannel : nsIRequest
[
object,
uuid(0cf40717-d7c1-4a94-8c1e-d6c9734101bb),
local
]
interface nsIHttpHeaderVisitor : nsISupports
{
nsresult VisitHeader(const nsACString *aHeader, const nsACString *aValue);
}
[
object,
uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
local
]
...
...
dlls/mshtml/nsio.c
View file @
d4071b56
...
...
@@ -419,6 +419,38 @@ static nsresult set_channel_http_header(struct list *headers, const nsACString *
return
SUCCEEDED
(
hres
)
?
NS_OK
:
NS_ERROR_UNEXPECTED
;
}
static
nsresult
visit_http_headers
(
struct
list
*
headers
,
nsIHttpHeaderVisitor
*
visitor
)
{
nsACString
header_str
,
value_str
;
char
*
header
,
*
value
;
http_header_t
*
iter
;
nsresult
nsres
;
LIST_FOR_EACH_ENTRY
(
iter
,
headers
,
http_header_t
,
entry
)
{
header
=
heap_strdupWtoA
(
iter
->
header
);
if
(
!
header
)
return
NS_ERROR_OUT_OF_MEMORY
;
value
=
heap_strdupWtoA
(
iter
->
data
);
if
(
!
value
)
{
heap_free
(
header
);
return
NS_ERROR_OUT_OF_MEMORY
;
}
nsACString_InitDepend
(
&
header_str
,
header
);
nsACString_InitDepend
(
&
value_str
,
value
);
nsres
=
nsIHttpHeaderVisitor_VisitHeader
(
visitor
,
&
header_str
,
&
value_str
);
nsACString_Finish
(
&
header_str
);
nsACString_Finish
(
&
value_str
);
heap_free
(
header
);
heap_free
(
value
);
if
(
NS_FAILED
(
nsres
))
break
;
}
return
NS_OK
;
}
static
void
free_http_headers
(
struct
list
*
list
)
{
http_header_t
*
iter
,
*
iter_next
;
...
...
@@ -1211,9 +1243,9 @@ static nsresult NSAPI nsChannel_VisitResponseHeaders(nsIHttpChannel *iface,
{
nsChannel
*
This
=
NSCHANNEL_THIS
(
iface
);
FIXM
E
(
"(%p)->(%p)
\n
"
,
This
,
aVisitor
);
TRAC
E
(
"(%p)->(%p)
\n
"
,
This
,
aVisitor
);
return
NS_ERROR_NOT_IMPLEMENTED
;
return
visit_http_headers
(
&
This
->
response_headers
,
aVisitor
)
;
}
static
nsresult
NSAPI
nsChannel_IsNoStoreResponse
(
nsIHttpChannel
*
iface
,
PRBool
*
_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