Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/gpu/chrome_content_gpu_client.h" | |
| 6 | |
| 7 #include "content/public/common/service_registry.h" | |
| 8 | |
| 9 #if defined(OS_CHROMEOS) | |
| 10 #include "chrome/gpu/gpu_arc_video_service.h" | |
| 11 #endif | |
| 12 | |
| 13 #if defined(OS_CHROMEOS) | |
| 14 namespace { | |
| 15 | |
| 16 void CreateGpuArcVideoService( | |
| 17 mojo::InterfaceRequest<::arc::VideoHost> request) { | |
| 18 // MojoProxyResolverFactoryImpl is strongly bound to the Mojo message pipe it | |
|
Owen Lin
2016/03/14 08:45:52
What's a MojoProxyResolverFactory?
This one? http
kcwu
2016/03/14 12:55:49
Ah, sorry. I copied and pasted the comment without
| |
| 19 // is connected to. When that message pipe is closed, either explicitly on the | |
| 20 // other end (in the browser process), or by a connection error, this object | |
| 21 // will be destroyed. | |
| 22 new chromeos::arc::GpuArcVideoService(std::move(request)); | |
| 23 } | |
| 24 | |
| 25 } // namespace | |
| 26 #endif | |
| 27 | |
| 28 ChromeContentGpuClient::ChromeContentGpuClient() {} | |
| 29 | |
| 30 ChromeContentGpuClient::~ChromeContentGpuClient() {} | |
| 31 | |
| 32 void ChromeContentGpuClient::RegisterMojoServices( | |
| 33 content::ServiceRegistry* registry) { | |
| 34 #if defined(OS_CHROMEOS) | |
| 35 registry->AddService<arc::VideoHost>(base::Bind(&CreateGpuArcVideoService)); | |
| 36 #endif | |
| 37 } | |
| OLD | NEW |