| Index: examples/apptest/example_service_application.h
|
| diff --git a/examples/apptest/example_service_application.h b/examples/apptest/example_service_application.h
|
| index 301895f5fe2727b6e29eaf76d873514117ee7971..b995edcfd2c64a821b3df27d00da8c86e4985b49 100644
|
| --- a/examples/apptest/example_service_application.h
|
| +++ b/examples/apptest/example_service_application.h
|
| @@ -7,24 +7,27 @@
|
|
|
| #include "examples/apptest/example_service_impl.h"
|
| #include "mojo/public/cpp/application/application_delegate.h"
|
| -#include "mojo/public/cpp/application/interface_factory_impl.h"
|
| +#include "mojo/public/cpp/application/interface_factory.h"
|
| #include "mojo/public/cpp/system/macros.h"
|
|
|
| namespace mojo {
|
|
|
| class ApplicationConnection;
|
|
|
| -class ExampleServiceApplication : public ApplicationDelegate {
|
| +class ExampleServiceApplication : public ApplicationDelegate,
|
| + public InterfaceFactory<ExampleService> {
|
| public:
|
| ExampleServiceApplication();
|
| - virtual ~ExampleServiceApplication();
|
| + ~ExampleServiceApplication() override;
|
|
|
| private:
|
| // ApplicationDelegate implementation.
|
| - virtual bool ConfigureIncomingConnection(
|
| + bool ConfigureIncomingConnection(
|
| ApplicationConnection* connection) override;
|
|
|
| - InterfaceFactoryImpl<ExampleServiceImpl> example_service_factory_;
|
| + // InterfaceFactory<ExampleService> implementation.
|
| + void Create(ApplicationConnection* connection,
|
| + InterfaceRequest<ExampleService> request) override;
|
|
|
| MOJO_DISALLOW_COPY_AND_ASSIGN(ExampleServiceApplication);
|
| };
|
|
|