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

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

Issue 2786913002: Replace the type of hint url for blink::detectTextEncoding (Closed)
Patch Set: const KURL Created 3 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 0ba0645d4f8e72b6d5ce255bf91140b1964cbf4c..667b3c1cbfd06a884a0db1a76f0f778fd5113775 100644
--- a/third_party/WebKit/Source/platform/text/TextEncodingDetector.h
+++ b/third_party/WebKit/Source/platform/text/TextEncodingDetector.h
@@ -39,6 +39,7 @@ class TextEncoding;
}
namespace blink {
+class KURL;
// Given a sequence of bytes in |data| of length |len| and an optional
// hintEncodingName, detect the most likely character encoding.
@@ -50,7 +51,7 @@ namespace blink {
PLATFORM_EXPORT bool detectTextEncoding(const char* data,
size_t length,
const char* hintEncodingName,
- const char* hintUrl,
+ const KURL& hintUrl,
const char* hintUserLanguage,
WTF::TextEncoding* detectedEncoding);

Powered by Google App Engine
This is Rietveld 408576698