| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_DOM_DISTILLER_CONTENT_DOM_DISTILLER_VIEWER_SOURCE_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_CONTENT_DOM_DISTILLER_VIEWER_SOURCE_H_ |
| 6 #define COMPONENTS_DOM_DISTILLER_CONTENT_DOM_DISTILLER_VIEWER_SOURCE_H_ | 6 #define COMPONENTS_DOM_DISTILLER_CONTENT_DOM_DISTILLER_VIEWER_SOURCE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // Serves HTML and resources for viewing distilled articles. | 23 // Serves HTML and resources for viewing distilled articles. |
| 24 class DomDistillerViewerSource : public content::URLDataSource { | 24 class DomDistillerViewerSource : public content::URLDataSource { |
| 25 public: | 25 public: |
| 26 DomDistillerViewerSource( | 26 DomDistillerViewerSource( |
| 27 DomDistillerServiceInterface* dom_distiller_service, | 27 DomDistillerServiceInterface* dom_distiller_service, |
| 28 const std::string& scheme, | 28 const std::string& scheme, |
| 29 scoped_ptr<ExternalFeedbackReporter> external_reporter); | 29 scoped_ptr<ExternalFeedbackReporter> external_reporter); |
| 30 ~DomDistillerViewerSource() override; | 30 ~DomDistillerViewerSource() override; |
| 31 | 31 |
| 32 class RequestViewerHandle; | 32 class RequestViewerHandle; |
| 33 class PrintPreviewRequestViewerHandle; |
| 33 | 34 |
| 34 // Overridden from content::URLDataSource: | 35 // Overridden from content::URLDataSource: |
| 35 std::string GetSource() const override; | 36 std::string GetSource() const override; |
| 36 void StartDataRequest( | 37 void StartDataRequest( |
| 37 const std::string& path, | 38 const std::string& path, |
| 38 int render_process_id, | 39 int render_process_id, |
| 39 int render_frame_id, | 40 int render_frame_id, |
| 40 const content::URLDataSource::GotDataCallback& callback) override; | 41 const content::URLDataSource::GotDataCallback& callback) override; |
| 41 std::string GetMimeType(const std::string& path) const override; | 42 std::string GetMimeType(const std::string& path) const override; |
| 42 bool ShouldServiceRequest(const net::URLRequest* request) const override; | 43 bool ShouldServiceRequest(const net::URLRequest* request) const override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 57 | 58 |
| 58 // A means for starting/opening an external service for feedback reporting. | 59 // A means for starting/opening an external service for feedback reporting. |
| 59 scoped_ptr<ExternalFeedbackReporter> external_feedback_reporter_; | 60 scoped_ptr<ExternalFeedbackReporter> external_feedback_reporter_; |
| 60 | 61 |
| 61 DISALLOW_COPY_AND_ASSIGN(DomDistillerViewerSource); | 62 DISALLOW_COPY_AND_ASSIGN(DomDistillerViewerSource); |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 } // namespace dom_distiller | 65 } // namespace dom_distiller |
| 65 | 66 |
| 66 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_DOM_DISTILLER_VIEWER_SOURCE_H_ | 67 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_DOM_DISTILLER_VIEWER_SOURCE_H_ |
| OLD | NEW |