flutter_flutter/engine/wtf/text/TextCodecReplacement.h
2014-10-23 11:17:19 -07:00

29 lines
725 B
C++

// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TextCodecReplacement_h
#define TextCodecReplacement_h
#include "wtf/text/TextCodec.h"
#include "wtf/text/TextCodecUTF8.h"
namespace WTF {
class TextCodecReplacement FINAL : public TextCodecUTF8 {
public:
TextCodecReplacement();
static void registerEncodingNames(EncodingNameRegistrar);
static void registerCodecs(TextCodecRegistrar);
private:
virtual String decode(const char*, size_t length, FlushBehavior, bool stopOnError, bool& sawError) OVERRIDE;
bool m_sentEOF;
};
} // namespace WTF
#endif // TextCodecReplacement_h