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

Side by Side Diff: chrome/browser/chromeos/arc/gpu_arc_video_service_host.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/browser/chromeos/arc/gpu_arc_video_service_host.h" 5 #include "chrome/browser/chromeos/arc/gpu_arc_video_service_host.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
11 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_thread.h"
12 #include "content/public/browser/gpu_service_registry.h" 12 #include "content/public/browser/gpu_service_registry.h"
13 #include "content/public/common/service_registry.h" 13 #include "content/public/common/service_registry.h"
14 14
15 namespace { 15 namespace {
16 16
17 mojo::InterfacePtrInfo<arc::VideoHost> GetServiceOnIOThread() { 17 mojo::InterfacePtrInfo<arc::mojom::VideoHost> GetServiceOnIOThread() {
18 arc::VideoHostPtr host_ptr; 18 arc::mojom::VideoHostPtr host_ptr;
19 content::ServiceRegistry* registry = content::GetGpuServiceRegistry(); 19 content::ServiceRegistry* registry = content::GetGpuServiceRegistry();
20 registry->ConnectToRemoteService(mojo::GetProxy(&host_ptr)); 20 registry->ConnectToRemoteService(mojo::GetProxy(&host_ptr));
21 21
22 // Unbind and reply back to UI thread. 22 // Unbind and reply back to UI thread.
23 return host_ptr.PassInterface(); 23 return host_ptr.PassInterface();
24 } 24 }
25 25
26 } // namespace 26 } // namespace
27 27
28 namespace arc { 28 namespace arc {
(...skipping 26 matching lines...) Expand all
55 DCHECK(thread_checker_.CalledOnValidThread()); 55 DCHECK(thread_checker_.CalledOnValidThread());
56 56
57 content::BrowserThread::PostTaskAndReplyWithResult( 57 content::BrowserThread::PostTaskAndReplyWithResult(
58 content::BrowserThread::IO, FROM_HERE, base::Bind(&GetServiceOnIOThread), 58 content::BrowserThread::IO, FROM_HERE, base::Bind(&GetServiceOnIOThread),
59 base::Bind(&GpuArcVideoServiceHost::BindServiceAndCreateChannel, 59 base::Bind(&GpuArcVideoServiceHost::BindServiceAndCreateChannel,
60 weak_factory_.GetWeakPtr(), callback)); 60 weak_factory_.GetWeakPtr(), callback));
61 } 61 }
62 62
63 void GpuArcVideoServiceHost::BindServiceAndCreateChannel( 63 void GpuArcVideoServiceHost::BindServiceAndCreateChannel(
64 const OnRequestArcVideoAcceleratorChannelCallback& callback, 64 const OnRequestArcVideoAcceleratorChannelCallback& callback,
65 mojo::InterfacePtrInfo<arc::VideoHost> ptr_info) { 65 mojo::InterfacePtrInfo<arc::mojom::VideoHost> ptr_info) {
66 DCHECK(thread_checker_.CalledOnValidThread()); 66 DCHECK(thread_checker_.CalledOnValidThread());
67 67
68 service_ptr_.Bind(std::move(ptr_info)); 68 service_ptr_.Bind(std::move(ptr_info));
69 service_ptr_->OnRequestArcVideoAcceleratorChannel(callback); 69 service_ptr_->OnRequestArcVideoAcceleratorChannel(callback);
70 } 70 }
71 71
72 } // namespace arc 72 } // namespace arc
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/gpu_arc_video_service_host.h ('k') | chrome/browser/memory/tab_manager_delegate_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698