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/gpu/gpu_child_thread.h" | 5 #include "content/gpu/gpu_child_thread.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/message_loop/message_loop.h" |
13 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
14 #include "build/build_config.h" | 15 #include "build/build_config.h" |
15 #include "content/child/child_process.h" | 16 #include "content/child/child_process.h" |
16 #include "content/common/field_trial_recorder.mojom.h" | 17 #include "content/common/field_trial_recorder.mojom.h" |
17 #include "content/gpu/gpu_service_factory.h" | 18 #include "content/gpu/gpu_service_factory.h" |
18 #include "content/public/common/connection_filter.h" | 19 #include "content/public/common/connection_filter.h" |
19 #include "content/public/common/content_client.h" | 20 #include "content/public/common/content_client.h" |
20 #include "content/public/common/content_switches.h" | 21 #include "content/public/common/content_switches.h" |
21 #include "content/public/common/service_manager_connection.h" | 22 #include "content/public/common/service_manager_connection.h" |
22 #include "content/public/common/service_names.mojom.h" | 23 #include "content/public/common/service_names.mojom.h" |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 void GpuChildThread::BindServiceFactoryRequest( | 299 void GpuChildThread::BindServiceFactoryRequest( |
299 const service_manager::BindSourceInfo& source_info, | 300 const service_manager::BindSourceInfo& source_info, |
300 service_manager::mojom::ServiceFactoryRequest request) { | 301 service_manager::mojom::ServiceFactoryRequest request) { |
301 DVLOG(1) << "GPU: Binding service_manager::mojom::ServiceFactoryRequest"; | 302 DVLOG(1) << "GPU: Binding service_manager::mojom::ServiceFactoryRequest"; |
302 DCHECK(service_factory_); | 303 DCHECK(service_factory_); |
303 service_factory_bindings_.AddBinding(service_factory_.get(), | 304 service_factory_bindings_.AddBinding(service_factory_.get(), |
304 std::move(request)); | 305 std::move(request)); |
305 } | 306 } |
306 | 307 |
307 } // namespace content | 308 } // namespace content |
OLD | NEW |