| 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> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "base/win/win_util.h" | 25 #include "base/win/win_util.h" |
| 26 #include "build/build_config.h" | 26 #include "build/build_config.h" |
| 27 #include "chrome/common/chrome_switches.h" | 27 #include "chrome/common/chrome_switches.h" |
| 28 #include "chrome/common/chrome_utility_printing_messages.h" | 28 #include "chrome/common/chrome_utility_printing_messages.h" |
| 29 #include "content/public/common/child_process_host.h" | 29 #include "content/public/common/child_process_host.h" |
| 30 #include "content/public/common/content_switches.h" | 30 #include "content/public/common/content_switches.h" |
| 31 #include "content/public/common/mojo_channel_switches.h" | 31 #include "content/public/common/mojo_channel_switches.h" |
| 32 #include "content/public/common/result_codes.h" | 32 #include "content/public/common/result_codes.h" |
| 33 #include "content/public/common/sandbox_init.h" | 33 #include "content/public/common/sandbox_init.h" |
| 34 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 34 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
| 35 #include "ipc/ipc_switches.h" | |
| 36 #include "mojo/edk/embedder/embedder.h" | 35 #include "mojo/edk/embedder/embedder.h" |
| 37 #include "mojo/edk/embedder/named_platform_channel_pair.h" | 36 #include "mojo/edk/embedder/named_platform_channel_pair.h" |
| 38 #include "mojo/edk/embedder/platform_channel_pair.h" | 37 #include "mojo/edk/embedder/platform_channel_pair.h" |
| 39 #include "mojo/edk/embedder/scoped_platform_handle.h" | 38 #include "mojo/edk/embedder/scoped_platform_handle.h" |
| 40 #include "printing/emf_win.h" | 39 #include "printing/emf_win.h" |
| 41 #include "sandbox/win/src/sandbox_policy.h" | 40 #include "sandbox/win/src/sandbox_policy.h" |
| 42 #include "sandbox/win/src/sandbox_types.h" | 41 #include "sandbox/win/src/sandbox_types.h" |
| 43 #include "ui/base/ui_base_switches.h" | 42 #include "ui/base/ui_base_switches.h" |
| 44 | 43 |
| 45 namespace { | 44 namespace { |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 return false; | 456 return false; |
| 458 } | 457 } |
| 459 printing::Emf emf; | 458 printing::Emf emf; |
| 460 if (!emf.InitFromData(data.data(), data.size())) { | 459 if (!emf.InitFromData(data.data(), data.size())) { |
| 461 OnRenderPDFPagesToMetafileDone(false); | 460 OnRenderPDFPagesToMetafileDone(false); |
| 462 return false; | 461 return false; |
| 463 } | 462 } |
| 464 OnRenderPDFPagesToMetafilePageDone(scale_factor, emf); | 463 OnRenderPDFPagesToMetafilePageDone(scale_factor, emf); |
| 465 return true; | 464 return true; |
| 466 } | 465 } |
| OLD | NEW |