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

Unified Diff: components/dom_distiller/webui/dom_distiller_handler.h

Issue 151003006: Add support for distilling arbitrary URLs in DOM Distiller Viewer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added new strings to iOS whitelist Created 6 years, 10 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
« no previous file with comments | « components/dom_distiller/webui/DEPS ('k') | components/dom_distiller/webui/dom_distiller_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/webui/dom_distiller_handler.h
diff --git a/components/dom_distiller/webui/dom_distiller_handler.h b/components/dom_distiller/webui/dom_distiller_handler.h
index 24a951d5086e7139970f7cb843d82269f11f1f52..09d39da1df8650022959fdbada8068427b236229 100644
--- a/components/dom_distiller/webui/dom_distiller_handler.h
+++ b/components/dom_distiller/webui/dom_distiller_handler.h
@@ -19,8 +19,7 @@ class DomDistillerService;
class DomDistillerHandler : public content::WebUIMessageHandler {
public:
// The lifetime of |service| has to outlive this handler.
- DomDistillerHandler(DomDistillerService* service,
- const std::string& scheme);
+ DomDistillerHandler(DomDistillerService* service, const std::string& scheme);
virtual ~DomDistillerHandler();
// content::WebUIMessageHandler implementation.
@@ -40,6 +39,10 @@ class DomDistillerHandler : public content::WebUIMessageHandler {
// selected.
void HandleSelectArticle(const base::ListValue* args);
+ // Callback from JavaScript for when viewing a URL is requested. The first
+ // element in |args| should be a string representing the URL to be viewed.
+ void HandleViewUrl(const base::ListValue* args);
+
private:
// Callback from DomDistillerService when an article is available.
void OnArticleAdded(bool article_available);
« no previous file with comments | « components/dom_distiller/webui/DEPS ('k') | components/dom_distiller/webui/dom_distiller_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698