summaryrefslogtreecommitdiffstats
path: root/chromium/mojo/services/test_service/test_service_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/mojo/services/test_service/test_service_impl.h')
-rw-r--r--chromium/mojo/services/test_service/test_service_impl.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/chromium/mojo/services/test_service/test_service_impl.h b/chromium/mojo/services/test_service/test_service_impl.h
new file mode 100644
index 00000000000..df2d4a160be
--- /dev/null
+++ b/chromium/mojo/services/test_service/test_service_impl.h
@@ -0,0 +1,35 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MOJO_SERVICES_TEST_SERVICE_TEST_SERVICE_IMPL_H_
+#define MOJO_SERVICES_TEST_SERVICE_TEST_SERVICE_IMPL_H_
+
+#include "mojo/public/cpp/system/macros.h"
+#include "mojo/services/test_service/test_service.mojom.h"
+
+namespace mojo {
+namespace test {
+
+class TestServiceApplication;
+
+class TestServiceImpl : public InterfaceImpl<ITestService> {
+ public:
+ explicit TestServiceImpl(TestServiceApplication* application);
+ virtual ~TestServiceImpl();
+
+ // |ITestService| methods:
+ virtual void OnConnectionEstablished() MOJO_OVERRIDE;
+ virtual void OnConnectionError() MOJO_OVERRIDE;
+ virtual void Ping(const mojo::Callback<void()>& callback) MOJO_OVERRIDE;
+
+ private:
+ TestServiceApplication* const application_;
+
+ MOJO_DISALLOW_COPY_AND_ASSIGN(TestServiceImpl);
+};
+
+} // namespace test
+} // namespace mojo
+
+#endif // MOJO_SERVICES_TEST_SERVICE_TEST_SERVICE_IMPL_H_