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_BROWSER_DOM_DISTILLER_VIEWER_SOURCE_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DOM_DISTILLER_VIEWER_SOURCE_H_ |
6 #define COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DOM_DISTILLER_VIEWER_SOURCE_H_ | 6 #define COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DOM_DISTILLER_VIEWER_SOURCE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "components/dom_distiller/content/browser/distiller_ui_handle.h" | 13 #include "components/dom_distiller/content/browser/distiller_ui_handle.h" |
14 #include "content/public/browser/url_data_source.h" | 14 #include "content/public/browser/url_data_source.h" |
15 | 15 |
16 namespace dom_distiller { | 16 namespace dom_distiller { |
17 | 17 |
18 class DomDistillerServiceInterface; | 18 class DomDistillerServiceInterface; |
19 class DomDistillerViewerSourceTest; | 19 class DomDistillerViewerSourceTest; |
20 class ViewerHandle; | |
21 class ViewRequestDelegate; | |
22 | 20 |
23 // Serves HTML and resources for viewing distilled articles. | 21 // Serves HTML and resources for viewing distilled articles. |
24 class DomDistillerViewerSource : public content::URLDataSource { | 22 class DomDistillerViewerSource : public content::URLDataSource { |
25 public: | 23 public: |
26 DomDistillerViewerSource(DomDistillerServiceInterface* dom_distiller_service, | 24 DomDistillerViewerSource(DomDistillerServiceInterface* dom_distiller_service, |
27 const std::string& scheme, | 25 const std::string& scheme, |
28 std::unique_ptr<DistillerUIHandle> ui_handle); | 26 std::unique_ptr<DistillerUIHandle> ui_handle); |
29 ~DomDistillerViewerSource() override; | 27 ~DomDistillerViewerSource() override; |
30 | 28 |
31 class RequestViewerHandle; | 29 class RequestViewerHandle; |
(...skipping 24 matching lines...) Expand all Loading... |
56 // An object for accessing chrome-specific UI controls including external | 54 // An object for accessing chrome-specific UI controls including external |
57 // feedback and opening the distiller settings. | 55 // feedback and opening the distiller settings. |
58 std::unique_ptr<DistillerUIHandle> distiller_ui_handle_; | 56 std::unique_ptr<DistillerUIHandle> distiller_ui_handle_; |
59 | 57 |
60 DISALLOW_COPY_AND_ASSIGN(DomDistillerViewerSource); | 58 DISALLOW_COPY_AND_ASSIGN(DomDistillerViewerSource); |
61 }; | 59 }; |
62 | 60 |
63 } // namespace dom_distiller | 61 } // namespace dom_distiller |
64 | 62 |
65 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DOM_DISTILLER_VIEWER_SOURCE_
H_ | 63 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DOM_DISTILLER_VIEWER_SOURCE_
H_ |
OLD | NEW |