| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_DOM_UI_PRINT_PREVIEW_UI_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_PRINT_PREVIEW_UI_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <string> |
| 10 |
| 11 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
| 12 #include "chrome/browser/dom_ui/dom_ui.h" |
| 13 |
| 14 struct UserMetricsAction; |
| 15 |
| 16 class PrintPreviewUIHTMLSource : public ChromeURLDataManager::DataSource { |
| 17 public: |
| 18 explicit PrintPreviewUIHTMLSource(); |
| 19 virtual ~PrintPreviewUIHTMLSource(); |
| 20 |
| 21 // Called when the network layer has requested a resource underneath |
| 22 // the path we registered. |
| 23 virtual void StartDataRequest(const std::string& path, |
| 24 bool is_off_the_record, |
| 25 int request_id); |
| 26 virtual std::string GetMimeType(const std::string&) const; |
| 27 |
| 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUIHTMLSource); |
| 30 }; |
| 31 |
| 32 class PrintPreviewUI : public DOMUI { |
| 33 public: |
| 34 explicit PrintPreviewUI(TabContents* contents); |
| 35 virtual ~PrintPreviewUI(); |
| 36 |
| 37 private: |
| 38 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); |
| 39 }; |
| 40 |
| 41 #endif // CHROME_BROWSER_DOM_UI_PRINT_PREVIEW_UI_H_ |
| OLD | NEW |