Commit 7e4db7df authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Moved BOM enum to binding.h.

parent 8a570711
......@@ -25,6 +25,12 @@ typedef enum {
METHOD_POST
} REQUEST_METHOD;
typedef enum {
BOM_NONE,
BOM_UTF8,
BOM_UTF16
} binding_bom_t;
typedef struct {
nsIHttpChannel nsIHttpChannel_iface;
nsIUploadChannel nsIUploadChannel_iface;
......@@ -71,7 +77,7 @@ struct BSCallback {
ULONG readed;
DWORD bindf;
BOOL bindinfo_ready;
int bom;
binding_bom_t bom;
IMoniker *mon;
IBinding *binding;
......
......@@ -52,12 +52,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static const WCHAR emptyW[] = {0};
static const WCHAR text_htmlW[] = {'t','e','x','t','/','h','t','m','l',0};
enum {
BOM_NONE,
BOM_UTF8,
BOM_UTF16
};
struct nsProtocolStream {
nsIInputStream nsIInputStream_iface;
......@@ -1203,6 +1197,8 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
break;
case BOM_UTF16:
This->nschannel->charset = heap_strdupA(UTF16_STR);
case BOM_NONE:
/* FIXME: Get charset from HTTP headers */;
}
if(!This->nschannel->content_type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment