| Index: mojo/edk/embedder/channel_info_forward.h
|
| diff --git a/mojo/edk/embedder/channel_info_forward.h b/mojo/edk/embedder/channel_info_forward.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..494d5ef2c741f3fec60b28b9f722592a5a6f985f
|
| --- /dev/null
|
| +++ b/mojo/edk/embedder/channel_info_forward.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2014 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.
|
| +
|
| +// This file simply (forward) declares |mojo::embedder::ChannelInfo|, which is
|
| +// meant to be opaque to users of the embedder API.
|
| +
|
| +#ifndef MOJO_EDK_EMBEDDER_CHANNEL_INFO_FORWARD_H_
|
| +#define MOJO_EDK_EMBEDDER_CHANNEL_INFO_FORWARD_H_
|
| +
|
| +namespace mojo {
|
| +
|
| +// Forward declare |system::ChannelInfo|, so that we can typedef it to
|
| +// |embedder::ChannelInfo|. Users of the embedder API shouldn't use this
|
| +// directly; instead they should use |embedder::ChannelInfo|.
|
| +namespace system {
|
| +struct ChannelInfo;
|
| +}
|
| +
|
| +namespace embedder {
|
| +
|
| +// This is an opaque type. The embedder API uses (returns and takes as
|
| +// arguments) pointers to this type. (We don't simply use |void*|, so that
|
| +// custom deleters and such can be used without additional wrappers.
|
| +typedef system::ChannelInfo ChannelInfo;
|
| +
|
| +} // namespace embedder
|
| +
|
| +} // namespace mojo
|
| +
|
| +#endif // MOJO_EDK_EMBEDDER_CHANNEL_INFO_FORWARD_H_
|
|
|