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

Unified Diff: mojo/public/cpp/bindings/lib/bindings_internal.h

Issue 1518293002: [mojo] Add Mojo bindings support for IPC::ParamTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pickle4
Patch Set: Created 5 years 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/public/cpp/bindings/lib/array_serialization.h ('k') | mojo/public/cpp/bindings/lib/buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/bindings_internal.h
diff --git a/mojo/public/cpp/bindings/lib/bindings_internal.h b/mojo/public/cpp/bindings/lib/bindings_internal.h
index 4c5917a1c61710b5640ad6b32e7024d825ed10fb..2ae181df1edaabe4ee060f51f611dee3cdbc1cbe 100644
--- a/mojo/public/cpp/bindings/lib/bindings_internal.h
+++ b/mojo/public/cpp/bindings/lib/bindings_internal.h
@@ -38,6 +38,14 @@ union StructPointer {
static_assert(sizeof(StructPointer<char>) == 8, "Bad_sizeof(StructPointer)");
template <typename T>
+union NativePointer {
+ uint64_t offset;
+ Array_Data<uint8_t>* ptr;
+};
+static_assert(sizeof(NativePointer<char>) == sizeof(StructPointer<char>),
+ "Bad_sizeof(NativePointer)");
+
+template <typename T>
union ArrayPointer {
uint64_t offset;
Array_Data<T>* ptr;
« no previous file with comments | « mojo/public/cpp/bindings/lib/array_serialization.h ('k') | mojo/public/cpp/bindings/lib/buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698