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

Unified Diff: third_party/WebKit/Source/platform/text/TextEncodingDetector.h

Issue 1721373002: UTF-8 detector for pages missing encoding info (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: third_party/WebKit/Source/platform/text/TextEncodingDetector.h
diff --git a/third_party/WebKit/Source/platform/text/TextEncodingDetector.h b/third_party/WebKit/Source/platform/text/TextEncodingDetector.h
index 12f4890fc3924d65e13de5fece8e5c8482cc968c..dd6b774a084d15e7e7baae615de1cd5bd1702726 100644
--- a/third_party/WebKit/Source/platform/text/TextEncodingDetector.h
+++ b/third_party/WebKit/Source/platform/text/TextEncodingDetector.h
@@ -44,9 +44,9 @@ namespace blink {
// hintEncodingName, detect the most likely character encoding.
// The way hintEncodingName is used is up to an implementation.
// Currently, the only caller sets it to the parent frame encoding.
-PLATFORM_EXPORT bool detectTextEncoding(const char* data, size_t length,
- const char* hintEncodingName, WTF::TextEncoding* detectedEncoding);
-
+PLATFORM_EXPORT bool detectTextEncodingUniversal(const char* data,
+ size_t length, const char* hintEncodingName,
+ WTF::TextEncoding* detectedEncoding);
} // namespace blink
#endif

Powered by Google App Engine
This is Rietveld 408576698