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

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

Issue 2680973006: Mojo EDK: Add safe process connection API (Closed)
Patch Set: . Created 3 years, 10 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
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 #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 #include "mojo/edk/embedder/pending_process_connection.h"
16 17
17 namespace base { 18 namespace base {
18 class CommandLine; 19 class CommandLine;
19 class File; 20 class File;
20 class FilePath; 21 class FilePath;
21 class SingleThreadTaskRunner; 22 class SingleThreadTaskRunner;
22 } // namespace base 23 } // namespace base
23 24
24 namespace content { 25 namespace content {
25 class ChildProcessHost; 26 class ChildProcessHost;
(...skipping 114 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_;
150 const std::string mojo_child_token_; 151 mojo::edk::PendingProcessConnection process_connection_;
151 152
152 // Start time of operation. 153 // Start time of operation.
153 base::Time start_time_; 154 base::Time start_time_;
154 155
155 class PdfToEmfState; 156 class PdfToEmfState;
156 std::unique_ptr<PdfToEmfState> pdf_to_emf_state_; 157 std::unique_ptr<PdfToEmfState> pdf_to_emf_state_;
157 158
158 base::WeakPtrFactory<ServiceUtilityProcessHost> weak_ptr_factory_; 159 base::WeakPtrFactory<ServiceUtilityProcessHost> weak_ptr_factory_;
159 160
160 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost); 161 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost);
161 }; 162 };
162 163
163 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ 164 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/video/gpu_arc_video_service_host.cc ('k') | chrome/service/service_utility_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698