Index: mojo/examples/sample_app/hello_world_client_impl.h |
diff --git a/mojo/examples/sample_app/hello_world_client_impl.h b/mojo/examples/sample_app/hello_world_client_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f6cf09e3e16a787599cfb2bb1dc0a3171943e563 |
--- /dev/null |
+++ b/mojo/examples/sample_app/hello_world_client_impl.h |
@@ -0,0 +1,32 @@ |
+// 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_SAMPLE_APP_HELLO_WORLD_CLIENT_IMPL_H_ |
+#define MOJO_EXAMPLES_SAMPLE_APP_HELLO_WORLD_CLIENT_IMPL_H_ |
+ |
+#include "mojo/public/bindings/lib/remote_ptr.h" |
+#include "mojom/hello_world_service.h" |
+ |
+namespace mojo { |
+namespace examples { |
+ |
+class HelloWorldClientImpl : public HelloWorldClientStub { |
+ public: |
+ explicit HelloWorldClientImpl(mojo::Handle pipe); |
+ ~HelloWorldClientImpl(); |
darin (slow to review)
2013/11/14 00:05:34
nit: virtual dtor (some clang bot will complain)
DaveMoore
2013/11/14 23:46:54
Done.
|
+ |
+ virtual void DidReceiveGreeting(int32_t result) MOJO_OVERRIDE; |
+ |
+ HelloWorldService* service() { |
+ return service_.get(); |
+ } |
+ |
+ private: |
+ mojo::RemotePtr<HelloWorldService> service_; |
+}; |
+ |
+} // examples |
+} // mojo |
+ |
+#endif // MOJO_EXAMPLES_SAMPLE_APP_HELLO_WORLD_CLIENT_IMPL_H_ |