Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines
nsUnknownDecoder.h File Reference
#include "nsIStreamConverter.h"
#include "nsIChannel.h"
#include "nsIContentSniffer.h"
#include "nsCOMPtr.h"
#include "nsString.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsUnknownDecoder
struct  nsUnknownDecoder::nsSnifferEntry
 An entry struct for our array of sniffers. More...
class  nsBinaryDetector
 Class that detects whether a data stream is text or binary. More...

Defines

#define NS_UNKNOWNDECODER_CID
#define SNIFFER_ENTRY(_bytes, _type)   { _bytes, sizeof(_bytes) - 1, _type, nsnull }
#define SNIFFER_ENTRY_WITH_FUNC(_bytes, _func)   { _bytes, sizeof(_bytes) - 1, nsnull, _func }
#define NS_BINARYDETECTOR_CID

Define Documentation

Value:
{ /* a2027ec6-ba0d-4c72-805d-148233f5f33c */         \
    0xa2027ec6,                                      \
    0xba0d,                                          \
    0x4c72,                                          \
    {0x80, 0x5d, 0x14, 0x82, 0x33, 0xf5, 0xf3, 0x3c} \
}

Definition at line 146 of file nsUnknownDecoder.h.

Value:
{ /* 7d7008a0-c49a-11d3-9b22-0080c7cb1080 */         \
    0x7d7008a0,                                      \
    0xc49a,                                          \
    0x11d3,                                          \
    {0x9b, 0x22, 0x00, 0x80, 0xc7, 0xcb, 0x10, 0x80}       \
}

Definition at line 48 of file nsUnknownDecoder.h.

#define SNIFFER_ENTRY (   _bytes,
  _type 
)    { _bytes, sizeof(_bytes) - 1, _type, nsnull }

Definition at line 129 of file nsUnknownDecoder.h.

#define SNIFFER_ENTRY_WITH_FUNC (   _bytes,
  _func 
)    { _bytes, sizeof(_bytes) - 1, nsnull, _func }

Definition at line 132 of file nsUnknownDecoder.h.