| 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/message_loop/message_loop.h" |
| 14 #include "base/sequenced_task_runner.h" |
| 14 #include "base/threading/thread_checker.h" | 15 #include "base/threading/thread_checker.h" |
| 15 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 16 #include "content/child/child_process.h" | 17 #include "content/child/child_process.h" |
| 17 #include "content/common/field_trial_recorder.mojom.h" | 18 #include "content/common/field_trial_recorder.mojom.h" |
| 18 #include "content/gpu/gpu_service_factory.h" | 19 #include "content/gpu/gpu_service_factory.h" |
| 19 #include "content/public/common/connection_filter.h" | 20 #include "content/public/common/connection_filter.h" |
| 20 #include "content/public/common/content_client.h" | 21 #include "content/public/common/content_client.h" |
| 21 #include "content/public/common/content_switches.h" | 22 #include "content/public/common/content_switches.h" |
| 22 #include "content/public/common/service_manager_connection.h" | 23 #include "content/public/common/service_manager_connection.h" |
| 23 #include "content/public/common/service_names.mojom.h" | 24 #include "content/public/common/service_names.mojom.h" |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 media::AndroidOverlayConfig config) { | 319 media::AndroidOverlayConfig config) { |
| 319 media::mojom::AndroidOverlayProviderPtr provider_ptr; | 320 media::mojom::AndroidOverlayProviderPtr provider_ptr; |
| 320 ChildThread::Get()->GetConnector()->BindInterface( | 321 ChildThread::Get()->GetConnector()->BindInterface( |
| 321 content::mojom::kBrowserServiceName, &provider_ptr); | 322 content::mojom::kBrowserServiceName, &provider_ptr); |
| 322 return base::MakeUnique<media::MojoAndroidOverlay>( | 323 return base::MakeUnique<media::MojoAndroidOverlay>( |
| 323 std::move(provider_ptr), std::move(config), routing_token); | 324 std::move(provider_ptr), std::move(config), routing_token); |
| 324 } | 325 } |
| 325 #endif | 326 #endif |
| 326 | 327 |
| 327 } // namespace content | 328 } // namespace content |
| OLD | NEW |