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

Issue 583473002: IPC: Get rid of FileDescriptor usage from FileDescriptorSet and Message (Closed)

Created:
6 years, 3 months ago by Hajime Morrita
Modified:
6 years, 3 months ago
Reviewers:
agl, viettrungluu, jam
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

IPC: Get rid of FileDescriptor usage from FileDescriptorSet and Message This is a step toward to killing FileDescriptor. This change lets FiileDescriptorSet have both Files (for owning fds) and PlatformFiles (for non-owning fds). Doing this, we no longer need FileDescriptor which provides |auto_close| flag. BUG=415294 TEST=ipc_tests, ipc_mojo_unittests R=agl@chromium.org, jam@hcromium.org, viettrungluu@chromium.org Committed: https://crrev.com/96693856edc35a538f6ea8f0bd6ab55c75e3e823 Cr-Commit-Position: refs/heads/master@{#296498}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Updated #

Total comments: 3

Patch Set 3 : Replaced File with ScopedFD #

Patch Set 4 : Landing #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -153 lines) Patch
M ipc/file_descriptor_set_posix.h View 1 2 3 4 7 chunks +15 lines, -13 lines 0 comments Download
M ipc/file_descriptor_set_posix.cc View 1 2 3 4 4 chunks +65 lines, -54 lines 0 comments Download
M ipc/file_descriptor_set_posix_unittest.cc View 1 2 3 4 10 chunks +42 lines, -36 lines 0 comments Download
M ipc/ipc_channel_nacl.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M ipc/ipc_channel_posix.cc View 1 2 3 4 chunks +7 lines, -9 lines 0 comments Download
M ipc/ipc_message.h View 1 2 3 chunks +4 lines, -7 lines 0 comments Download
M ipc/ipc_message.cc View 1 2 3 4 3 chunks +17 lines, -11 lines 0 comments Download
M ipc/ipc_message_utils.cc View 1 2 2 chunks +18 lines, -7 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ipc/mojo/ipc_channel_mojo.cc View 1 2 3 chunks +13 lines, -6 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo_readers.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ipc/mojo/ipc_channel_mojo_unittest.cc View 1 2 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
Hajime Morrita
6 years, 3 months ago (2014-09-18 00:01:21 UTC) #1
agl
https://codereview.chromium.org/583473002/diff/1/ipc/file_descriptor_set_posix.cc File ipc/file_descriptor_set_posix.cc (left): https://codereview.chromium.org/583473002/diff/1/ipc/file_descriptor_set_posix.cc#oldcode86 ipc/file_descriptor_set_posix.cc:86: // There's one more wrinkle: When logging messages, we ...
6 years, 3 months ago (2014-09-18 01:17:26 UTC) #2
Hajime Morrita
Thanks for the quick review Adam! PTAL? https://codereview.chromium.org/583473002/diff/1/ipc/file_descriptor_set_posix.cc File ipc/file_descriptor_set_posix.cc (left): https://codereview.chromium.org/583473002/diff/1/ipc/file_descriptor_set_posix.cc#oldcode86 ipc/file_descriptor_set_posix.cc:86: // There's ...
6 years, 3 months ago (2014-09-18 01:29:08 UTC) #3
agl
LGTM One nit below. LGTM in order to minimise delay. https://codereview.chromium.org/583473002/diff/20001/ipc/ipc_message_utils.cc File ipc/ipc_message_utils.cc (right): https://codereview.chromium.org/583473002/diff/20001/ipc/ipc_message_utils.cc#newcode488 ...
6 years, 3 months ago (2014-09-18 17:42:32 UTC) #4
Hajime Morrita
Thanks for the review! Also, I'm renaming GetDescriptors() to PeekDescriptors() so that it doesn't transfer ...
6 years, 3 months ago (2014-09-18 17:58:50 UTC) #5
agl
lgtm https://codereview.chromium.org/583473002/diff/20001/ipc/ipc_message_utils.cc File ipc/ipc_message_utils.cc (right): https://codereview.chromium.org/583473002/diff/20001/ipc/ipc_message_utils.cc#newcode488 ipc/ipc_message_utils.cc:488: return true; On 2014/09/18 17:58:50, morrita wrote: > ...
6 years, 3 months ago (2014-09-18 18:07:19 UTC) #6
Hajime Morrita
Oops. Turned out this doesn't work :-( The approach isn't bad. But File::Close() cannot be ...
6 years, 3 months ago (2014-09-18 19:24:01 UTC) #7
Hajime Morrita
OK, I replaced File with ScopedFD, This is actually better. Would you mind to take ...
6 years, 3 months ago (2014-09-18 19:51:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/583473002/40001
6 years, 3 months ago (2014-09-18 21:35:38 UTC) #10
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-18 23:39:03 UTC) #12
agl
lgtm
6 years, 3 months ago (2014-09-18 23:42:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/583473002/40001
6 years, 3 months ago (2014-09-18 23:51:23 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (None)
6 years, 3 months ago (2014-09-19 01:13:11 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/583473002/60001
6 years, 3 months ago (2014-09-19 20:49:24 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/11482)
6 years, 3 months ago (2014-09-19 21:33:49 UTC) #21
Hajime Morrita
Adam: I'm sorry to bother you but could you take another look? It turned out ...
6 years, 3 months ago (2014-09-19 23:57:48 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/583473002/80001
6 years, 3 months ago (2014-09-24 19:30:34 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 4cf312b753490416d0f6953478e9c4e893e05b1f
6 years, 3 months ago (2014-09-24 20:11:52 UTC) #25
commit-bot: I haz the power
6 years, 3 months ago (2014-09-24 20:12:33 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/96693856edc35a538f6ea8f0bd6ab55c75e3e823
Cr-Commit-Position: refs/heads/master@{#296498}

Powered by Google App Engine
This is Rietveld 408576698