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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..95216bd4bd970db53facfa51bf01b649e355bbf6 |
--- /dev/null |
+++ b/components/dom_distiller/content/distillable_page_utils.h |
@@ -0,0 +1,25 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_DOM_DISTILLER_CONTENT_DISTILLABLE_PAGE_UTILS_H_ |
+#define COMPONENTS_DOM_DISTILLER_CONTENT_DISTILLABLE_PAGE_UTILS_H_ |
+ |
+#include "base/callback.h" |
+#include "content/public/browser/web_contents.h" |
+ |
+namespace dom_distiller { |
+ |
+class DistillablePageDetector; |
+ |
+void IsOpenGraphArticle(content::WebContents* web_contents, |
+ base::Callback<void(bool)> callback); |
+void IsDistillablePage(content::WebContents* web_contents, |
+ base::Callback<void(bool)> callback); |
+// 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); |
+} |
+ |
+#endif // COMPONENTS_DOM_DISTILLER_CONTENT_DISTILLABLE_PAGE_UTILS_H_ |