From 0af2769be70075aa3bd1d11a7e9e1ece4daae303 Mon Sep 17 00:00:00 2001 From: "sammc@chromium.org" Date: Wed, 11 Jun 2014 10:58:30 +0000 Subject: [PATCH] Mojo: Add the IInterfaceProvider interface. Review URL: https://codereview.chromium.org/325093002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276339 0039d316-1c4b-4281-b951-d872f2087c98 --- mojo/mojo_public.gypi | 15 +++++++++++++++ mojo/public/interfaces/interface_provider/BUILD.gn | 11 +++++++++++ .../interface_provider/interface_provider.mojom | 12 ++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 mojo/public/interfaces/interface_provider/BUILD.gn create mode 100644 mojo/public/interfaces/interface_provider/interface_provider.mojom diff --git a/mojo/mojo_public.gypi b/mojo/mojo_public.gypi index 118e1f1d76fa..c033749a4acc 100644 --- a/mojo/mojo_public.gypi +++ b/mojo/mojo_public.gypi @@ -356,6 +356,21 @@ ], }, { + # GN version: //mojo/public/interfaces/interface_provider:interface_provider + 'target_name': 'mojo_interface_provider_bindings', + 'type': 'static_library', + 'sources': [ + 'public/interfaces/interface_provider/interface_provider.mojom', + ], + 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ], + 'dependencies': [ + 'mojo_cpp_bindings', + ], + 'export_dependent_settings': [ + 'mojo_cpp_bindings', + ], + }, + { # GN version: //mojo/public/interfaces/service_provider:service_provider 'target_name': 'mojo_service_provider_bindings', 'type': 'static_library', diff --git a/mojo/public/interfaces/interface_provider/BUILD.gn b/mojo/public/interfaces/interface_provider/BUILD.gn new file mode 100644 index 000000000000..55d5b0a37da4 --- /dev/null +++ b/mojo/public/interfaces/interface_provider/BUILD.gn @@ -0,0 +1,11 @@ +# Copyright 2014 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. + +import("//mojo/public/tools/bindings/mojom.gni") + +mojom("interface_provider") { + sources = [ + "interface_provider.mojom", + ] +} diff --git a/mojo/public/interfaces/interface_provider/interface_provider.mojom b/mojo/public/interfaces/interface_provider/interface_provider.mojom new file mode 100644 index 000000000000..91e32813da65 --- /dev/null +++ b/mojo/public/interfaces/interface_provider/interface_provider.mojom @@ -0,0 +1,12 @@ +// Copyright 2014 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. + +module mojo { + +[Client=IInterfaceProvider] +interface IInterfaceProvider { + GetInterface(string name, handle client_handle); +}; + +} -- 2.11.4.GIT