Use multimap type for storing header values (issue #386).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@346 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-10-28 21:31:26 +00:00
parent 0ec9541b78
commit ef80d4ae6b
17 changed files with 419 additions and 45 deletions

View File

@ -88,7 +88,7 @@ cef_string_userfree_t CEF_CALLBACK response_get_header(
}
void CEF_CALLBACK response_get_header_map(struct _cef_response_t* self,
cef_string_map_t headerMap)
cef_string_multimap_t headerMap)
{
DCHECK(self);
if(!self)
@ -96,11 +96,11 @@ void CEF_CALLBACK response_get_header_map(struct _cef_response_t* self,
CefResponse::HeaderMap map;
CefResponseCppToC::Get(self)->GetHeaderMap(map);
transfer_string_map_contents(map, headerMap);
transfer_string_multimap_contents(map, headerMap);
}
void CEF_CALLBACK response_set_header_map(struct _cef_response_t* self,
cef_string_map_t headerMap)
cef_string_multimap_t headerMap)
{
DCHECK(self);
if(!self)
@ -108,7 +108,7 @@ void CEF_CALLBACK response_set_header_map(struct _cef_response_t* self,
CefResponse::HeaderMap map;
if(headerMap)
transfer_string_map_contents(headerMap, map);
transfer_string_multimap_contents(headerMap, map);
CefResponseCppToC::Get(self)->SetHeaderMap(map);
}