Chromium Code Reviews| Index: Source/wtf/text/TextCodecBase64.h |
| diff --git a/Source/wtf/text/TextCodecLatin1.h b/Source/wtf/text/TextCodecBase64.h |
| similarity index 85% |
| copy from Source/wtf/text/TextCodecLatin1.h |
| copy to Source/wtf/text/TextCodecBase64.h |
| index 7a0fa3715be1d585390105ffdc1b04344010adcd..1b2494b3e639084a020075eae999feb880d6998d 100644 |
| --- a/Source/wtf/text/TextCodecLatin1.h |
| +++ b/Source/wtf/text/TextCodecBase64.h |
| @@ -1,5 +1,5 @@ |
| /* |
| - * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved. |
| + * Copyright (C) 2011 Apple Inc. All rights reserved. |
|
jsbell
2014/01/24 22:15:05
New file, should use updated copyright/license.
|
| * |
| * Redistribution and use in source and binary forms, with or without |
| * modification, are permitted provided that the following conditions |
| @@ -23,27 +23,27 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#ifndef TextCodecLatin1_h |
| -#define TextCodecLatin1_h |
| +#ifndef TextCodecBase64_h |
| +#define TextCodecBase64_h |
| #include "wtf/text/TextCodec.h" |
| namespace WTF { |
| -class TextCodecLatin1 FINAL : public TextCodec { |
| +class TextCodecBase64 FINAL : public TextCodec { |
| public: |
| static void registerEncodingNames(EncodingNameRegistrar); |
| static void registerCodecs(TextCodecRegistrar); |
| private: |
| + static PassOwnPtr<TextCodec> create(const TextEncoding&, const void*); |
| + TextCodecBase64() { } |
| + |
| virtual String decode(const char*, size_t length, bool flush, bool stopOnError, bool& sawError) OVERRIDE; |
| virtual CString encode(const UChar*, size_t length, UnencodableHandling) OVERRIDE; |
| virtual CString encode(const LChar*, size_t length, UnencodableHandling) OVERRIDE; |
| - |
| - template<typename CharType> |
| - CString encodeCommon(const CharType*, size_t length, UnencodableHandling); |
| }; |
| } // namespace WTF |
| -#endif // TextCodecLatin1_h |
| +#endif // TextCodecBase64_h |