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); |