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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.h

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/core/dom/DocumentStatisticsCollector.h
diff --git a/third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.h b/third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.h
index 8c3269ea55d8f15dc7066c2879a0760558690fc3..c4241b43aa8f2bb45a67f808b038b5e385bac451 100644
--- a/third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.h
+++ b/third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.h
@@ -6,15 +6,21 @@
#define DocumentStatisticsCollector_h
#include "core/CoreExport.h"
+#include "wtf/text/StringBuilder.h"
namespace blink {
class Document;
+class LocalFrame;
struct WebDistillabilityFeatures;
+struct WebLanguageDetectionDetails;
class CORE_EXPORT DocumentStatisticsCollector {
public:
- static WebDistillabilityFeatures collectStatistics(Document&);
+ static WebDistillabilityFeatures collectDistillabilityFeatures(Document&);
+ static WebLanguageDetectionDetails collectLanguageDetectionDetails(Document&);
+ // TODO(dglazkov): This function is not compatible with OOPIF. Deprecate and remove it.
+ static void frameTreeContentAsPlainText(size_t maxChars, LocalFrame*, StringBuilder& output);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698