Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1259)

Unified Diff: mojo/examples/hello_world_service/hello_world_service_impl.h

Issue 72123002: Work in progress for end-to-end bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add base dep for sample_app Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/examples/hello_world_service/hello_world_service_impl.h
diff --git a/mojo/examples/hello_world_service/hello_world_service_impl.h b/mojo/examples/hello_world_service/hello_world_service_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..6382617acb27e6725b50b7b0e02c9f41d8cb9233
--- /dev/null
+++ b/mojo/examples/hello_world_service/hello_world_service_impl.h
@@ -0,0 +1,27 @@
+// Copyright 2013 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_EXAMPLES_HELLO_WORLD_SERVICE_HELLO_WORLD_SERVICE_IMPL_H_
+#define MOJO_EXAMPLES_HELLO_WORLD_SERVICE_HELLO_WORLD_SERVICE_IMPL_H_
+
+#include "mojo/public/bindings/lib/remote_ptr.h"
+#include "mojom/hello_world_service.h"
+
+namespace mojo {
+namespace examples {
+
+class HelloWorldServiceImpl : public HelloWorldServiceStub {
+ public:
+ explicit HelloWorldServiceImpl(mojo::Handle pipe);
+ virtual ~HelloWorldServiceImpl();
+ virtual void Greeting(const mojo::String* greeting) MOJO_OVERRIDE;
+
+ private:
+ mojo::RemotePtr<HelloWorldClient> client_;
+};
+
+} // examples
+} // mojo
+
+#endif // MOJO_EXAMPLES_HELLO_WORLD_SERVICE_HELLO_WORLD_SERVICE_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698