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

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

Issue 1248643004: Test distillability without JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@early
Patch Set: fix browsertest, merge webkit CL, merge http://crrev.com/1403413004 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..330a4d55d8c624080105b136596f6b8f868daaca 100644
--- a/components/dom_distiller/content/browser/distillable_page_utils.h
+++ b/components/dom_distiller/content/browser/distillable_page_utils.h
@@ -12,22 +12,9 @@ namespace dom_distiller {
class DistillablePageDetector;
-// 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,
- bool is_mobile_optimized,
- base::Callback<void(bool)> callback);
-
-// 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);
+// Set the callback to receive the result of whether the page is distillable.
+void setCallback(content::WebContents* web_contents,
+ base::Callback<void(bool, bool)> callback);
}
#endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLABLE_PAGE_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698