| 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_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "chrome/browser/printing/print_view_manager_observer.h" | 15 #include "chrome/browser/printing/print_view_manager_observer.h" |
| 16 #include "chrome/browser/ui/shell_dialogs.h" | 16 #include "chrome/browser/ui/shell_dialogs.h" |
| 17 #include "content/browser/webui/web_ui.h" | 17 #include "content/browser/webui/web_ui.h" |
| 18 #include "printing/print_job_constants.h" | 18 #include "printing/print_job_constants.h" |
| 19 | 19 |
| 20 class FilePath; | 20 class FilePath; |
| 21 class PrintSystemTaskProxy; | 21 class PrintSystemTaskProxy; |
| 22 class TabContentsWrapper; | 22 class TabContentsWrapper; |
| 23 | 23 |
| 24 namespace base { | 24 namespace base { |
| 25 class DictionaryValue; | 25 class DictionaryValue; |
| 26 class FundamentalValue; | |
| 27 class StringValue; | 26 class StringValue; |
| 28 } | 27 } |
| 29 | 28 |
| 30 namespace printing { | 29 namespace printing { |
| 31 class PrintBackend; | 30 class PrintBackend; |
| 32 } | 31 } |
| 33 | 32 |
| 34 // The handler for Javascript messages related to the print preview dialog. | 33 // The handler for Javascript messages related to the print preview dialog. |
| 35 class PrintPreviewHandler : public WebUIMessageHandler, | 34 class PrintPreviewHandler : public WebUIMessageHandler, |
| 36 public base::SupportsWeakPtr<PrintPreviewHandler>, | 35 public base::SupportsWeakPtr<PrintPreviewHandler>, |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 bool has_logged_printers_count_; | 204 bool has_logged_printers_count_; |
| 206 | 205 |
| 207 // Holds the path to the print to pdf request. It is empty if no such request | 206 // Holds the path to the print to pdf request. It is empty if no such request |
| 208 // exists. | 207 // exists. |
| 209 scoped_ptr<FilePath> print_to_pdf_path_; | 208 scoped_ptr<FilePath> print_to_pdf_path_; |
| 210 | 209 |
| 211 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 210 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
| 212 }; | 211 }; |
| 213 | 212 |
| 214 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ | 213 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ |
| OLD | NEW |