OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PRINT_PREVIEW_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
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 "chrome/browser/printing/print_view_manager_observer.h" | 14 #include "chrome/browser/printing/print_view_manager_observer.h" |
| 15 #include "chrome/browser/ui/webui/print_preview/hidden_print_preview.h" |
15 #include "components/signin/core/browser/gaia_cookie_manager_service.h" | 16 #include "components/signin/core/browser/gaia_cookie_manager_service.h" |
16 #include "content/public/browser/web_ui_message_handler.h" | 17 #include "content/public/browser/web_ui_message_handler.h" |
17 #include "ui/shell_dialogs/select_file_dialog.h" | 18 #include "ui/shell_dialogs/select_file_dialog.h" |
18 | 19 |
19 #if defined(ENABLE_SERVICE_DISCOVERY) | 20 #if defined(ENABLE_SERVICE_DISCOVERY) |
20 #include "chrome/browser/local_discovery/privet_local_printer_lister.h" | 21 #include "chrome/browser/local_discovery/privet_local_printer_lister.h" |
21 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" | 22 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" |
22 #endif // ENABLE_SERVICE_DISCOVERY | 23 #endif // ENABLE_SERVICE_DISCOVERY |
23 | 24 |
24 class PrinterHandler; | 25 class PrinterHandler; |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 #endif | 383 #endif |
383 | 384 |
384 // Handles requests for extension printers. Created lazily by calling | 385 // Handles requests for extension printers. Created lazily by calling |
385 // |EnsureExtensionPrinterHandlerSet|. | 386 // |EnsureExtensionPrinterHandlerSet|. |
386 scoped_ptr<PrinterHandler> extension_printer_handler_; | 387 scoped_ptr<PrinterHandler> extension_printer_handler_; |
387 | 388 |
388 // Notifies tests that want to know if the PDF has been saved. This doesn't | 389 // Notifies tests that want to know if the PDF has been saved. This doesn't |
389 // notify the test if it was a successful save, only that it was attempted. | 390 // notify the test if it was a successful save, only that it was attempted. |
390 base::Closure pdf_file_saved_closure_; | 391 base::Closure pdf_file_saved_closure_; |
391 | 392 |
| 393 scoped_ptr<HiddenPrintPreview> hidden_print_preview_; |
| 394 |
392 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; | 395 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; |
393 | 396 |
394 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 397 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
395 }; | 398 }; |
396 | 399 |
397 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 400 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
OLD | NEW |