| 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 38ff4afb1eb9c5b79ad16ea9f2ff5e76a3a26c97..b3d70f4a4ef91c14b8cf48735c7c1464334d0320 100644
|
| --- a/components/dom_distiller/content/dom_distiller_viewer_source.h
|
| +++ b/components/dom_distiller/content/dom_distiller_viewer_source.h
|
| @@ -11,10 +11,12 @@
|
|
|
| namespace dom_distiller {
|
|
|
| +class DomDistillerService;
|
| +
|
| // Serves HTML and resources for viewing distilled articles.
|
| class DomDistillerViewerSource : public content::URLDataSource {
|
| public:
|
| - DomDistillerViewerSource();
|
| + explicit DomDistillerViewerSource(DomDistillerService* dom_distiller_service);
|
|
|
| private:
|
| virtual ~DomDistillerViewerSource();
|
| @@ -27,10 +29,16 @@ class DomDistillerViewerSource : public content::URLDataSource {
|
| int render_view_id,
|
| const content::URLDataSource::GotDataCallback& callback) OVERRIDE;
|
| virtual std::string GetMimeType(const std::string& path) const OVERRIDE;
|
| - virtual bool ShouldServiceRequest(
|
| - const net::URLRequest* request) const OVERRIDE;
|
| + virtual bool ShouldServiceRequest(const net::URLRequest* request)
|
| + const OVERRIDE;
|
| + virtual void WillServiceRequest(const net::URLRequest* request,
|
| + std::string* path) const OVERRIDE;
|
| virtual std::string GetContentSecurityPolicyFrameSrc() const OVERRIDE;
|
|
|
| + // The service which contains all the functionality needed to interact with
|
| + // the list of articles.
|
| + DomDistillerService* dom_distiller_service_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(DomDistillerViewerSource);
|
| };
|
|
|
|
|