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

Issue 1966983003: Generate param traits size methods for IPC files in content/ (and traits it depends on). (Closed)

Created:
4 years, 7 months ago by jam
Modified:
4 years, 7 months ago
Reviewers:
dcheng
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, cc-bugs_chromium.org, chromium-reviews, cmumford, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, jsbell+idb_chromium.org, ortuno+watch_chromium.org, piman+watch_chromium.org, qsr+mojo_chromium.org, scheib+watch_chromium.org, tdresser+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Generate param traits size methods for IPC files in content/ (and traits it depends on). This allows us to reuse these traits in Mojo if needed. I didn't add GetSize to every single trait in content/ and below; just enough to get the content message generator to compile with the size traits. NOTRY=true Committed: https://crrev.com/45eceef93a1f6018a9a9a63df84fa0b32a326315 Cr-Commit-Position: refs/heads/master@{#393058}

Patch Set 1 #

Total comments: 5

Patch Set 2 : review comments #

Total comments: 2

Patch Set 3 : comment #

Patch Set 4 : fix owners #

Unified diffs Side-by-side diffs Delta from patch set Stats (+533 lines, -37 lines) Patch
M base/pickle.h View 1 chunk +1 line, -0 lines 0 comments Download
M base/pickle.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M content/common/cc_messages.h View 6 chunks +6 lines, -0 lines 0 comments Download
M content/common/cc_messages.cc View 1 6 chunks +78 lines, -0 lines 0 comments Download
M content/common/content_message_generator.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M content/common/content_param_traits.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/content_param_traits.cc View 2 chunks +12 lines, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_param_traits.h View 3 chunks +3 lines, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_param_traits.cc View 1 3 chunks +55 lines, -0 lines 0 comments Download
M content/common/input/input_param_traits.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/input/input_param_traits.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M content/common/media/media_param_traits.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/media/media_param_traits.cc View 2 chunks +20 lines, -0 lines 0 comments Download
M content/common/resource_messages.h View 5 chunks +5 lines, -0 lines 0 comments Download
M content/common/resource_messages.cc View 1 5 chunks +99 lines, -0 lines 0 comments Download
M content/public/common/OWNERS View 1 2 3 1 chunk +11 lines, -15 lines 0 comments Download
M content/public/common/common_param_traits.h View 5 chunks +5 lines, -0 lines 0 comments Download
M content/public/common/common_param_traits.cc View 6 chunks +37 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_uuid.h View 2 chunks +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_uuid.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M ipc/ipc_message.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ipc/ipc_message_utils.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ipc/ipc_message_utils.cc View 1 2 3 chunks +23 lines, -0 lines 0 comments Download
M ipc/mach_port_mac.h View 1 chunk +1 line, -0 lines 0 comments Download
M ipc/mach_port_mac.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M media/gpu/ipc/common/media_param_traits.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/mojom.gni View 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/ipc/latency_info_param_traits.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/ipc/latency_info_param_traits.cc View 2 chunks +20 lines, -0 lines 0 comments Download
M ui/gfx/ipc/OWNERS View 1 2 3 1 chunk +8 lines, -11 lines 0 comments Download
M ui/gfx/ipc/geometry/OWNERS View 1 2 3 1 chunk +8 lines, -11 lines 0 comments Download
M ui/gfx/ipc/geometry/gfx_param_traits.h View 7 chunks +7 lines, -0 lines 0 comments Download
M ui/gfx/ipc/geometry/gfx_param_traits.cc View 7 chunks +39 lines, -0 lines 0 comments Download
M ui/gfx/ipc/gfx_param_traits.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/gfx/ipc/gfx_param_traits.cc View 1 3 chunks +19 lines, -0 lines 0 comments Download
M ui/gfx/ipc/skia/gfx_skia_param_traits.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/gfx/ipc/skia/gfx_skia_param_traits.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M url/ipc/url_param_traits.h View 1 chunk +1 line, -0 lines 0 comments Download
M url/ipc/url_param_traits.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (17 generated)
jam
the motivation is https://codereview.chromium.org/1896883002/ https://codereview.chromium.org/1966983003/diff/1/mojo/public/tools/bindings/mojom.gni File mojo/public/tools/bindings/mojom.gni (right): https://codereview.chromium.org/1966983003/diff/1/mojo/public/tools/bindings/mojom.gni#newcode215 mojo/public/tools/bindings/mojom.gni:215: inputs = _bindings_configuration_files fix per ...
4 years, 7 months ago (2016-05-11 15:27:24 UTC) #3
dcheng
What are the implications of GetSize() not matching the actual length of Write()? https://codereview.chromium.org/1966983003/diff/1/ui/gfx/ipc/gfx_param_traits.cc File ...
4 years, 7 months ago (2016-05-11 17:39:12 UTC) #4
jam
On 2016/05/11 17:39:12, dcheng wrote: > What are the implications of GetSize() not matching the ...
4 years, 7 months ago (2016-05-11 17:57:02 UTC) #5
dcheng
https://codereview.chromium.org/1966983003/diff/2/ipc/ipc_message_utils.cc File ipc/ipc_message_utils.cc (right): https://codereview.chromium.org/1966983003/diff/2/ipc/ipc_message_utils.cc#newcode698 ipc/ipc_message_utils.cc:698: GetParamSize(sizer, p.GetMemoryObject());size_t size = 0; Needs a newline. Shouldn't ...
4 years, 7 months ago (2016-05-11 18:02:25 UTC) #6
jam
https://codereview.chromium.org/1966983003/diff/2/ipc/ipc_message_utils.cc File ipc/ipc_message_utils.cc (right): https://codereview.chromium.org/1966983003/diff/2/ipc/ipc_message_utils.cc#newcode698 ipc/ipc_message_utils.cc:698: GetParamSize(sizer, p.GetMemoryObject());size_t size = 0; On 2016/05/11 18:02:25, dcheng ...
4 years, 7 months ago (2016-05-11 18:12:21 UTC) #7
dcheng
LGTM, you're write, I misread the Write() method.
4 years, 7 months ago (2016-05-11 18:18:31 UTC) #8
dcheng
right*** lskdfjladkjsfd
4 years, 7 months ago (2016-05-11 18:18:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1966983003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1966983003/20001
4 years, 7 months ago (2016-05-11 18:19:57 UTC) #11
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/181416)
4 years, 7 months ago (2016-05-11 18:28:54 UTC) #13
jam
btw I fixed some OWNERS files for ipc review
4 years, 7 months ago (2016-05-11 18:32:22 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1966983003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1966983003/40001
4 years, 7 months ago (2016-05-11 18:33:03 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1966983003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1966983003/60001
4 years, 7 months ago (2016-05-11 19:17:12 UTC) #22
jam
sigh, i'm giving up on CQ since the layout tests are triggering and failing because ...
4 years, 7 months ago (2016-05-11 20:54:33 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1966983003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1966983003/60001
4 years, 7 months ago (2016-05-11 20:55:13 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1966983003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1966983003/60001
4 years, 7 months ago (2016-05-11 20:56:33 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-11 21:05:26 UTC) #32
commit-bot: I haz the power
4 years, 7 months ago (2016-05-11 21:17:59 UTC) #34
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/45eceef93a1f6018a9a9a63df84fa0b32a326315
Cr-Commit-Position: refs/heads/master@{#393058}

Powered by Google App Engine
This is Rietveld 408576698