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

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

Issue 261013007: Prevent direct use of "replacement" text encoding. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: MSVC fix Created 6 years, 7 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
« no previous file with comments | « Source/wtf/text/TextEncoding.cpp ('k') | Source/wtf/text/TextEncodingRegistry.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/TextEncodingRegistry.h
diff --git a/Source/wtf/text/TextEncodingRegistry.h b/Source/wtf/text/TextEncodingRegistry.h
index c023b5334e9cdddeb8eab997d2bf6e3a74205951..74ec4252e49efde6bf19fd20f21964fdc4b7a129 100644
--- a/Source/wtf/text/TextEncodingRegistry.h
+++ b/Source/wtf/text/TextEncodingRegistry.h
@@ -48,6 +48,8 @@ const char* atomicCanonicalTextEncodingName(const String&);
bool noExtendedTextEncodingNameUsed();
bool isJapaneseEncoding(const char* canonicalEncodingName);
bool shouldShowBackslashAsCurrencySymbolIn(const char* canonicalEncodingName);
+bool isReplacementEncoding(const char* alias);
+bool isReplacementEncoding(const String& alias);
#ifndef NDEBUG
void dumpTextEncodingNameMap();
« no previous file with comments | « Source/wtf/text/TextEncoding.cpp ('k') | Source/wtf/text/TextEncodingRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698