| Index: content/common/associated_interface_provider_impl.h
|
| diff --git a/content/common/associated_interface_provider_impl.h b/content/common/associated_interface_provider_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..800d4994cb7791ec6bfc93d5da2d55a874c83628
|
| --- /dev/null
|
| +++ b/content/common/associated_interface_provider_impl.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/public/common/associated_interface_provider.h"
|
| +
|
| +#include <stdint.h>
|
| +
|
| +#include "base/macros.h"
|
| +#include "content/public/common/associated_interfaces.mojom.h"
|
| +#include "mojo/public/cpp/bindings/associated_group.h"
|
| +
|
| +namespace content {
|
| +
|
| +class AssociatedInterfaceProviderImpl : public AssociatedInterfaceProvider {
|
| + public:
|
| + // Binds this to a remote mojom::AssociatedInterfaceProvider acquired with
|
| + // |routing_id| by |route_provider|.
|
| + AssociatedInterfaceProviderImpl(const mojo::AssociatedGroup& associated_group,
|
| + mojom::RouteProvider* route_provider,
|
| + int32_t routing_id);
|
| + ~AssociatedInterfaceProviderImpl() override;
|
| +
|
| + // AssociatedInterfaceProvider:
|
| + void GetInterface(const std::string& name,
|
| + mojo::ScopedInterfaceEndpointHandle handle) override;
|
| + mojo::AssociatedGroup* GetAssociatedGroup() override;
|
| +
|
| + private:
|
| + mojo::AssociatedGroup associated_group_;
|
| + mojom::AssociatedInterfaceProviderAssociatedPtr proxy_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(AssociatedInterfaceProviderImpl);
|
| +};
|
| +
|
| +} // namespace content
|
|
|