| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_DOM_UI_PRINT_PREVIEW_UI_HTML_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_PRINT_PREVIEW_UI_HTML_SOURCE_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_PRINT_PREVIEW_UI_HTML_SOURCE_H_ | 6 #define CHROME_BROWSER_DOM_UI_PRINT_PREVIEW_UI_HTML_SOURCE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 12 #include "chrome/browser/webui/chrome_url_data_manager.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class SharedMemory; | 15 class SharedMemory; |
| 16 } | 16 } |
| 17 | 17 |
| 18 class PrintPreviewUIHTMLSource : public ChromeURLDataManager::DataSource { | 18 class PrintPreviewUIHTMLSource : public ChromeURLDataManager::DataSource { |
| 19 public: | 19 public: |
| 20 // A SharedMemory that contains the data for print preview, | 20 // A SharedMemory that contains the data for print preview, |
| 21 // and the size of the print preview data in bytes. | 21 // and the size of the print preview data in bytes. |
| 22 typedef std::pair<base::SharedMemory*, uint32> PrintPreviewData; | 22 typedef std::pair<base::SharedMemory*, uint32> PrintPreviewData; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 // Current print preview data, the contents of which are owned by | 44 // Current print preview data, the contents of which are owned by |
| 45 // PrintPreviewHandler. | 45 // PrintPreviewHandler. |
| 46 PrintPreviewData data_; | 46 PrintPreviewData data_; |
| 47 | 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUIHTMLSource); | 48 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUIHTMLSource); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 #endif // CHROME_BROWSER_DOM_UI_PRINT_PREVIEW_UI_HTML_SOURCE_H_ | 51 #endif // CHROME_BROWSER_DOM_UI_PRINT_PREVIEW_UI_HTML_SOURCE_H_ |
| OLD | NEW |