DescriptionAdd a new way of using ServiceProviderImpl without InterfaceFactory.
Instead, just take a factory function. This has a number of advantages:
* Classes don't have to implement InterfaceFactory<I> in order to
"provide" services.
* Classes can (easily) instantiate impls in different ways (or
instantiate different impls for the same service).
For now, the new method is called |AddServiceNew<I>()|, but I plan to
get rid of |AddService<I>()| and rename |AddServiceNew| to |AddService|.
Also, add a bunch of tests.
R=vardhan@google.com
Committed: https://chromium.googlesource.com/external/mojo/+/65138ce8c234734966a4e299d8feba01d8c9ce07
Patch Set 1 #
Total comments: 1
Patch Set 2 : RequestHandler -> InterfaceRequestHandler #
Messages
Total messages: 5 (1 generated)
|