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

Unified Diff: mojo/examples/sample_app/hello_world_client_impl.cc

Issue 72123002: Work in progress for end-to-end bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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.cc
diff --git a/mojo/examples/sample_app/hello_world_client_impl.cc b/mojo/examples/sample_app/hello_world_client_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d9a3814e7b8ae3f2201564149a70a7a398e207e0
--- /dev/null
+++ b/mojo/examples/sample_app/hello_world_client_impl.cc
@@ -0,0 +1,22 @@
+// 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.
+
+#include "mojo/examples/sample_app/hello_world_client_impl.h"
+
+#include <stdio.h>
+
+namespace mojo {
+namespace examples {
+
+HelloWorldClientImpl::HelloWorldClientImpl(mojo::Handle pipe)
+ : service_(pipe) {
+ service_.SetPeer(this);
+}
+
+void HelloWorldClientImpl::DidReceiveGreeting(int32_t result) {
+ printf("DidReceiveGreeting from pipe: %d\n", result);
+}
+
+} // examples
+} // mojo

Powered by Google App Engine
This is Rietveld 408576698