interface Foo {
// Instead of having the connectee request a Bar from the connector,
// the connector can connect to Foo and give the the connectee a Bar.
ProvideBar(Bar bar);
// If the connectee needs general services, it can also do something like:
ProvideMoarServices(MoarServices moar_services);
// Or even a ServiceProvider if you really need (at the risk of namespacing confusion):
ProvideAServiceProvider(ServiceProvider sp);
};
interface MoarServices {
GiveMeABaz(Baz& baz);
GiveMeAQuux(Quux& quux);
};
--Adam
You received this message because you are subscribed to the Google Groups "mojo-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojo-dev+u...@chromium.org.
Yes, we should probably change CreateView. It was modeled on Application for consistency but AFAIK no one is using the reverse service provider today.
These dependencies are easy to invert without loss of generality.
Jeff.
--