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 #include "chrome/service/service_utility_process_host.h" | 5 #include "chrome/service/service_utility_process_host.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <queue> | 9 #include <queue> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/files/file.h" | 14 #include "base/files/file.h" |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/files/file_util.h" | 16 #include "base/files/file_util.h" |
17 #include "base/files/scoped_temp_dir.h" | 17 #include "base/files/scoped_temp_dir.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/metrics/histogram.h" | 20 #include "base/metrics/histogram.h" |
21 #include "base/process/launch.h" | 21 #include "base/process/launch.h" |
| 22 #include "base/single_thread_task_runner.h" |
22 #include "base/strings/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
23 #include "base/task_runner_util.h" | 24 #include "base/task_runner_util.h" |
24 #include "base/threading/thread_task_runner_handle.h" | 25 #include "base/threading/thread_task_runner_handle.h" |
25 #include "base/win/win_util.h" | 26 #include "base/win/win_util.h" |
26 #include "build/build_config.h" | 27 #include "build/build_config.h" |
27 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
28 #include "chrome/common/chrome_utility_printing_messages.h" | 29 #include "chrome/common/chrome_utility_printing_messages.h" |
29 #include "content/public/common/child_process_host.h" | 30 #include "content/public/common/child_process_host.h" |
30 #include "content/public/common/content_switches.h" | 31 #include "content/public/common/content_switches.h" |
31 #include "content/public/common/mojo_channel_switches.h" | 32 #include "content/public/common/mojo_channel_switches.h" |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 return false; | 457 return false; |
457 } | 458 } |
458 printing::Emf emf; | 459 printing::Emf emf; |
459 if (!emf.InitFromData(data.data(), data.size())) { | 460 if (!emf.InitFromData(data.data(), data.size())) { |
460 OnRenderPDFPagesToMetafileDone(false); | 461 OnRenderPDFPagesToMetafileDone(false); |
461 return false; | 462 return false; |
462 } | 463 } |
463 OnRenderPDFPagesToMetafilePageDone(scale_factor, emf); | 464 OnRenderPDFPagesToMetafilePageDone(scale_factor, emf); |
464 return true; | 465 return true; |
465 } | 466 } |
OLD | NEW |