Chromium Code Reviews| Index: mojo/services/test_service/test_service_application.h |
| diff --git a/mojo/services/test_service/test_service_application.h b/mojo/services/test_service/test_service_application.h |
| index 8892f3059394867b387466f20c33c702cd18657d..900b5e5f1e91efc04ee66fdbb1fbd44fd679254e 100644 |
| --- a/mojo/services/test_service/test_service_application.h |
| +++ b/mojo/services/test_service/test_service_application.h |
| @@ -5,21 +5,36 @@ |
| #ifndef MOJO_SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_ |
| #define MOJO_SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_ |
| +#include "mojo/public/cpp/application/application_connection.h" |
| #include "mojo/public/cpp/application/application_delegate.h" |
| #include "mojo/public/cpp/system/macros.h" |
| +#include "mojo/services/test_service/test_service.mojom.h" |
|
jamesr
2014/07/10 23:52:24
this could be a forward declaration, actually
|
| namespace mojo { |
| class ApplicationConnection; |
| namespace test { |
| -class TestServiceApplication : public ApplicationDelegate { |
| +class TestServiceApplication : public ApplicationDelegate, |
| + public InterfaceProvider<TestService>, |
| + public InterfaceProvider<TestTimeService> { |
|
jamesr
2014/07/10 23:52:24
this is probably the most interesting usage of the
|
| public: |
| TestServiceApplication(); |
| virtual ~TestServiceApplication(); |
| + // ApplicationDelegate implementation. |
| virtual bool ConfigureIncomingConnection(ApplicationConnection* connection) |
| MOJO_OVERRIDE; |
| + // InterfaceProvider<TestService> implementation. |
| + virtual void BindToRequest(ApplicationConnection* connection, |
| + InterfaceRequest<TestService> request) |
| + MOJO_OVERRIDE; |
| + |
| + // InterfaceProvider<TestTimeService> implementation. |
| + virtual void BindToRequest(ApplicationConnection* connection, |
| + InterfaceRequest<TestTimeService> request) |
| + MOJO_OVERRIDE; |
| + |
| void AddRef(); |
| void ReleaseRef(); |