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

Side by Side Diff: mojo/examples/hello_world_service/hello_world_service_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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "mojo/examples/hello_world_service/hello_world_service_impl.h"
6
7 #include <string>
8 #include "base/logging.h"
9
10 namespace mojo {
11 namespace examples {
12
13 HelloWorldServiceImpl::HelloWorldServiceImpl(mojo::Handle pipe)
14 : client_(pipe) {
15 client_.SetPeer(this);
16 }
17
18 void HelloWorldServiceImpl::Greeting(const mojo::String* greeting) {
19 LOG(INFO) << greeting->To<std::string>();
20 client_->DidReceiveGreeting(42);
21 }
22
23 } // examples
24 } // mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698