Index: content/public/common/routed_interface.mojom |
diff --git a/content/public/common/routed_interface.mojom b/content/public/common/routed_interface.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..92a0467ae602217e84af6fcbd549334fc87e10e4 |
--- /dev/null |
+++ b/content/public/common/routed_interface.mojom |
@@ -0,0 +1,21 @@ |
+// 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. |
+ |
+module content.mojom; |
+ |
+// A generic, nominal interface to support the transitional interfaces below. |
+interface RoutedInterface {}; |
+ |
+// Implemented by either side of a single route to bind associated interface |
+// requests from the other side. |
+interface RoutedInterfaceProvider { |
+ GetRoutedInterface(string name, associated RoutedInterface& request); |
+}; |
+ |
+// Implemented by anything which manages one or more routes, to map a routing |
+// ID to an interface provider. |
+interface RouteProvider { |
+ GetRoutedInterfaces(int32 routing_id, |
+ associated RoutedInterfaceProvider& request); |
+}; |