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

Issue 883093003: IPC::Message Refactoring: Move POSIX specific bits to PlatformFileAttachment (Closed)

Created:
5 years, 10 months ago by Hajime Morrita
Modified:
5 years, 10 months ago
Reviewers:
mtomasz, agl
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IPC::Message Refactoring: Move POSIX specific bits to PlatformFileAttachment This change: * Gets rid of MessageAttachmentSet::owning_descriptors_ by moving the responsibility to PlatformFileAttachment, where owning_ member variable is used to track the lifetime * Replaces MessageAttachmetnSet::Add*File() and TakePlatformFile() with platform agnostic AddAttachment() and GetAttachmentAt() * Repalces Message::ReadFile(), Write*File() with ReadAttachment() and WriteAttachmente(), which are also platform agnostic. This also adds MessageAttachment::TakePlatformFile() virtual function, which will be implemented by upcoming MojoHandleAttachment as well. This is another preparation for introducing MojoHandleAttachment, but it also simplifies Message and MessageAttachmentSet. R=agl@chromium.org TBR=mtomasz@chromium.org BUG=448190 Committed: https://crrev.com/1aa788c1f3c5f356b4e06110b5780a1de99c4cd7 Cr-Commit-Position: refs/heads/master@{#314047}

Patch Set 1 #

Patch Set 2 : Fixing errors #

Patch Set 3 : Fixing windows build errors #

Patch Set 4 : Build fix... #

Patch Set 5 : Updated to ToT #

Patch Set 6 : #

Total comments: 14

Patch Set 7 : Updated #

Patch Set 8 : Landing #

Patch Set 9 : Updated to ToT #

Patch Set 10 : Fixing Windows build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -255 lines) Patch
M chrome/browser/extensions/api/file_system/file_system_api.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ipc/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/ipc.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/ipc_channel_posix.cc View 1 2 3 4 5 6 3 chunks +6 lines, -4 lines 0 comments Download
M ipc/ipc_message.h View 1 2 3 4 5 6 7 8 3 chunks +12 lines, -20 lines 0 comments Download
M ipc/ipc_message.cc View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -20 lines 0 comments Download
M ipc/ipc_message_attachment.h View 2 chunks +6 lines, -0 lines 0 comments Download
M ipc/ipc_message_attachment.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ipc/ipc_message_attachment_set.h View 1 2 3 4 5 6 4 chunks +12 lines, -36 lines 0 comments Download
M ipc/ipc_message_attachment_set.cc View 1 2 3 4 5 6 5 chunks +19 lines, -60 lines 0 comments Download
M ipc/ipc_message_attachment_set_posix_unittest.cc View 1 2 3 4 5 6 10 chunks +47 lines, -31 lines 0 comments Download
M ipc/ipc_message_utils.cc View 1 2 3 4 5 6 4 chunks +12 lines, -6 lines 0 comments Download
M ipc/ipc_platform_file_attachment.h View 1 2 3 4 5 6 1 chunk +0 lines, -35 lines 0 comments Download
M ipc/ipc_platform_file_attachment.cc View 1 2 3 4 5 6 1 chunk +0 lines, -28 lines 0 comments Download
A + ipc/ipc_platform_file_attachment_posix.h View 1 2 3 4 5 6 7 1 chunk +12 lines, -4 lines 0 comments Download
A + ipc/ipc_platform_file_attachment_posix.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -1 line 0 comments Download
M ipc/mojo/ipc_channel_mojo.cc View 1 2 3 4 5 6 3 chunks +8 lines, -3 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo_unittest.cc View 1 2 3 4 5 6 3 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
Hajime Morrita
5 years, 10 months ago (2015-01-28 23:11:20 UTC) #1
mtomasz
lgtm for file_system_api.h
5 years, 10 months ago (2015-01-30 08:00:24 UTC) #3
agl
https://codereview.chromium.org/883093003/diff/100001/ipc/BUILD.gn File ipc/BUILD.gn (right): https://codereview.chromium.org/883093003/diff/100001/ipc/BUILD.gn#newcode79 ipc/BUILD.gn:79: "ipc_platform_file_attachment.cc", Why aren't these built on iOS. Is iOS ...
5 years, 10 months ago (2015-01-30 19:34:02 UTC) #4
Hajime Morrita
PTAL? https://codereview.chromium.org/883093003/diff/100001/ipc/BUILD.gn File ipc/BUILD.gn (right): https://codereview.chromium.org/883093003/diff/100001/ipc/BUILD.gn#newcode79 ipc/BUILD.gn:79: "ipc_platform_file_attachment.cc", On 2015/01/30 19:34:02, agl wrote: > Why ...
5 years, 10 months ago (2015-01-30 21:01:29 UTC) #5
agl
LGTM. I don't see the updated filenames in the CL listing, although I do see ...
5 years, 10 months ago (2015-01-30 21:57:55 UTC) #6
Hajime Morrita
Thanks for the review! On 2015/01/30 21:57:55, agl wrote: > LGTM. > > I don't ...
5 years, 10 months ago (2015-01-30 22:39:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/883093003/140001
5 years, 10 months ago (2015-01-30 22:40:19 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/54076) ios_rel_device_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ng/builds/6021) ios_rel_device_ninja_ng ...
5 years, 10 months ago (2015-01-30 22:43:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/883093003/160001
5 years, 10 months ago (2015-01-30 23:29:20 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_gn_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_gn_rel/builds/3560)
5 years, 10 months ago (2015-01-30 23:39:15 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/883093003/180001
5 years, 10 months ago (2015-01-30 23:59:57 UTC) #17
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 10 months ago (2015-01-31 05:46:11 UTC) #18
commit-bot: I haz the power
5 years, 10 months ago (2015-01-31 05:48:14 UTC) #19
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/1aa788c1f3c5f356b4e06110b5780a1de99c4cd7
Cr-Commit-Position: refs/heads/master@{#314047}

Powered by Google App Engine
This is Rietveld 408576698