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

Unified Diff: components/dom_distiller/content/dom_distiller_viewer_source.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: 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
Index: components/dom_distiller/content/dom_distiller_viewer_source.h
diff --git a/components/dom_distiller/content/dom_distiller_viewer_source.h b/components/dom_distiller/content/dom_distiller_viewer_source.h
index eb7559bc20ae18527d94e21e3001ce05809e8cf6..07ec58845213065ddc06fea05d8c81f0a9c76b5a 100644
--- a/components/dom_distiller/content/dom_distiller_viewer_source.h
+++ b/components/dom_distiller/content/dom_distiller_viewer_source.h
@@ -12,6 +12,7 @@
namespace dom_distiller {
class DomDistillerService;
+class ViewerHandle;
// Serves HTML and resources for viewing distilled articles.
class DomDistillerViewerSource : public content::URLDataSource {
@@ -21,6 +22,8 @@ class DomDistillerViewerSource : public content::URLDataSource {
virtual ~DomDistillerViewerSource();
private:
+ class RequestViewerHandle;
+
// Overridden from content::URLDataSource:
virtual std::string GetSource() const OVERRIDE;
virtual void StartDataRequest(
@@ -35,6 +38,10 @@ class DomDistillerViewerSource : public content::URLDataSource {
std::string* path) const OVERRIDE;
virtual std::string GetContentSecurityPolicyObjectSrc() const OVERRIDE;
+ scoped_ptr<ViewerHandle> CreateViewRequest(
+ const std::string& path,
+ RequestViewerHandle* request_viewer_handle);
+
// The scheme this URLDataSource is hosted under.
std::string scheme_;

Powered by Google App Engine
This is Rietveld 408576698