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

Unified Diff: mojo/examples/sample_app/hello_world_client_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/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..4995406a8520c5ee93aa83f03a2e5d703698c23d
--- /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);
+ virtual ~HelloWorldClientImpl();
+
+ 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_

Powered by Google App Engine
This is Rietveld 408576698