| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #include "base/message_loop/message_loop_proxy.h" | 13 #include "base/message_loop/message_loop_proxy.h" |
| 14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
| 15 #include "base/process/kill.h" | 15 #include "base/process/kill.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
| 18 #include "chrome/common/chrome_utility_printing_messages.h" | 18 #include "chrome/common/chrome_utility_printing_messages.h" |
| 19 #include "content/public/common/child_process_host.h" | 19 #include "content/public/common/child_process_host.h" |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 if (!metafile.InitFromFile(metafile_path)) { | 383 if (!metafile.InitFromFile(metafile_path)) { |
| 384 OnRenderPDFPagesToMetafileFailed(); | 384 OnRenderPDFPagesToMetafileFailed(); |
| 385 } else { | 385 } else { |
| 386 OnRenderPDFPagesToMetafileSucceeded(metafile, | 386 OnRenderPDFPagesToMetafileSucceeded(metafile, |
| 387 highest_rendered_page_number, | 387 highest_rendered_page_number, |
| 388 scale_factor); | 388 scale_factor); |
| 389 } | 389 } |
| 390 #endif // defined(OS_WIN) | 390 #endif // defined(OS_WIN) |
| 391 } | 391 } |
| 392 | 392 |
| OLD | NEW |