Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: mojo/edk/embedder/channel_info_forward.h

Issue 703273002: Update mojo sdk to rev 04a510fb37db10642e156957f9b2c11c2f6442ac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix content/child -> mojo/common linking Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/embedder/BUILD.gn ('k') | mojo/edk/embedder/channel_init.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « mojo/edk/embedder/BUILD.gn ('k') | mojo/edk/embedder/channel_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698