OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WEBUI_DOM_DISTILLER_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_WEBUI_DOM_DISTILLER_UI_H_ |
6 #define COMPONENTS_DOM_DISTILLER_WEBUI_DOM_DISTILLER_H_ | 6 #define COMPONENTS_DOM_DISTILLER_WEBUI_DOM_DISTILLER_UI_H_ |
7 | 7 |
8 #include "content/public/browser/web_ui_controller.h" | 8 #include "content/public/browser/web_ui_controller.h" |
9 | 9 |
10 namespace dom_distiller { | 10 namespace dom_distiller { |
11 | 11 |
12 // The WebUI handler for chrome://dom-distiller. | 12 class DomDistillerService; |
13 class DomDistillerUI : public content::WebUIController { | 13 |
| 14 // The WebUI controller for chrome://dom-distiller. |
| 15 class DomDistillerUi : public content::WebUIController { |
14 public: | 16 public: |
15 explicit DomDistillerUI(content::WebUI* web_ui); | 17 DomDistillerUi(content::WebUI* web_ui, |
16 virtual ~DomDistillerUI(); | 18 DomDistillerService* service, |
| 19 const std::string& scheme); |
| 20 virtual ~DomDistillerUi(); |
17 | 21 |
18 private: | 22 private: |
19 DISALLOW_COPY_AND_ASSIGN(DomDistillerUI); | 23 DISALLOW_COPY_AND_ASSIGN(DomDistillerUi); |
20 }; | 24 }; |
21 | 25 |
22 } // namespace dom_distiller | 26 } // namespace dom_distiller |
23 | 27 |
24 #endif // COMPONENTS_DOM_DISTILLER_WEBUI_DOM_DISTILLER_UI_H_ | 28 #endif // COMPONENTS_DOM_DISTILLER_WEBUI_DOM_DISTILLER_UI_H_ |
OLD | NEW |