OLD | NEW |
| (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 | |
9 #include "base/logging.h" | |
10 | |
11 namespace mojo { | |
12 namespace examples { | |
13 | |
14 HelloWorldServiceImpl::HelloWorldServiceImpl(ScopedMessagePipeHandle pipe) | |
15 : client_(pipe.Pass()) { | |
16 client_.SetPeer(this); | |
17 } | |
18 | |
19 void HelloWorldServiceImpl::Greeting(const String& greeting) { | |
20 LOG(INFO) << greeting.To<std::string>(); | |
21 client_->DidReceiveGreeting(42); | |
22 } | |
23 | |
24 HelloWorldServiceImpl::~HelloWorldServiceImpl() {} | |
25 | |
26 } // namespace examples | |
27 } // namespace mojo | |
OLD | NEW |