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

Unified Diff: third_party/mojo/src/mojo/public/cpp/bindings/lib/bindings_serialization.cc

Issue 1127293003: Update mojo sdk to rev f84766d3b6420b7cf6a113d9d65d73cb5fe18d90 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting Created 5 years, 7 months 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
Index: third_party/mojo/src/mojo/public/cpp/bindings/lib/bindings_serialization.cc
diff --git a/third_party/mojo/src/mojo/public/cpp/bindings/lib/bindings_serialization.cc b/third_party/mojo/src/mojo/public/cpp/bindings/lib/bindings_serialization.cc
index 9bfbd694f42ad83f654b32cab4d71f15dd484c08..791afe20278607a8f0752565b4141d8911510002 100644
--- a/third_party/mojo/src/mojo/public/cpp/bindings/lib/bindings_serialization.cc
+++ b/third_party/mojo/src/mojo/public/cpp/bindings/lib/bindings_serialization.cc
@@ -64,6 +64,10 @@ void EncodeHandle(Interface_Data* data, std::vector<Handle>* handles) {
EncodeHandle(&data->handle, handles);
}
+void EncodeHandle(MojoHandle* handle, std::vector<Handle>* handles) {
+ EncodeHandle(reinterpret_cast<Handle*>(handle), handles);
+}
+
void DecodeHandle(Handle* handle, std::vector<Handle>* handles) {
if (handle->value() == kEncodedInvalidHandleValue) {
*handle = Handle();
@@ -78,5 +82,9 @@ void DecodeHandle(Interface_Data* data, std::vector<Handle>* handles) {
DecodeHandle(&data->handle, handles);
}
+void DecodeHandle(MojoHandle* handle, std::vector<Handle>* handles) {
+ DecodeHandle(reinterpret_cast<Handle*>(handle), handles);
+}
+
} // namespace internal
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698