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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "chrome/common/features.h" | 16 #include "chrome/common/features.h" |
17 #include "components/signin/core/browser/gaia_cookie_manager_service.h" | 17 #include "components/signin/core/browser/gaia_cookie_manager_service.h" |
18 #include "content/public/browser/web_ui_message_handler.h" | 18 #include "content/public/browser/web_ui_message_handler.h" |
19 #include "printing/backend/print_backend.h" | 19 #include "printing/backend/print_backend.h" |
20 #include "printing/features/features.h" | 20 #include "printing/features/features.h" |
21 #include "ui/shell_dialogs/select_file_dialog.h" | 21 #include "ui/shell_dialogs/select_file_dialog.h" |
22 | 22 |
23 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 23 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
24 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" | 24 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" |
25 #include "chrome/browser/printing/cloud_print/privet_local_printer_lister.h" | 25 #include "chrome/browser/printing/cloud_print/privet_local_printer_lister.h" |
26 #endif | 26 #endif |
27 | 27 |
28 class PrinterHandler; | 28 class PrinterHandler; |
29 class PrintPreviewUI; | 29 class PrintPreviewUI; |
30 class PrintSystemTaskProxy; | |
31 | 30 |
32 namespace base { | 31 namespace base { |
33 class DictionaryValue; | 32 class DictionaryValue; |
34 class RefCountedBytes; | 33 class RefCountedBytes; |
35 } | 34 } |
36 | 35 |
37 namespace content { | 36 namespace content { |
38 class WebContents; | 37 class WebContents; |
39 } | 38 } |
40 | 39 |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 // Notifies tests that want to know if the PDF has been saved. This doesn't | 379 // Notifies tests that want to know if the PDF has been saved. This doesn't |
381 // notify the test if it was a successful save, only that it was attempted. | 380 // notify the test if it was a successful save, only that it was attempted. |
382 base::Closure pdf_file_saved_closure_; | 381 base::Closure pdf_file_saved_closure_; |
383 | 382 |
384 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; | 383 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; |
385 | 384 |
386 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 385 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
387 }; | 386 }; |
388 | 387 |
389 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 388 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
OLD | NEW |