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 #ifndef CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ | 5 #ifndef CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ |
6 #define CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ | 6 #define CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "content/public/common/child_process_host_delegate.h" | 14 #include "content/public/common/child_process_host_delegate.h" |
15 #include "ipc/ipc_platform_file.h" | 15 #include "ipc/ipc_platform_file.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class CommandLine; | 18 class CommandLine; |
19 class File; | 19 class File; |
20 class FilePath; | 20 class FilePath; |
21 class ScopedTempDir; | |
22 class SingleThreadTaskRunner; | 21 class SingleThreadTaskRunner; |
23 } // namespace base | 22 } // namespace base |
24 | 23 |
25 namespace content { | 24 namespace content { |
26 class ChildProcessHost; | 25 class ChildProcessHost; |
27 } | 26 } |
28 | 27 |
29 namespace printing { | 28 namespace printing { |
30 class MetafilePlayer; | 29 class MetafilePlayer; |
31 struct PageRange; | |
32 struct PdfRenderSettings; | 30 struct PdfRenderSettings; |
33 struct PrinterCapsAndDefaults; | 31 struct PrinterCapsAndDefaults; |
34 struct PrinterSemanticCapsAndDefaults; | 32 struct PrinterSemanticCapsAndDefaults; |
35 } // namespace printing | 33 } // namespace printing |
36 | 34 |
37 // Acts as the service-side host to a utility child process. A | 35 // Acts as the service-side host to a utility child process. A |
38 // utility process is a short-lived sandboxed process that is created to run | 36 // utility process is a short-lived sandboxed process that is created to run |
39 // a specific task. | 37 // a specific task. |
40 class ServiceUtilityProcessHost : public content::ChildProcessHostDelegate { | 38 class ServiceUtilityProcessHost : public content::ChildProcessHostDelegate { |
41 public: | 39 public: |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 154 |
157 class PdfToEmfState; | 155 class PdfToEmfState; |
158 std::unique_ptr<PdfToEmfState> pdf_to_emf_state_; | 156 std::unique_ptr<PdfToEmfState> pdf_to_emf_state_; |
159 | 157 |
160 base::WeakPtrFactory<ServiceUtilityProcessHost> weak_ptr_factory_; | 158 base::WeakPtrFactory<ServiceUtilityProcessHost> weak_ptr_factory_; |
161 | 159 |
162 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost); | 160 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost); |
163 }; | 161 }; |
164 | 162 |
165 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ | 163 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ |
OLD | NEW |