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

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

Issue 1414283006: Hook up new distillability signal to DistillablePageUtils (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@agent
Patch Set: merge depend Created 5 years, 1 month 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: components/dom_distiller/content/browser/distillable_page_utils.h
diff --git a/components/dom_distiller/content/browser/distillable_page_utils.h b/components/dom_distiller/content/browser/distillable_page_utils.h
index bcc6d4003cb90b49bdc9264ab367affb70be8b4e..dd3e00aba94acfc7ed08142306fcf24b18e7b857 100644
--- a/components/dom_distiller/content/browser/distillable_page_utils.h
+++ b/components/dom_distiller/content/browser/distillable_page_utils.h
@@ -28,6 +28,12 @@ void IsOpenGraphArticle(content::WebContents* web_contents,
void IsDistillablePageForDetector(content::WebContents* web_contents,
const DistillablePageDetector* detector,
base::Callback<void(bool)> callback);
+
+typedef base::Callback<void(bool, bool)> DistillabilityDelegate;
+
+// Set the delegate to receive the result of whether the page is distillable.
+void setDelegate(content::WebContents* web_contents,
+ DistillabilityDelegate delegate);
}
#endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLABLE_PAGE_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698