| 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 29 matching lines...) Expand all Loading... |
| 40 } // namespace | 40 } // namespace |
| 41 | 41 |
| 42 UtilityThreadImpl::UtilityThreadImpl() | 42 UtilityThreadImpl::UtilityThreadImpl() |
| 43 : ChildThreadImpl(ChildThreadImpl::Options::Builder().Build()) { | 43 : ChildThreadImpl(ChildThreadImpl::Options::Builder().Build()) { |
| 44 Init(); | 44 Init(); |
| 45 } | 45 } |
| 46 | 46 |
| 47 UtilityThreadImpl::UtilityThreadImpl(const InProcessChildThreadParams& params) | 47 UtilityThreadImpl::UtilityThreadImpl(const InProcessChildThreadParams& params) |
| 48 : ChildThreadImpl(ChildThreadImpl::Options::Builder() | 48 : ChildThreadImpl(ChildThreadImpl::Options::Builder() |
| 49 .InBrowserProcess(params) | 49 .InBrowserProcess(params) |
| 50 .UseMojoChannel(true) | |
| 51 .Build()) { | 50 .Build()) { |
| 52 Init(); | 51 Init(); |
| 53 } | 52 } |
| 54 | 53 |
| 55 UtilityThreadImpl::~UtilityThreadImpl() { | 54 UtilityThreadImpl::~UtilityThreadImpl() { |
| 56 } | 55 } |
| 57 | 56 |
| 58 void UtilityThreadImpl::Shutdown() { | 57 void UtilityThreadImpl::Shutdown() { |
| 59 ChildThreadImpl::Shutdown(); | 58 ChildThreadImpl::Shutdown(); |
| 60 } | 59 } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 } | 122 } |
| 124 | 123 |
| 125 void UtilityThreadImpl::BindServiceFactoryRequest( | 124 void UtilityThreadImpl::BindServiceFactoryRequest( |
| 126 shell::mojom::ServiceFactoryRequest request) { | 125 shell::mojom::ServiceFactoryRequest request) { |
| 127 DCHECK(service_factory_); | 126 DCHECK(service_factory_); |
| 128 service_factory_bindings_.AddBinding(service_factory_.get(), | 127 service_factory_bindings_.AddBinding(service_factory_.get(), |
| 129 std::move(request)); | 128 std::move(request)); |
| 130 } | 129 } |
| 131 | 130 |
| 132 } // namespace content | 131 } // namespace content |
| OLD | NEW |