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

Unified Diff: components/dom_distiller/webui/dom_distiller_viewer_ui.h

Issue 105723002: Add the scheme chrome-distiller:// and hook up data source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years 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/webui/dom_distiller_viewer_ui.h
diff --git a/components/dom_distiller/webui/dom_distiller_viewer_ui.h b/components/dom_distiller/webui/dom_distiller_viewer_ui.h
new file mode 100644
index 0000000000000000000000000000000000000000..8abab3708db7f6d0e019e3ca08689a355d6adb6e
--- /dev/null
+++ b/components/dom_distiller/webui/dom_distiller_viewer_ui.h
@@ -0,0 +1,26 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_DOM_DISTILLER_WEBUI_DOM_DISTILLER_VIEWER_UI_H_
+#define COMPONENTS_DOM_DISTILLER_WEBUI_DOM_DISTILLER_VIEWER_UI_H_
+
+#include "components/dom_distiller/webui/dom_distiller_viewer_handler.h"
+#include "content/public/browser/web_ui_controller.h"
+#include "content/public/browser/web_ui_data_source.h"
+
+namespace dom_distiller {
+
+// The WebUI controller for chrome-distiller://.
+class DomDistillerViewerUi : public content::WebUIController {
+ public:
+ DomDistillerViewerUi(content::WebUI* web_ui);
+ virtual ~DomDistillerViewerUi();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DomDistillerViewerUi);
+};
+
+} // namespace dom_distiller
+
+#endif // COMPONENTS_DOM_DISTILLER_WEBUI_DOM_DISTILLER_VIEWER_UI_H_

Powered by Google App Engine
This is Rietveld 408576698