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