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

Unified Diff: third_party/WebKit/Source/web/WebDocument.cpp

Issue 1456843002: Finch experiment: auto-detect text encoding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 5 years 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/web/WebDocument.cpp
diff --git a/third_party/WebKit/Source/web/WebDocument.cpp b/third_party/WebKit/Source/web/WebDocument.cpp
index 450ccaa6b89493a6ccc054a18c585126b8ff71d0..e5b650ff257b3ee178142f17394eb250fcbcb02d 100644
--- a/third_party/WebKit/Source/web/WebDocument.cpp
+++ b/third_party/WebKit/Source/web/WebDocument.cpp
@@ -322,6 +322,18 @@ WebDistillabilityFeatures WebDocument::distillabilityFeatures()
return DocumentStatisticsCollector::collectStatistics(*unwrap<Document>());
}
+bool WebDocument::attemptedToDetermineEncodingFromContentSniffing() const
+{
+ const Document* document = constUnwrap<Document>();
+ return document->attemptedToDetermineEncodingFromContentSniffing();
+}
+
+bool WebDocument::encodingWasDetectedFromContentSniffing() const
+{
+ const Document* document = constUnwrap<Document>();
+ return document->encodingWasDetectedFromContentSniffing();
+}
+
WebDocument::WebDocument(const PassRefPtrWillBeRawPtr<Document>& elem)
: WebNode(elem)
{

Powered by Google App Engine
This is Rietveld 408576698