Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: chrome/service/service_utility_process_host.h

Issue 2084453002: Initialise and use ChannelMojo to the service utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/service/service_process.cc ('k') | chrome/service/service_utility_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
13 #include "content/public/common/child_process_host_delegate.h" 14 #include "content/public/common/child_process_host_delegate.h"
14 #include "ipc/ipc_platform_file.h" 15 #include "ipc/ipc_platform_file.h"
15 16
16 namespace base { 17 namespace base {
17 class CommandLine; 18 class CommandLine;
18 class File; 19 class File;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 const printing::PrinterSemanticCapsAndDefaults& caps_and_defaults); 141 const printing::PrinterSemanticCapsAndDefaults& caps_and_defaults);
141 void OnGetPrinterSemanticCapsAndDefaultsFailed( 142 void OnGetPrinterSemanticCapsAndDefaultsFailed(
142 const std::string& printer_name); 143 const std::string& printer_name);
143 144
144 std::unique_ptr<content::ChildProcessHost> child_process_host_; 145 std::unique_ptr<content::ChildProcessHost> child_process_host_;
145 base::Process process_; 146 base::Process process_;
146 // 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.
147 scoped_refptr<Client> client_; 148 scoped_refptr<Client> client_;
148 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner_; 149 scoped_refptr<base::SingleThreadTaskRunner> client_task_runner_;
149 bool waiting_for_reply_; 150 bool waiting_for_reply_;
151 const std::string mojo_child_token_;
150 152
151 // Start time of operation. 153 // Start time of operation.
152 base::Time start_time_; 154 base::Time start_time_;
153 155
154 class PdfToEmfState; 156 class PdfToEmfState;
155 std::unique_ptr<PdfToEmfState> pdf_to_emf_state_; 157 std::unique_ptr<PdfToEmfState> pdf_to_emf_state_;
156 158
157 base::WeakPtrFactory<ServiceUtilityProcessHost> weak_ptr_factory_; 159 base::WeakPtrFactory<ServiceUtilityProcessHost> weak_ptr_factory_;
158 160
159 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost); 161 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost);
160 }; 162 };
161 163
162 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ 164 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/service/service_process.cc ('k') | chrome/service/service_utility_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698