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

Issue 9533002: Clean up in ipc_channel_posix. (Closed)

Created:
8 years, 9 months ago by brettw
Modified:
8 years, 9 months ago
Reviewers:
Elliot Glaysher
CC:
chromium-reviews, darin-cc_chromium.org, jam
Visibility:
Public.

Description

This changes around our handling of file descriptors to reduce code duplication and increase clarity. I tried to minimize actual changes and just move code. There are a few exceptions: The input file descriptor buffer is now a deque rather than a complicated fixed size buffer with extra overflow. This greatly simplifies some code. In practice, I don't think this will change the number of allocations we do in a practical way. I changed a few logging statements that seemed relevant to IPC developers only into the "D" variants. The msghdr struct used to be declared once at the top of ProcessOutgoingMessages and re-used for all calls to recvmsg. Now that the different callers are split out into sub functions, there is more initialization of the msghdr structs used in this call. I don't think this will be significant. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124272

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -272 lines) Patch
M ipc/ipc_channel_posix.h View 2 chunks +62 lines, -9 lines 0 comments Download
M ipc/ipc_channel_posix.cc View 1 6 chunks +222 lines, -263 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
brettw
8 years, 9 months ago (2012-02-29 04:59:22 UTC) #1
Elliot Glaysher
lgtm (I wish that had been two patches, one to factor stuff out into functions, ...
8 years, 9 months ago (2012-02-29 18:25:58 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brettw@chromium.org/9533002/5001
8 years, 9 months ago (2012-02-29 20:12:47 UTC) #3
commit-bot: I haz the power
8 years, 9 months ago (2012-02-29 22:48:19 UTC) #4
Change committed as 124272

Powered by Google App Engine
This is Rietveld 408576698