Index: chrome/browser/ui/webui/print_preview_ui.h |
diff --git a/chrome/browser/ui/webui/print_preview_ui.h b/chrome/browser/ui/webui/print_preview_ui.h |
index 99a887873c075d237e4117c5391e0dc4594ec562..1ad7c50edc60899735d8c3d25488bf7647ce93a8 100644 |
--- a/chrome/browser/ui/webui/print_preview_ui.h |
+++ b/chrome/browser/ui/webui/print_preview_ui.h |
@@ -9,16 +9,22 @@ |
#include <string> |
#include "base/memory/ref_counted.h" |
+#include "chrome/browser/ui/webui/print_preview_data_manager.h" |
#include "content/browser/webui/web_ui.h" |
-class PrintPreviewUIHTMLSource; |
- |
class PrintPreviewUI : public WebUI { |
public: |
explicit PrintPreviewUI(TabContents* contents); |
virtual ~PrintPreviewUI(); |
- PrintPreviewUIHTMLSource* html_source(); |
+ // Gets the print preview |data|. The data is valid as long as the |
+ // PrintPreviewDataManager is valid and SetPrintPreviewData() does not get |
+ // called. |
+ void GetPrintPreviewData(PrintPreviewDataManager::PrintPreviewData* data); |
+ |
+ // Sets the print preview |data|. |
+ void SetPrintPreviewData( |
+ const PrintPreviewDataManager::PrintPreviewData& data); |
// Notify the Web UI renderer that preview data is available. |
// |expected_pages_count| specifies the total number of pages. |
@@ -36,7 +42,11 @@ class PrintPreviewUI : public WebUI { |
void OnInitiatorTabClosed(const std::string& initiator_tab_url); |
private: |
- scoped_refptr<PrintPreviewUIHTMLSource> html_source_; |
+ // Store chrome://Print data source. |
+ scoped_refptr<PrintPreviewDataManager> data_manager_; |
+ |
+ // Store the PrintPreviewUI address string. |
+ std::string preview_ui_addr_str_; |
DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); |
}; |