Bug 863728 - Implement the replacement encoding. r=emk.

This commit is contained in:
Henri Sivonen
2013-11-25 10:06:56 +02:00
parent 7b4abc26e3
commit bba76134de
36 changed files with 264 additions and 157 deletions

View File

@@ -322,21 +322,6 @@ class nsHtml5StreamParser : public nsIStreamListener,
uint32_t aCount,
uint32_t* aWriteCount);
/**
* Write the sniffing buffer into the Unicode decoder followed by the
* current network buffer.
*
* @param aFromSegment The current network buffer or null if the sniffing
* buffer is being flushed due to network stream ending.
* @param aCount The number of bytes in aFromSegment (ignored if
* aFromSegment is null)
* @param aWriteCount Return value for how many bytes got read from the
* buffer.
*/
nsresult WriteSniffingBufferAndCurrentSegment(const uint8_t* aFromSegment,
uint32_t aCount,
uint32_t* aWriteCount);
/**
* Initialize the Unicode decoder, mark the BOM as the source and
* drop the sniffer.