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/service/service_utility_process_host.h" | 5 #include "chrome/service/service_utility_process_host.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/message_loop_proxy.h" | 10 #include "base/message_loop_proxy.h" |
11 #include "base/scoped_temp_dir.h" | 11 #include "base/scoped_temp_dir.h" |
12 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
13 #include "chrome/common/utility_messages.h" | 13 #include "chrome/common/chrome_utility_messages.h" |
14 #include "ipc/ipc_switches.h" | 14 #include "ipc/ipc_switches.h" |
15 #include "printing/page_range.h" | 15 #include "printing/page_range.h" |
16 #include "ui/base/ui_base_switches.h" | 16 #include "ui/base/ui_base_switches.h" |
17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/rect.h" |
18 | 18 |
19 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
20 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
21 #include "base/win/scoped_handle.h" | 21 #include "base/win/scoped_handle.h" |
22 #include "printing/emf_win.h" | 22 #include "printing/emf_win.h" |
23 #endif | 23 #endif |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 printing::Emf metafile; | 208 printing::Emf metafile; |
209 if (!metafile.InitFromFile(metafile_path)) { | 209 if (!metafile.InitFromFile(metafile_path)) { |
210 OnRenderPDFPagesToMetafileFailed(); | 210 OnRenderPDFPagesToMetafileFailed(); |
211 } else { | 211 } else { |
212 OnRenderPDFPagesToMetafileSucceeded(metafile, | 212 OnRenderPDFPagesToMetafileSucceeded(metafile, |
213 highest_rendered_page_number); | 213 highest_rendered_page_number); |
214 } | 214 } |
215 #endif // defined(OS_WIN) | 215 #endif // defined(OS_WIN) |
216 } | 216 } |
217 | 217 |
OLD | NEW |