| 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
|
|
|