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 <queue> | 7 #include <queue> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 SERVICE_UTILITY_EVENT_MAX); | 55 SERVICE_UTILITY_EVENT_MAX); |
56 } | 56 } |
57 | 57 |
58 // NOTE: changes to this class need to be reviewed by the security team. | 58 // NOTE: changes to this class need to be reviewed by the security team. |
59 class ServiceSandboxedProcessLauncherDelegate | 59 class ServiceSandboxedProcessLauncherDelegate |
60 : public content::SandboxedProcessLauncherDelegate { | 60 : public content::SandboxedProcessLauncherDelegate { |
61 public: | 61 public: |
62 ServiceSandboxedProcessLauncherDelegate() {} | 62 ServiceSandboxedProcessLauncherDelegate() {} |
63 | 63 |
64 virtual void PreSpawnTarget(sandbox::TargetPolicy* policy, | 64 virtual void PreSpawnTarget(sandbox::TargetPolicy* policy, |
65 bool* success) OVERRIDE { | 65 bool* success) override { |
66 // Service process may run as windows service and it fails to create a | 66 // Service process may run as windows service and it fails to create a |
67 // window station. | 67 // window station. |
68 policy->SetAlternateDesktop(false); | 68 policy->SetAlternateDesktop(false); |
69 } | 69 } |
70 | 70 |
71 private: | 71 private: |
72 DISALLOW_COPY_AND_ASSIGN(ServiceSandboxedProcessLauncherDelegate); | 72 DISALLOW_COPY_AND_ASSIGN(ServiceSandboxedProcessLauncherDelegate); |
73 }; | 73 }; |
74 | 74 |
75 } // namespace | 75 } // namespace |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 return false; | 422 return false; |
423 } | 423 } |
424 printing::Emf emf; | 424 printing::Emf emf; |
425 if (!emf.InitFromData(data.data(), data.size())) { | 425 if (!emf.InitFromData(data.data(), data.size())) { |
426 OnRenderPDFPagesToMetafileDone(false); | 426 OnRenderPDFPagesToMetafileDone(false); |
427 return false; | 427 return false; |
428 } | 428 } |
429 OnRenderPDFPagesToMetafilePageDone(scale_factor, emf); | 429 OnRenderPDFPagesToMetafilePageDone(scale_factor, emf); |
430 return true; | 430 return true; |
431 } | 431 } |
OLD | NEW |