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

Issue 1526533002: [mojo] Add pickling support for native-only structs (Closed)

Created:
5 years ago by Ken Rockot(use gerrit already)
Modified:
5 years ago
Reviewers:
jam, yzshen1
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@bindings-4-bool-deserialize
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[mojo] Add pickling support for native-only structs This uses IPC::ParamTraits definitions as serializers for native-only structs declared in mojom. Part of a series of changes to support custom mojom serialization: 1. https://codereview.chromium.org/1515423002 2. https://codereview.chromium.org/1517043004 3. https://codereview.chromium.org/1524693002 4. https://codereview.chromium.org/1520153002 5. https://codereview.chromium.org/1524613002 6. This CL 7. https://codereview.chromium.org/1524703002 BUG=569669 TBR=jam@chromium.org for DEPS +ipc/ipc_param_traits.h Committed: https://crrev.com/2312b0ae91169d466ed79311698cf2f2eedf7c73 Cr-Commit-Position: refs/heads/master@{#365847}

Patch Set 1 #

Patch Set 2 : Compute pickle size in advance #

Patch Set 3 : #

Patch Set 4 : gyp and deps #

Patch Set 5 : #

Total comments: 40

Patch Set 6 : address comments #

Patch Set 7 : throw on native-only arrays #

Patch Set 8 : merge #

Patch Set 9 : merge #

Patch Set 10 : merge #

Patch Set 11 : merge #

Patch Set 12 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+595 lines, -5 lines) Patch
M mojo/public/DEPS View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A mojo/public/cpp/bindings/lib/native_serialization.h View 1 2 3 4 5 6 1 chunk +98 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/BUILD.gn View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/tests/pickle_unittest.cc View 1 2 3 4 5 1 chunk +177 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/tests/pickled_struct_blink.h View 1 2 3 4 5 1 chunk +72 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/tests/pickled_struct_blink.cc View 2 1 chunk +47 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/tests/pickled_struct_chromium.h View 1 2 3 4 5 1 chunk +61 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/tests/pickled_struct_chromium.cc View 2 1 chunk +45 lines, -0 lines 0 comments Download
M mojo/public/interfaces/bindings/tests/test_native_types.mojom View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/module-internal.h.tmpl View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/struct_definition.tmpl View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/struct_macros.tmpl View 1 2 3 4 5 3 chunks +13 lines, -2 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_cpp_generator.py View 1 2 3 4 5 6 14 chunks +49 lines, -1 line 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/generate/module.py View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/mojo/mojo_edk_tests.gyp View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (17 generated)
Ken Rockot(use gerrit already)
Here's the patch which actually starts using ParamTraits for native serialization. Without needing to understand ...
5 years ago (2015-12-14 20:43:10 UTC) #5
jam
+Yuzhu as reviewer. I'm not familiar with the bindings code.
5 years ago (2015-12-14 21:55:25 UTC) #9
yzshen1
https://codereview.chromium.org/1526533002/diff/80001/mojo/public/DEPS File mojo/public/DEPS (right): https://codereview.chromium.org/1526533002/diff/80001/mojo/public/DEPS#newcode5 mojo/public/DEPS:5: "+ipc", Please see my comments in BUILD.gn. https://codereview.chromium.org/1526533002/diff/80001/mojo/public/cpp/bindings/BUILD.gn File ...
5 years ago (2015-12-15 21:20:27 UTC) #10
Ken Rockot(use gerrit already)
Note: I haven't updated the generated C++ types used for array/map elements because they won't ...
5 years ago (2015-12-15 23:31:08 UTC) #11
yzshen1
On 2015/12/15 23:31:08, Ken Rockot wrote: > Note: I haven't updated the generated C++ types ...
5 years ago (2015-12-15 23:55:29 UTC) #12
Ken Rockot(use gerrit already)
On 2015/12/15 at 23:55:29, yzshen wrote: > On 2015/12/15 23:31:08, Ken Rockot wrote: > > ...
5 years ago (2015-12-16 00:39:15 UTC) #13
yzshen1
LGTM Thanks!
5 years ago (2015-12-16 00:42:35 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1526533002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1526533002/200001
5 years ago (2015-12-17 06:16:09 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/151157) win_chromium_x64_rel_ng on ...
5 years ago (2015-12-17 06:22:00 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1526533002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1526533002/220001
5 years ago (2015-12-17 16:32:55 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/129977)
5 years ago (2015-12-17 16:42:47 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1526533002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1526533002/220001
5 years ago (2015-12-17 16:44:45 UTC) #28
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years ago (2015-12-17 17:45:44 UTC) #29
commit-bot: I haz the power
5 years ago (2015-12-17 17:46:26 UTC) #31
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/2312b0ae91169d466ed79311698cf2f2eedf7c73
Cr-Commit-Position: refs/heads/master@{#365847}

Powered by Google App Engine
This is Rietveld 408576698