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); |