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/public/common/associated_interface_provider.h" |
| 6 |
| 7 #include <stdint.h> |
| 8 |
| 9 #include "base/macros.h" |
| 10 #include "content/public/common/associated_interfaces.mojom.h" |
| 11 #include "mojo/public/cpp/bindings/associated_group.h" |
| 12 |
| 13 namespace content { |
| 14 |
| 15 class AssociatedInterfaceProviderImpl : public AssociatedInterfaceProvider { |
| 16 public: |
| 17 // Binds this to a remote mojom::AssociatedInterfaceProvider. |
| 18 explicit AssociatedInterfaceProviderImpl( |
| 19 mojom::AssociatedInterfaceProviderAssociatedPtr proxy); |
| 20 ~AssociatedInterfaceProviderImpl() override; |
| 21 |
| 22 // AssociatedInterfaceProvider: |
| 23 void GetInterface(const std::string& name, |
| 24 mojo::ScopedInterfaceEndpointHandle handle) override; |
| 25 mojo::AssociatedGroup* GetAssociatedGroup() override; |
| 26 |
| 27 private: |
| 28 mojom::AssociatedInterfaceProviderAssociatedPtr proxy_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(AssociatedInterfaceProviderImpl); |
| 31 }; |
| 32 |
| 33 } // namespace content |
OLD | NEW |