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

Unified Diff: components/dom_distiller/core/url_utils.h

Issue 464973002: JavaScript that returns whether or not a page is an article (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes to comments and closure wrap Created 6 years, 4 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/core/url_utils.h
diff --git a/components/dom_distiller/core/url_utils.h b/components/dom_distiller/core/url_utils.h
index 4dc73b39d88e82ef2661303b4b3e138c4662228e..8446e87abd431144c12ec16bc0f27ff085f026cf 100644
--- a/components/dom_distiller/core/url_utils.h
+++ b/components/dom_distiller/core/url_utils.h
@@ -31,6 +31,10 @@ bool IsUrlDistillable(const GURL& url);
// Returns whether the given |url| is for a distilled page.
bool IsDistilledPage(const GURL& url);
+// Returns a JavaScript snippet that returns whether or not a page should be
+// used with DomDistillerService and can be executed in a live page.
+std::string GetIsDistillableJs();
+
} // namespace url_utils
} // namespace dom_distiller
« no previous file with comments | « components/dom_distiller/core/javascript/is_distillable_trigger.js ('k') | components/dom_distiller/core/url_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698