| Index: mojo/examples/hello_world_service/hello_world_service_impl.cc
|
| diff --git a/mojo/examples/hello_world_service/hello_world_service_impl.cc b/mojo/examples/hello_world_service/hello_world_service_impl.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..79c0b24200fe87b1c7e7a9dba75b95b4099cf2d7
|
| --- /dev/null
|
| +++ b/mojo/examples/hello_world_service/hello_world_service_impl.cc
|
| @@ -0,0 +1,24 @@
|
| +// 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/hello_world_service/hello_world_service_impl.h"
|
| +
|
| +#include <string>
|
| +#include "base/logging.h"
|
| +
|
| +namespace mojo {
|
| +namespace examples {
|
| +
|
| +HelloWorldServiceImpl::HelloWorldServiceImpl(mojo::Handle pipe)
|
| + : client_(pipe) {
|
| + client_.SetPeer(this);
|
| +}
|
| +
|
| +void HelloWorldServiceImpl::Greeting(const mojo::String* greeting) {
|
| + LOG(INFO) << greeting->To<std::string>();
|
| + client_->DidReceiveGreeting(42);
|
| +}
|
| +
|
| +} // examples
|
| +} // mojo
|
|
|