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

Issue 13757: message_pump_libevent refactor: (Closed)

Created:
12 years ago by jeremy
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

message_pump_libevent refactor: * Unify WatchSocket & WatchFileHandle. * Better encapsulate libevent. * Fix a bug with blocking writes in ipc_posix.cc

Patch Set 1 #

Patch Set 2 : Fix OS X compilation. #

Patch Set 3 : Allow one event to listen on read/write. #

Total comments: 10

Patch Set 4 : Fixes for Mike's comments. #

Total comments: 7

Patch Set 5 : Change semantics to make WatchFileDescriptor() cumulative + Fixes for Mark's comments. #

Patch Set 6 : fix typo #

Patch Set 7 : Another small fix. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -254 lines) Patch
M base/message_loop.h View 1 2 1 chunk +15 lines, -8 lines 0 comments Download
M base/message_loop.cc View 1 2 1 chunk +11 lines, -16 lines 0 comments Download
M base/message_pump_libevent.h View 1 2 3 4 3 chunks +59 lines, -38 lines 1 comment Download
M base/message_pump_libevent.cc View 1 2 3 4 3 chunks +93 lines, -57 lines 0 comments Download
M chrome/common/ipc_channel_posix.h View 1 2 3 4 2 chunks +10 lines, -19 lines 0 comments Download
M chrome/common/ipc_channel_posix.cc View 1 2 13 chunks +44 lines, -65 lines 2 comments Download
M net/base/listen_socket.h View 1 2 3 4 5 4 chunks +13 lines, -12 lines 0 comments Download
M net/base/listen_socket.cc View 1 6 chunks +12 lines, -11 lines 0 comments Download
M net/base/tcp_client_socket.h View 1 2 5 chunks +7 lines, -6 lines 0 comments Download
M net/base/tcp_client_socket_libevent.cc View 1 2 3 4 5 6 8 chunks +39 lines, -22 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jeremy
12 years ago (2008-12-11 22:01:26 UTC) #1
jeremy
Fixes for dkegel's comments, ready for another look...
12 years ago (2008-12-12 17:18:15 UTC) #2
pink (ping after 24hrs)
http://codereview.chromium.org/13757/diff/23/214 File base/message_pump_libevent.cc (right): http://codereview.chromium.org/13757/diff/23/214#newcode20 Line 20: if (-1 == flags) use |if (flags == ...
12 years ago (2008-12-12 17:40:49 UTC) #3
jeremy
All fixed. dkegel: lgty? http://codereview.chromium.org/13757/diff/23/214 File base/message_pump_libevent.cc (right): http://codereview.chromium.org/13757/diff/23/214#newcode20 Line 20: if (-1 == flags) ...
12 years ago (2008-12-12 18:04:10 UTC) #4
Mark Mentovai
lgtm http://codereview.chromium.org/13757/diff/32/233 File base/message_pump_libevent.cc (right): http://codereview.chromium.org/13757/diff/32/233#newcode45 Line 45: is_persistent = is_persistent_; Check that, looks backwards. ...
12 years ago (2008-12-12 20:01:21 UTC) #5
jeremy
Fix for TestShell unit test bustage. I've made WatchFileDescriptor() behavior cumulative. http://codereview.chromium.org/13757/diff/32/233 File base/message_pump_libevent.cc (right): ...
12 years ago (2008-12-15 20:49:55 UTC) #6
Mark Mentovai
12 years ago (2008-12-15 21:43:40 UTC) #7
LG
tm
okaaaaaaaaaaa

http://codereview.chromium.org/13757/diff/56/60
File base/message_pump_libevent.h (right):

http://codereview.chromium.org/13757/diff/56/60#newcode27
Line 27: ~FileDescriptorWatcher();  // Implicitly calls StopWatching.
Implicitly calls StopWatchingFileDescriptor?

http://codereview.chromium.org/13757/diff/56/61
File chrome/common/ipc_channel_posix.cc (right):

http://codereview.chromium.org/13757/diff/56/61#newcode16
Line 16: #include <sys/un.h>
Did you try to use <sys/un.h> on Linux here?

http://codereview.chromium.org/13757/diff/56/61#newcode153
Line 153: is_blocked_on_write_(false),
Indentation messed up through here.

Powered by Google App Engine
This is Rietveld 408576698