Chromium Code Reviews| Index: examples/apptest/example_service_impl.h |
| diff --git a/examples/apptest/example_service_impl.h b/examples/apptest/example_service_impl.h |
| index 7c6138a0190aabe16b70d0e7441222e6ec1269bf..5c1f23bf9e879765bdaea233a93d04024ee3452c 100644 |
| --- a/examples/apptest/example_service_impl.h |
| +++ b/examples/apptest/example_service_impl.h |
| @@ -6,21 +6,25 @@ |
| #define MOJO_EXAMPLES_TEST_EXAMPLE_SERVICE_IMPL_H_ |
| #include "examples/apptest/example_service.mojom.h" |
| +#include "mojo/public/cpp/bindings/strong_binding.h" |
| #include "mojo/public/cpp/system/macros.h" |
| namespace mojo { |
| class ApplicationConnection; |
| -class ExampleServiceImpl : public InterfaceImpl<ExampleService> { |
| +class ExampleServiceImpl : public ExampleService { |
| public: |
| - ExampleServiceImpl(); |
| - virtual ~ExampleServiceImpl(); |
| + explicit ExampleServiceImpl(InterfaceRequest<ExampleService> request); |
| + ~ExampleServiceImpl() override; |
| private: |
| - // InterfaceImpl<ExampleService> overrides. |
| - virtual void Ping(uint16_t ping_value) override; |
| - virtual void RunCallback(const Callback<void()>& callback) override; |
| + // ExampleService overrides. |
| + void Ping(uint16_t ping_value) override; |
| + void RunCallback(const Callback<void()>& callback) override; |
| + |
| + // ExampleServiceImpl deletes itself on detecting a pipe error. |
|
jamesr
2014/11/17 23:16:14
not technically true (the binding deletes ExampleS
msw
2014/11/17 23:27:03
Sorry; done!
|
| + StrongBinding<ExampleService> binding_; |
| MOJO_DISALLOW_COPY_AND_ASSIGN(ExampleServiceImpl); |
| }; |