Please provide serialization methods for Mojo-generated Java classes |
||
Issue descriptionThe WebPayments team would like to pass a structure from Java (Android) code to some existing C++ code. The structure happens to be a Mojo structure. The simplest approach would be to serialize the structure into a string and pass that down to the C++ code, have it extracted via JNI then de-serialized via the existing Mojo C++ methods. I've chatted with a Mojo representative and confirmed that this would work great except that the Java serialization routines don't exist. Could they please be added?
,
Sep 10 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/df7fe83f8d3cabac81ebef3d809c11adafe5014d commit df7fe83f8d3cabac81ebef3d809c11adafe5014d Author: yzshen <yzshen@chromium.org> Date: Sat Sep 10 16:42:10 2016 Mojo Java Bindings: expose public API for struct serialization. This CL adds methods to serialize to / deserialize from ByteBuffer. BUG= 643447 Review-Url: https://codereview.chromium.org/2327103004 Cr-Commit-Position: refs/heads/master@{#417838} [modify] https://crrev.com/df7fe83f8d3cabac81ebef3d809c11adafe5014d/mojo/android/javatests/src/org/chromium/mojo/bindings/SerializationTest.java [modify] https://crrev.com/df7fe83f8d3cabac81ebef3d809c11adafe5014d/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Struct.java [modify] https://crrev.com/df7fe83f8d3cabac81ebef3d809c11adafe5014d/mojo/public/tools/bindings/generators/java_templates/data_types_definition.tmpl
,
Sep 11 2016
|
||
►
Sign in to add a comment |
||
Comment 1 by benhenry@chromium.org
, Sep 1 2016