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

Issue 2670213006: Mojom structs for copy requests / results should map to unique_ptr (Closed)

Created:
3 years, 10 months ago by Saman Sami
Modified:
3 years, 10 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, miu+watch_chromium.org, xjz+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojom structs for copy requests / results should map to unique_ptr Currently, cc.mojom.CopyOutputRequest and cc.mojom.CopyOutputResult map to cc::CopyOutputRequest and cc::CopyOutputResult respectively, but they should map to std::unique_ptr<cc::CopyOutputRequest> and std::unique_ptr<cc::CopyOutputResult>. This is because cc::CopyOutputRequest and cc::CopyOutputResult can be only created exclusively as unique_ptr and we are going to have problem passing their objects over mojo. BUG=672071 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2670213006 Cr-Commit-Position: refs/heads/master@{#448177} Committed: https://chromium.googlesource.com/chromium/src/+/e0c6f958254ff01ada02bfc4c9ba99a602c67930

Patch Set 1 #

Patch Set 2 : c #

Total comments: 4

Patch Set 3 : c #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -78 lines) Patch
M cc/ipc/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cc/ipc/copy_output_request.typemap View 1 chunk +1 line, -1 line 0 comments Download
M cc/ipc/copy_output_request_struct_traits.h View 1 1 chunk +14 lines, -14 lines 0 comments Download
A cc/ipc/copy_output_request_struct_traits.cc View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
M cc/ipc/copy_output_result.typemap View 1 chunk +1 line, -1 line 0 comments Download
M cc/ipc/copy_output_result_struct_traits.h View 1 chunk +10 lines, -7 lines 0 comments Download
M cc/ipc/copy_output_result_struct_traits.cc View 1 2 1 chunk +24 lines, -10 lines 0 comments Download
M cc/ipc/struct_traits_unittest.cc View 3 chunks +32 lines, -30 lines 0 comments Download
M cc/output/copy_output_request.h View 1 3 chunks +4 lines, -3 lines 0 comments Download
M cc/output/copy_output_result.h View 1 3 chunks +4 lines, -7 lines 0 comments Download
M cc/output/copy_output_result.cc View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 37 (22 generated)
Saman Sami
dcheng@: Please review mojo enne@: Please review cc/ fsamuel@: Plesae review all files
3 years, 10 months ago (2017-02-03 22:33:54 UTC) #6
enne (OOO)
lgtm
3 years, 10 months ago (2017-02-03 22:57:48 UTC) #7
Fady Samuel
lgtm
3 years, 10 months ago (2017-02-03 23:03:20 UTC) #8
Saman Sami
tsepez@: Please review mojo
3 years, 10 months ago (2017-02-03 23:07:11 UTC) #10
Tom Sepez
LGTM, but a couple of general questions, not specific to this particular change. https://codereview.chromium.org/2670213006/diff/20001/cc/ipc/copy_output_request.typemap File ...
3 years, 10 months ago (2017-02-04 00:32:14 UTC) #14
Saman Sami
https://codereview.chromium.org/2670213006/diff/20001/cc/ipc/copy_output_request.typemap File cc/ipc/copy_output_request.typemap (right): https://codereview.chromium.org/2670213006/diff/20001/cc/ipc/copy_output_request.typemap#newcode11 cc/ipc/copy_output_request.typemap:11: type_mappings = [ "cc.mojom.CopyOutputRequest=std::unique_ptr<cc::CopyOutputRequest>[move_only]" ] On 2017/02/04 00:32:14, Tom ...
3 years, 10 months ago (2017-02-04 01:09:25 UTC) #15
Tom Sepez
LGTM.
3 years, 10 months ago (2017-02-04 01:15:17 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2670213006/40001
3 years, 10 months ago (2017-02-04 01:16:10 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2670213006/40001
3 years, 10 months ago (2017-02-04 04:20:11 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-04 05:35:29 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2670213006/40001
3 years, 10 months ago (2017-02-04 13:46:32 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) win_chromium_rel_ng on ...
3 years, 10 months ago (2017-02-04 15:47:02 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2670213006/40001
3 years, 10 months ago (2017-02-05 04:13:44 UTC) #33
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/e0c6f958254ff01ada02bfc4c9ba99a602c67930
3 years, 10 months ago (2017-02-05 05:33:45 UTC) #36
Saman Sami
3 years, 10 months ago (2017-02-10 03:00:36 UTC) #37
Message was sent while issue was closed.
On 2017/02/05 05:33:45, commit-bot: I haz the power wrote:
> Committed patchset #3 (id:40001) as
>
https://chromium.googlesource.com/chromium/src/+/e0c6f958254ff01ada02bfc4c9ba...

Powered by Google App Engine
This is Rietveld 408576698