Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Unified Diff: Source/wtf/text/TextEncodingRegistry.cpp

Issue 143943017: Added Base64 support in TextEncoder and TextDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/wtf/text/TextEncodingRegistry.cpp
diff --git a/Source/wtf/text/TextEncodingRegistry.cpp b/Source/wtf/text/TextEncodingRegistry.cpp
index 4dd0240043c598532f930409e545dd1a3848e671..e5dac2b971140a32c05450ff0847e38b68a4d78b 100644
--- a/Source/wtf/text/TextEncodingRegistry.cpp
+++ b/Source/wtf/text/TextEncodingRegistry.cpp
@@ -36,6 +36,7 @@
#include "wtf/StringExtras.h"
#include "wtf/ThreadingPrimitives.h"
#include "wtf/text/CString.h"
+#include "wtf/text/TextCodecBase64.h"
#include "wtf/text/TextCodecICU.h"
#include "wtf/text/TextCodecLatin1.h"
#include "wtf/text/TextCodecUTF16.h"
@@ -280,6 +281,9 @@ static void extendTextCodecMaps()
TextCodecICU::registerEncodingNames(addToTextEncodingNameMap);
TextCodecICU::registerCodecs(addToTextCodecMap);
+ TextCodecBase64::registerEncodingNames(addToTextEncodingNameMap);
+ TextCodecBase64::registerCodecs(addToTextCodecMap);
+
pruneBlacklistedCodecs();
buildQuirksSets();
}

Powered by Google App Engine
This is Rietveld 408576698