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

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

Issue 1650303002: Move DOM-inspecting language detection logic to Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 years, 10 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/web/WebDocument.cpp
diff --git a/third_party/WebKit/Source/web/WebDocument.cpp b/third_party/WebKit/Source/web/WebDocument.cpp
index 1f4822f212e6b2747fe02adbdd2fc9fcddff6a72..8105c083ef7c555432509e8c15d193ab20df21a1 100644
--- a/third_party/WebKit/Source/web/WebDocument.cpp
+++ b/third_party/WebKit/Source/web/WebDocument.cpp
@@ -57,6 +57,7 @@
#include "modules/accessibility/AXObjectCacheImpl.h"
#include "platform/weborigin/SecurityOrigin.h"
#include "public/platform/WebDistillability.h"
+#include "public/platform/WebLanguageDetectionDetails.h"
#include "public/platform/WebURL.h"
#include "public/web/WebAXObject.h"
#include "public/web/WebDOMEvent.h"
@@ -318,7 +319,12 @@ bool WebDocument::manifestUseCredentials() const
WebDistillabilityFeatures WebDocument::distillabilityFeatures()
{
- return DocumentStatisticsCollector::collectStatistics(*unwrap<Document>());
+ return DocumentStatisticsCollector::collectDistillabilityFeatures(*unwrap<Document>());
+}
+
+WebLanguageDetectionDetails WebDocument::languageDetectionDetails()
+{
+ return DocumentStatisticsCollector::collectLanguageDetectionDetails(*unwrap<Document>());
}
WebDocument::WebDocument(const PassRefPtrWillBeRawPtr<Document>& elem)

Powered by Google App Engine
This is Rietveld 408576698