OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // This file simply (forward) declares |mojo::embedder::ChannelInfo|, which is |
| 6 // meant to be opaque to users of the embedder API. |
| 7 |
| 8 #ifndef MOJO_EDK_EMBEDDER_CHANNEL_INFO_FORWARD_H_ |
| 9 #define MOJO_EDK_EMBEDDER_CHANNEL_INFO_FORWARD_H_ |
| 10 |
| 11 namespace mojo { |
| 12 |
| 13 // Forward declare |system::ChannelInfo|, so that we can typedef it to |
| 14 // |embedder::ChannelInfo|. Users of the embedder API shouldn't use this |
| 15 // directly; instead they should use |embedder::ChannelInfo|. |
| 16 namespace system { |
| 17 struct ChannelInfo; |
| 18 } |
| 19 |
| 20 namespace embedder { |
| 21 |
| 22 // This is an opaque type. The embedder API uses (returns and takes as |
| 23 // arguments) pointers to this type. (We don't simply use |void*|, so that |
| 24 // custom deleters and such can be used without additional wrappers. |
| 25 typedef system::ChannelInfo ChannelInfo; |
| 26 |
| 27 } // namespace embedder |
| 28 |
| 29 } // namespace mojo |
| 30 |
| 31 #endif // MOJO_EDK_EMBEDDER_CHANNEL_INFO_FORWARD_H_ |
OLD | NEW |