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

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

Issue 1047223003: Add integration of the new heuristics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dd-adaboost-model
Patch Set: whitelist resources for ios 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
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_
« no previous file with comments | « components/dom_distiller/content/BUILD.gn ('k') | components/dom_distiller/content/distillable_page_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698