| 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 #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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |