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

Side by Side Diff: components/arc/arc_bridge_host_impl.cc

Issue 2115863002: Stub for ARC print Bridge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary includes. Created 4 years, 4 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 "components/arc/arc_bridge_host_impl.h" 5 #include "components/arc/arc_bridge_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 void ArcBridgeHostImpl::OnPolicyInstanceReady( 156 void ArcBridgeHostImpl::OnPolicyInstanceReady(
157 mojom::PolicyInstancePtr policy_ptr) { 157 mojom::PolicyInstancePtr policy_ptr) {
158 OnInstanceReady(ArcBridgeService::Get()->policy(), std::move(policy_ptr)); 158 OnInstanceReady(ArcBridgeService::Get()->policy(), std::move(policy_ptr));
159 } 159 }
160 160
161 void ArcBridgeHostImpl::OnPowerInstanceReady( 161 void ArcBridgeHostImpl::OnPowerInstanceReady(
162 mojom::PowerInstancePtr power_ptr) { 162 mojom::PowerInstancePtr power_ptr) {
163 OnInstanceReady(ArcBridgeService::Get()->power(), std::move(power_ptr)); 163 OnInstanceReady(ArcBridgeService::Get()->power(), std::move(power_ptr));
164 } 164 }
165 165
166 void ArcBridgeHostImpl::OnPrintInstanceReady(
167 mojom::PrintInstancePtr print_ptr) {
168 OnInstanceReady(ArcBridgeService::Get()->print(), std::move(print_ptr));
169 }
170
166 void ArcBridgeHostImpl::OnProcessInstanceReady( 171 void ArcBridgeHostImpl::OnProcessInstanceReady(
167 mojom::ProcessInstancePtr process_ptr) { 172 mojom::ProcessInstancePtr process_ptr) {
168 OnInstanceReady(ArcBridgeService::Get()->process(), std::move(process_ptr)); 173 OnInstanceReady(ArcBridgeService::Get()->process(), std::move(process_ptr));
169 } 174 }
170 175
171 void ArcBridgeHostImpl::OnStorageManagerInstanceReady( 176 void ArcBridgeHostImpl::OnStorageManagerInstanceReady(
172 mojom::StorageManagerInstancePtr storage_manager_ptr) { 177 mojom::StorageManagerInstancePtr storage_manager_ptr) {
173 OnInstanceReady(ArcBridgeService::Get()->storage_manager(), 178 OnInstanceReady(ArcBridgeService::Get()->storage_manager(),
174 std::move(storage_manager_ptr)); 179 std::move(storage_manager_ptr));
175 } 180 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 void ArcBridgeHostImpl::OnChannelClosed(MojoChannel* channel) { 222 void ArcBridgeHostImpl::OnChannelClosed(MojoChannel* channel) {
218 DCHECK(thread_checker_.CalledOnValidThread()); 223 DCHECK(thread_checker_.CalledOnValidThread());
219 mojo_channels_.erase( 224 mojo_channels_.erase(
220 std::find_if(mojo_channels_.begin(), mojo_channels_.end(), 225 std::find_if(mojo_channels_.begin(), mojo_channels_.end(),
221 [channel](std::unique_ptr<MojoChannel>& ptr) { 226 [channel](std::unique_ptr<MojoChannel>& ptr) {
222 return ptr.get() == channel; 227 return ptr.get() == channel;
223 })); 228 }));
224 } 229 }
225 230
226 } // namespace arc 231 } // namespace arc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698