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

Side by Side Diff: content/utility/utility_thread_impl.cc

Issue 1959313002: Use ChannelMojo for the utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-all-processes
Patch Set: rebase 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 | « content/public/common/child_process_host.h ('k') | no next file » | 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 #include "content/utility/utility_thread_impl.h" 5 #include "content/utility/utility_thread_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 28 matching lines...) Expand all
39 } // namespace 39 } // namespace
40 40
41 UtilityThreadImpl::UtilityThreadImpl() 41 UtilityThreadImpl::UtilityThreadImpl()
42 : ChildThreadImpl(ChildThreadImpl::Options::Builder().Build()) { 42 : ChildThreadImpl(ChildThreadImpl::Options::Builder().Build()) {
43 Init(); 43 Init();
44 } 44 }
45 45
46 UtilityThreadImpl::UtilityThreadImpl(const InProcessChildThreadParams& params) 46 UtilityThreadImpl::UtilityThreadImpl(const InProcessChildThreadParams& params)
47 : ChildThreadImpl(ChildThreadImpl::Options::Builder() 47 : ChildThreadImpl(ChildThreadImpl::Options::Builder()
48 .InBrowserProcess(params) 48 .InBrowserProcess(params)
49 .UseMojoChannel(true)
49 .Build()) { 50 .Build()) {
50 Init(); 51 Init();
51 } 52 }
52 53
53 UtilityThreadImpl::~UtilityThreadImpl() { 54 UtilityThreadImpl::~UtilityThreadImpl() {
54 } 55 }
55 56
56 void UtilityThreadImpl::Shutdown() { 57 void UtilityThreadImpl::Shutdown() {
57 ChildThreadImpl::Shutdown(); 58 ChildThreadImpl::Shutdown();
58 59
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } 124 }
124 125
125 void UtilityThreadImpl::BindProcessControlRequest( 126 void UtilityThreadImpl::BindProcessControlRequest(
126 mojo::InterfaceRequest<mojom::ProcessControl> request) { 127 mojo::InterfaceRequest<mojom::ProcessControl> request) {
127 DCHECK(process_control_); 128 DCHECK(process_control_);
128 process_control_bindings_.AddBinding(process_control_.get(), 129 process_control_bindings_.AddBinding(process_control_.get(),
129 std::move(request)); 130 std::move(request));
130 } 131 }
131 132
132 } // namespace content 133 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/child_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698