| 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 #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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| 11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
| 12 #include <windows.h> | 12 #include <windows.h> |
| 13 #endif // defined(OS_WIN) | 13 #endif // defined(OS_WIN) |
| 14 | 14 |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "base/basictypes.h" | 18 #include "base/basictypes.h" |
| 19 #include "base/file_path.h" | 19 #include "base/file_path.h" |
| 20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
| 21 #include "base/task.h" | 21 #include "base/task.h" |
| 22 #include "ipc/ipc_channel.h" | 22 #include "ipc/ipc_channel.h" |
| 23 #include "chrome/service/service_child_process_host.h" | 23 #include "chrome/service/service_child_process_host.h" |
| 24 #include "printing/pdf_render_settings.h" | 24 #include "printing/pdf_render_settings.h" |
| 25 | 25 |
| 26 class CommandLine; | |
| 27 class ScopedTempDir; | 26 class ScopedTempDir; |
| 28 | 27 |
| 29 namespace base { | 28 namespace base { |
| 30 class MessageLoopProxy; | 29 class MessageLoopProxy; |
| 31 } // namespace base | 30 } // namespace base |
| 32 | 31 |
| 33 namespace gfx { | |
| 34 class Rect; | |
| 35 } // namespace gfx | |
| 36 | |
| 37 namespace printing { | 32 namespace printing { |
| 38 class Emf; | 33 class Emf; |
| 39 struct PageRange; | 34 struct PageRange; |
| 40 struct PrinterCapsAndDefaults; | 35 struct PrinterCapsAndDefaults; |
| 41 } // namespace printing | 36 } // namespace printing |
| 42 | 37 |
| 43 // Acts as the service-side host to a utility child process. A | 38 // Acts as the service-side host to a utility child process. A |
| 44 // utility process is a short-lived sandboxed process that is created to run | 39 // utility process is a short-lived sandboxed process that is created to run |
| 45 // a specific task. | 40 // a specific task. |
| 46 class ServiceUtilityProcessHost : public ServiceChildProcessHost { | 41 class ServiceUtilityProcessHost : public ServiceChildProcessHost { |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 FilePath metafile_path_; | 144 FilePath metafile_path_; |
| 150 // The temporary folder created for the metafile. | 145 // The temporary folder created for the metafile. |
| 151 scoped_ptr<ScopedTempDir> scratch_metafile_dir_; | 146 scoped_ptr<ScopedTempDir> scratch_metafile_dir_; |
| 152 // The unique id created for the process. | 147 // The unique id created for the process. |
| 153 int process_id_; | 148 int process_id_; |
| 154 | 149 |
| 155 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost); | 150 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost); |
| 156 }; | 151 }; |
| 157 | 152 |
| 158 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ | 153 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ |
| OLD | NEW |