| 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 "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/process.h" | 17 #include "base/process.h" |
| 18 #include "content/public/common/child_process_host_delegate.h" |
| 18 #include "ipc/ipc_channel.h" | 19 #include "ipc/ipc_channel.h" |
| 19 #include "content/public/common/child_process_host_delegate.h" | |
| 20 #include "printing/pdf_render_settings.h" | 20 #include "printing/pdf_render_settings.h" |
| 21 | 21 |
| 22 class CommandLine; | 22 class CommandLine; |
| 23 class ScopedTempDir; | |
| 24 | 23 |
| 25 namespace base { | 24 namespace base { |
| 26 class MessageLoopProxy; | 25 class MessageLoopProxy; |
| 26 class ScopedTempDir; |
| 27 } // namespace base | 27 } // namespace base |
| 28 | 28 |
| 29 namespace content { | 29 namespace content { |
| 30 class ChildProcessHost; | 30 class ChildProcessHost; |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace printing { | 33 namespace printing { |
| 34 class Emf; | 34 class Emf; |
| 35 struct PageRange; | 35 struct PageRange; |
| 36 struct PrinterCapsAndDefaults; | 36 struct PrinterCapsAndDefaults; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 scoped_ptr<content::ChildProcessHost> child_process_host_; | 140 scoped_ptr<content::ChildProcessHost> child_process_host_; |
| 141 base::ProcessHandle handle_; | 141 base::ProcessHandle handle_; |
| 142 // A pointer to our client interface, who will be informed of progress. | 142 // A pointer to our client interface, who will be informed of progress. |
| 143 scoped_refptr<Client> client_; | 143 scoped_refptr<Client> client_; |
| 144 scoped_refptr<base::MessageLoopProxy> client_message_loop_proxy_; | 144 scoped_refptr<base::MessageLoopProxy> client_message_loop_proxy_; |
| 145 bool waiting_for_reply_; | 145 bool waiting_for_reply_; |
| 146 // The path to the temp file where the metafile will be written to. | 146 // The path to the temp file where the metafile will be written to. |
| 147 FilePath metafile_path_; | 147 FilePath metafile_path_; |
| 148 // The temporary folder created for the metafile. | 148 // The temporary folder created for the metafile. |
| 149 scoped_ptr<ScopedTempDir> scratch_metafile_dir_; | 149 scoped_ptr<base::ScopedTempDir> scratch_metafile_dir_; |
| 150 | 150 |
| 151 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost); | 151 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost); |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ | 154 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ |
| OLD | NEW |