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

Unified Diff: components/dom_distiller/content/distillable_page_utils.h

Issue 1051673002: Add flags and experiment config for selecting triggering heuristics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dd-heuristics-apply
Patch Set: rebase Created 5 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
« no previous file with comments | « components/dom_distiller.gypi ('k') | components/dom_distiller/content/distillable_page_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/content/distillable_page_utils.h
diff --git a/components/dom_distiller/content/distillable_page_utils.h b/components/dom_distiller/content/distillable_page_utils.h
index 95216bd4bd970db53facfa51bf01b649e355bbf6..e2887dba95cab99f0b57daee1000505e6f43b27f 100644
--- a/components/dom_distiller/content/distillable_page_utils.h
+++ b/components/dom_distiller/content/distillable_page_utils.h
@@ -12,11 +12,18 @@ namespace dom_distiller {
class DistillablePageDetector;
-void IsOpenGraphArticle(content::WebContents* web_contents,
- base::Callback<void(bool)> callback);
+// Checks if the page appears to be distillable based on whichever heuristics
+// are configured to be used (see dom_distiller::GetDistillerHeuristicsType).
void IsDistillablePage(content::WebContents* web_contents,
base::Callback<void(bool)> callback);
-// The passed detector must be alive until after the callback is called.
+
+// Checks if the web_contents is has opengraph type=article markup.
+void IsOpenGraphArticle(content::WebContents* web_contents,
+ base::Callback<void(bool)> callback);
+
+// Uses the provided DistillablePageDetector to detect if the page is
+// distillable. The passed detector must be alive until after the callback is
+// called.
void IsDistillablePageForDetector(content::WebContents* web_contents,
const DistillablePageDetector* detector,
base::Callback<void(bool)> callback);
« no previous file with comments | « components/dom_distiller.gypi ('k') | components/dom_distiller/content/distillable_page_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698