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 #include "chrome/browser/printing/printing_message_filter.h" | 5 #include "chrome/browser/printing/printing_message_filter.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/printing/printer_query.h" | 11 #include "chrome/browser/printing/printer_query.h" |
12 #include "chrome/browser/printing/print_job_manager.h" | 12 #include "chrome/browser/printing/print_job_manager.h" |
13 #include "chrome/browser/ui/webui/print_preview_ui.h" | 13 #include "chrome/browser/ui/webui/print_preview_ui.h" |
14 #include "chrome/common/print_messages.h" | 14 #include "chrome/common/print_messages.h" |
15 | 15 |
16 #if defined(OS_CHROMEOS) | 16 #if defined(OS_CHROMEOS) |
17 #include <fcntl.h> | 17 #include <fcntl.h> |
18 | 18 |
19 #include <map> | 19 #include <map> |
20 | 20 |
21 #include "base/file_util.h" | 21 #include "base/file_util.h" |
22 #include "base/lazy_instance.h" | 22 #include "base/lazy_instance.h" |
23 #include "chrome/browser/printing/print_dialog_cloud.h" | 23 #include "chrome/browser/printing/print_dialog_cloud.h" |
24 #else | 24 #else |
25 #include "base/command_line.h" | 25 #include "base/command_line.h" |
26 #include "chrome/common/chrome_switches.h" | 26 #include "chrome/common/chrome_switches.h" |
27 #endif | 27 #endif |
28 | 28 |
| 29 using content::BrowserThread; |
| 30 |
29 namespace { | 31 namespace { |
30 | 32 |
31 #if defined(OS_CHROMEOS) | 33 #if defined(OS_CHROMEOS) |
32 typedef std::map<int, FilePath> SequenceToPathMap; | 34 typedef std::map<int, FilePath> SequenceToPathMap; |
33 | 35 |
34 struct PrintingSequencePathMap { | 36 struct PrintingSequencePathMap { |
35 SequenceToPathMap map; | 37 SequenceToPathMap map; |
36 int sequence; | 38 int sequence; |
37 }; | 39 }; |
38 | 40 |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 } | 322 } |
321 } | 323 } |
322 | 324 |
323 void PrintingMessageFilter::OnCheckForCancel(const std::string& preview_ui_addr, | 325 void PrintingMessageFilter::OnCheckForCancel(const std::string& preview_ui_addr, |
324 int preview_request_id, | 326 int preview_request_id, |
325 bool* cancel) { | 327 bool* cancel) { |
326 PrintPreviewUI::GetCurrentPrintPreviewStatus(preview_ui_addr, | 328 PrintPreviewUI::GetCurrentPrintPreviewStatus(preview_ui_addr, |
327 preview_request_id, | 329 preview_request_id, |
328 cancel); | 330 cancel); |
329 } | 331 } |
OLD | NEW |