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 "content/common/associated_interface_provider_impl.h" |
| 6 |
| 7 namespace content { |
| 8 |
| 9 AssociatedInterfaceProviderImpl::AssociatedInterfaceProviderImpl( |
| 10 const mojo::AssociatedGroup& associated_group, |
| 11 mojom::RouteProvider* route_provider, |
| 12 int32_t routing_id) : associated_group_(associated_group) { |
| 13 mojom::AssociatedInterfaceProviderAssociatedRequest request = |
| 14 mojo::GetProxy(&proxy_, &associated_group_); |
| 15 route_provider->GetRoute(routing_id, std::move(request)); |
| 16 } |
| 17 |
| 18 AssociatedInterfaceProviderImpl::~AssociatedInterfaceProviderImpl() {} |
| 19 |
| 20 void AssociatedInterfaceProviderImpl::GetInterface( |
| 21 const std::string& name, |
| 22 mojo::ScopedInterfaceEndpointHandle handle) { |
| 23 mojom::AssociatedInterfaceAssociatedRequest request; |
| 24 request.Bind(std::move(handle)); |
| 25 return proxy_->GetAssociatedInterface(name, std::move(request)); |
| 26 } |
| 27 |
| 28 mojo::AssociatedGroup* AssociatedInterfaceProviderImpl::GetAssociatedGroup() { |
| 29 return &associated_group_; |
| 30 } |
| 31 |
| 32 } // namespace content |
OLD | NEW |