diff options
Diffstat (limited to 'mojo/examples/sample_app/hello_world_client_impl.cc')
-rw-r--r-- | mojo/examples/sample_app/hello_world_client_impl.cc | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/mojo/examples/sample_app/hello_world_client_impl.cc b/mojo/examples/sample_app/hello_world_client_impl.cc deleted file mode 100644 index 2d6d112..0000000 --- a/mojo/examples/sample_app/hello_world_client_impl.cc +++ /dev/null @@ -1,28 +0,0 @@ -// 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> - -#include "base/message_loop/message_loop.h" - -namespace mojo { -namespace examples { - -HelloWorldClientImpl::HelloWorldClientImpl(ScopedMessagePipeHandle pipe) - : service_(pipe.Pass()) { - service_.SetPeer(this); -} - -void HelloWorldClientImpl::DidReceiveGreeting(int32_t result) { - printf("DidReceiveGreeting from pipe: %d\n", result); - // Stop the current message loop. - base::MessageLoop::current()->QuitNow(); -} - -HelloWorldClientImpl::~HelloWorldClientImpl() {} - -} // examples -} // mojo |