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 <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | |
13 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "build/build_config.h" | |
Lei Zhang
2016/04/19 01:35:42
Probably not needed?
dcheng
2016/04/19 03:51:33
Done.
| |
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; | 21 class ScopedTempDir; |
22 } // namespace base | 22 } // namespace base |
23 | 23 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
135 void OnGetPrinterCapsAndDefaultsSucceeded( | 135 void OnGetPrinterCapsAndDefaultsSucceeded( |
136 const std::string& printer_name, | 136 const std::string& printer_name, |
137 const printing::PrinterCapsAndDefaults& caps_and_defaults); | 137 const printing::PrinterCapsAndDefaults& caps_and_defaults); |
138 void OnGetPrinterCapsAndDefaultsFailed(const std::string& printer_name); | 138 void OnGetPrinterCapsAndDefaultsFailed(const std::string& printer_name); |
139 void OnGetPrinterSemanticCapsAndDefaultsSucceeded( | 139 void OnGetPrinterSemanticCapsAndDefaultsSucceeded( |
140 const std::string& printer_name, | 140 const std::string& printer_name, |
141 const printing::PrinterSemanticCapsAndDefaults& caps_and_defaults); | 141 const printing::PrinterSemanticCapsAndDefaults& caps_and_defaults); |
142 void OnGetPrinterSemanticCapsAndDefaultsFailed( | 142 void OnGetPrinterSemanticCapsAndDefaultsFailed( |
143 const std::string& printer_name); | 143 const std::string& printer_name); |
144 | 144 |
145 scoped_ptr<content::ChildProcessHost> child_process_host_; | 145 std::unique_ptr<content::ChildProcessHost> child_process_host_; |
146 base::Process process_; | 146 base::Process process_; |
147 // A pointer to our client interface, who will be informed of progress. | 147 // A pointer to our client interface, who will be informed of progress. |
148 scoped_refptr<Client> client_; | 148 scoped_refptr<Client> client_; |
149 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner_; | 149 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner_; |
150 bool waiting_for_reply_; | 150 bool waiting_for_reply_; |
151 | 151 |
152 // Start time of operation. | 152 // Start time of operation. |
153 base::Time start_time_; | 153 base::Time start_time_; |
154 | 154 |
155 class PdfToEmfState; | 155 class PdfToEmfState; |
156 scoped_ptr<PdfToEmfState> pdf_to_emf_state_; | 156 std::unique_ptr<PdfToEmfState> pdf_to_emf_state_; |
157 | 157 |
158 base::WeakPtrFactory<ServiceUtilityProcessHost> weak_ptr_factory_; | 158 base::WeakPtrFactory<ServiceUtilityProcessHost> weak_ptr_factory_; |
159 | 159 |
160 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost); | 160 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost); |
161 }; | 161 }; |
162 | 162 |
163 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ | 163 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ |
OLD | NEW |