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

Unified Diff: chrome/browser/dom_ui/print_ui.h

Issue 155067: Hookup Print HTML page to the DOM UI for Print Preview and Settings... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months 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
« no previous file with comments | « chrome/browser/dom_ui/dom_ui_factory.cc ('k') | chrome/browser/dom_ui/print_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/print_ui.h
===================================================================
--- chrome/browser/dom_ui/print_ui.h (revision 20594)
+++ chrome/browser/dom_ui/print_ui.h (working copy)
@@ -5,8 +5,12 @@
#ifndef CHROME_BROWSER_DOM_UI_PRINT_UI_H_
#define CHROME_BROWSER_DOM_UI_PRINT_UI_H_
+#include <string>
+
+#include "chrome/browser/dom_ui/chrome_url_data_manager.h"
#include "chrome/browser/dom_ui/dom_ui.h"
+// The TabContents used for the print page.
class PrintUI : public DOMUI {
public:
explicit PrintUI(TabContents* contents);
@@ -15,4 +19,19 @@
DISALLOW_COPY_AND_ASSIGN(PrintUI);
};
+// To serve dynamic print data off of chrome.
+class PrintUIHTMLSource : public ChromeURLDataManager::DataSource {
+ public:
+ PrintUIHTMLSource();
+
+ // ChromeURLDataManager overrides.
+ virtual void StartDataRequest(const std::string& path, int request_id);
+ virtual std::string GetMimeType(const std::string&) const {
+ return "text/html";
+ }
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(PrintUIHTMLSource);
+};
+
#endif // CHROME_BROWSER_DOM_UI_PRINT_UI_H_
« no previous file with comments | « chrome/browser/dom_ui/dom_ui_factory.cc ('k') | chrome/browser/dom_ui/print_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698