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 | 9 |
9 #include "base/command_line.h" | 10 #include "base/command_line.h" |
10 #include "build/build_config.h" | 11 #include "build/build_config.h" |
11 #include "content/child/blink_platform_impl.h" | 12 #include "content/child/blink_platform_impl.h" |
12 #include "content/child/child_process.h" | 13 #include "content/child/child_process.h" |
13 #include "content/common/child_process_messages.h" | 14 #include "content/common/child_process_messages.h" |
14 #include "content/common/utility_messages.h" | 15 #include "content/common/utility_messages.h" |
15 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
16 #include "content/public/utility/content_utility_client.h" | 17 #include "content/public/utility/content_utility_client.h" |
17 #include "content/utility/utility_blink_platform_impl.h" | 18 #include "content/utility/utility_blink_platform_impl.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 Send(new UtilityHostMsg_LoadedPlugin(i, plugin)); | 143 Send(new UtilityHostMsg_LoadedPlugin(i, plugin)); |
143 } | 144 } |
144 | 145 |
145 ReleaseProcessIfNeeded(); | 146 ReleaseProcessIfNeeded(); |
146 } | 147 } |
147 #endif | 148 #endif |
148 | 149 |
149 void UtilityThreadImpl::BindProcessControlRequest( | 150 void UtilityThreadImpl::BindProcessControlRequest( |
150 mojo::InterfaceRequest<ProcessControl> request) { | 151 mojo::InterfaceRequest<ProcessControl> request) { |
151 DCHECK(process_control_); | 152 DCHECK(process_control_); |
152 process_control_bindings_.AddBinding(process_control_.get(), request.Pass()); | 153 process_control_bindings_.AddBinding(process_control_.get(), |
| 154 std::move(request)); |
153 } | 155 } |
154 | 156 |
155 } // namespace content | 157 } // namespace content |
OLD | NEW |