| Index: mojo/examples/sample_app/hello_world_client_impl.h
|
| diff --git a/mojo/examples/sample_app/hello_world_client_impl.h b/mojo/examples/sample_app/hello_world_client_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8c63fc868b29b38266925e1b00cbae86380e0e18
|
| --- /dev/null
|
| +++ b/mojo/examples/sample_app/hello_world_client_impl.h
|
| @@ -0,0 +1,31 @@
|
| +// 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.
|
| +
|
| +#ifndef MOJO_EXAMPLES_SAMPLE_APP_HELLO_WORLD_CLIENT_IMPL_H_
|
| +#define MOJO_EXAMPLES_SAMPLE_APP_HELLO_WORLD_CLIENT_IMPL_H_
|
| +
|
| +#include "mojo/public/bindings/lib/remote_ptr.h"
|
| +#include "mojom/hello_world_service.h"
|
| +
|
| +namespace mojo {
|
| +namespace examples {
|
| +
|
| +class HelloWorldClientImpl : public HelloWorldClientStub {
|
| + public:
|
| + explicit HelloWorldClientImpl(mojo::Handle pipe);
|
| +
|
| + virtual void DidReceiveGreeting(int32_t result) MOJO_OVERRIDE;
|
| +
|
| + HelloWorldService* service() {
|
| + return service_.get();
|
| + }
|
| +
|
| + private:
|
| + mojo::RemotePtr<HelloWorldService> service_;
|
| +};
|
| +
|
| +} // examples
|
| +} // mojo
|
| +
|
| +#endif // MOJO_EXAMPLES_SAMPLE_APP_HELLO_WORLD_CLIENT_IMPL_H_
|
|
|