| Index: mojo/services/test_service/test_service_impl.cc
|
| diff --git a/mojo/services/test_service/test_service_impl.cc b/mojo/services/test_service/test_service_impl.cc
|
| index b4e9c35dc97d53ce1691b7fe3d683f806dbbfc6e..a38d619d90e2c2bec41c693bce2b837fc09f53e2 100644
|
| --- a/mojo/services/test_service/test_service_impl.cc
|
| +++ b/mojo/services/test_service/test_service_impl.cc
|
| @@ -4,15 +4,26 @@
|
|
|
| #include "mojo/services/test_service/test_service_impl.h"
|
|
|
| +#include "mojo/services/test_service/test_service_application.h"
|
| +
|
| namespace mojo {
|
| namespace test {
|
|
|
| -TestServiceImpl::TestServiceImpl() {
|
| +TestServiceImpl::TestServiceImpl(TestServiceApplication* application)
|
| + : application_(application) {
|
| }
|
|
|
| TestServiceImpl::~TestServiceImpl() {
|
| }
|
|
|
| +void TestServiceImpl::OnConnectionEstablished() {
|
| + application_->AddRef();
|
| +}
|
| +
|
| +void TestServiceImpl::OnConnectionError() {
|
| + application_->ReleaseRef();
|
| +}
|
| +
|
| void TestServiceImpl::Ping(const mojo::Callback<void()>& callback) {
|
| callback.Run();
|
| }
|
|
|