Chromium Code Reviews| Index: blimp/engine/mojo/blob_channel_mojo_impl.cc |
| diff --git a/blimp/engine/mojo/blob_channel_mojo_impl.cc b/blimp/engine/mojo/blob_channel_mojo_impl.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..daac18354632db6bf61bfabb3383a8f600f24edb |
| --- /dev/null |
| +++ b/blimp/engine/mojo/blob_channel_mojo_impl.cc |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2016 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 "blimp/engine/mojo/blob_channel_mojo_impl.h" |
| + |
| +namespace blimp { |
| +namespace engine { |
| + |
| +BlobChannelMojoImpl::BlobChannelMojoImpl( |
| + mojo::InterfaceRequest<BlobChannelMojo> request) |
|
yzshen1
2016/04/05 17:44:14
nit: in case you didn't notice, you can use a shor
Kevin M
2016/04/06 00:01:44
Done.
|
| + : binding_(this, std::move(request)) {} |
| + |
| +BlobChannelMojoImpl::~BlobChannelMojoImpl() {} |
| + |
| +void BlobChannelMojoImpl::Put(const mojo::String& id, |
| + mojo::Array<uint8_t> data) { |
| + NOTIMPLEMENTED(); |
| +} |
| + |
| +void BlobChannelMojoImpl::Push(const mojo::String& id) { |
| + NOTIMPLEMENTED(); |
| +} |
| + |
| +// static |
| +void BlobChannelMojoImpl::Create( |
| + mojo::InterfaceRequest<BlobChannelMojo> request) { |
| + new BlobChannelMojoImpl(std::move(request)); |
|
nyquist
2016/04/05 22:13:19
Does this ever get deleted? Does it happen automat
Kevin M
2016/04/06 00:01:44
Yes, its StrongBinding |binding_| controls the lif
|
| +} |
| + |
| +} // namespace engine |
| +} // namespace blimp |