Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1049)

Side by Side Diff: chrome/gpu/chrome_content_gpu_client.cc

Issue 1885683005: Add module suffix in .mojom files for components/arc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase only Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 "chrome/gpu/chrome_content_gpu_client.h" 5 #include "chrome/gpu/chrome_content_gpu_client.h"
6 6
7 #include "content/public/common/service_registry.h" 7 #include "content/public/common/service_registry.h"
8 8
9 #if defined(OS_CHROMEOS) 9 #if defined(OS_CHROMEOS)
10 #include "chrome/gpu/gpu_arc_video_service.h" 10 #include "chrome/gpu/gpu_arc_video_service.h"
11 #endif 11 #endif
12 12
13 #if defined(OS_CHROMEOS) 13 #if defined(OS_CHROMEOS)
14 namespace { 14 namespace {
15 15
16 void CreateGpuArcVideoService( 16 void CreateGpuArcVideoService(
17 mojo::InterfaceRequest<::arc::VideoHost> request) { 17 mojo::InterfaceRequest<::arc::mojom::VideoHost> request) {
18 // GpuArcVideoService is strongly bound to the Mojo message pipe it 18 // GpuArcVideoService is strongly bound to the Mojo message pipe it
19 // is connected to. When that message pipe is closed, either explicitly on the 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 20 // other end (in the browser process), or by a connection error, this object
21 // will be destroyed. 21 // will be destroyed.
22 new chromeos::arc::GpuArcVideoService(std::move(request)); 22 new chromeos::arc::GpuArcVideoService(std::move(request));
23 } 23 }
24 24
25 } // namespace 25 } // namespace
26 #endif 26 #endif
27 27
28 ChromeContentGpuClient::ChromeContentGpuClient() {} 28 ChromeContentGpuClient::ChromeContentGpuClient() {}
29 29
30 ChromeContentGpuClient::~ChromeContentGpuClient() {} 30 ChromeContentGpuClient::~ChromeContentGpuClient() {}
31 31
32 void ChromeContentGpuClient::RegisterMojoServices( 32 void ChromeContentGpuClient::RegisterMojoServices(
33 content::ServiceRegistry* registry) { 33 content::ServiceRegistry* registry) {
34 #if defined(OS_CHROMEOS) 34 #if defined(OS_CHROMEOS)
35 registry->AddService(base::Bind(&CreateGpuArcVideoService)); 35 registry->AddService(base::Bind(&CreateGpuArcVideoService));
36 #endif 36 #endif
37 } 37 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc ('k') | chrome/gpu/gpu_arc_video_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698