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 mojom::AssociatedInterfaceProviderAssociatedPtr proxy) |
| 11 : proxy_(std::move(proxy)) { |
| 12 } |
| 13 |
| 14 AssociatedInterfaceProviderImpl::~AssociatedInterfaceProviderImpl() {} |
| 15 |
| 16 void AssociatedInterfaceProviderImpl::GetInterface( |
| 17 const std::string& name, |
| 18 mojo::ScopedInterfaceEndpointHandle handle) { |
| 19 mojom::AssociatedInterfaceAssociatedRequest request; |
| 20 request.Bind(std::move(handle)); |
| 21 return proxy_->GetAssociatedInterface(name, std::move(request)); |
| 22 } |
| 23 |
| 24 mojo::AssociatedGroup* AssociatedInterfaceProviderImpl::GetAssociatedGroup() { |
| 25 return proxy_.associated_group(); |
| 26 } |
| 27 |
| 28 } // namespace content |
OLD | NEW |