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

Issue 11412101: Provide an iOS message pump for IO implementation. (Closed)

Created:
8 years, 1 month ago by blundell
Modified:
8 years ago
Reviewers:
Mark Mentovai, droger, wtc
CC:
chromium-reviews, erikwright+watch_chromium.org, sadrul, sail+watch_chromium.org, droger
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Provide an iOS message pump for IO implementation. The implementation is done as a subclass of MessagePumpNSRunLoop. It is conceptually quite similar to the libevent implementation (message_pump_libevent*), on which it is based. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170470

Patch Set 1 #

Patch Set 2 : Undo mistaken change #

Patch Set 3 : Formatting nit #

Total comments: 16

Patch Set 4 : Fixes #

Patch Set 5 : Restore StopWatchingFileDescriptor signature #

Total comments: 21

Patch Set 6 : Response to review #

Total comments: 2

Patch Set 7 : Response to reviews #

Total comments: 7

Patch Set 8 : Response to review #

Total comments: 12

Patch Set 9 : Response to reviews #

Total comments: 4

Patch Set 10 : Response to review, bugfix #

Total comments: 30

Patch Set 11 : Back to old approach for maintaining safety #

Total comments: 6

Patch Set 12 : Address minor review comments #

Total comments: 5

Patch Set 13 : Response to wtc's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+380 lines, -447 lines) Patch
M base/base.gyp View 1 2 3 4 5 6 4 chunks +8 lines, -3 lines 0 comments Download
A base/mac/scoped_cffiledescriptorref.h View 1 2 3 7 8 1 chunk +75 lines, -0 lines 0 comments Download
M base/message_loop.h View 4 5 6 4 chunks +27 lines, -1 line 0 comments Download
M base/message_loop.cc View 1 2 3 4 5 4 chunks +20 lines, -2 lines 0 comments Download
A + base/message_pump_io_ios.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +39 lines, -79 lines 0 comments Download
A + base/message_pump_io_ios.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +128 lines, -302 lines 0 comments Download
A + base/message_pump_io_ios_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +71 lines, -48 lines 0 comments Download
M base/message_pump_libevent.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +2 lines, -4 lines 0 comments Download
M base/message_pump_libevent.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -5 lines 0 comments Download
M base/message_pump_libevent_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
blundell
Mark, As this class is used only on iOS, I put it in its own ...
8 years, 1 month ago (2012-11-20 14:28:02 UTC) #1
droger
https://chromiumcodereview.appspot.com/11412101/diff/9/base/mac/scoped_cffiledescriptorref.h File base/mac/scoped_cffiledescriptorref.h (right): https://chromiumcodereview.appspot.com/11412101/diff/9/base/mac/scoped_cffiledescriptorref.h#newcode17 base/mac/scoped_cffiledescriptorref.h:17: // destruction, it will invalidate the file descriptor. It ...
8 years, 1 month ago (2012-11-20 14:41:28 UTC) #2
Mark Mentovai
https://chromiumcodereview.appspot.com/11412101/diff/9/base/mac/scoped_cffiledescriptorref.h File base/mac/scoped_cffiledescriptorref.h (right): https://chromiumcodereview.appspot.com/11412101/diff/9/base/mac/scoped_cffiledescriptorref.h#newcode18 base/mac/scoped_cffiledescriptorref.h:18: class ScopedCFFileDescriptorRef { Can this just extend ScopedCFTypeRef<CFFileDescriptorRef> and ...
8 years, 1 month ago (2012-11-20 14:47:58 UTC) #3
blundell
Thanks for the reviews. PTAL. https://chromiumcodereview.appspot.com/11412101/diff/9/base/mac/scoped_cffiledescriptorref.h File base/mac/scoped_cffiledescriptorref.h (right): https://chromiumcodereview.appspot.com/11412101/diff/9/base/mac/scoped_cffiledescriptorref.h#newcode17 base/mac/scoped_cffiledescriptorref.h:17: // destruction, it will ...
8 years, 1 month ago (2012-11-20 20:38:54 UTC) #4
blundell
https://chromiumcodereview.appspot.com/11412101/diff/9/base/message_pump_io_ios.mm File base/message_pump_io_ios.mm (right): https://chromiumcodereview.appspot.com/11412101/diff/9/base/message_pump_io_ios.mm#newcode25 base/message_pump_io_ios.mm:25: return true; I spoke too soon; when I change ...
8 years, 1 month ago (2012-11-20 20:57:00 UTC) #5
wtc
https://chromiumcodereview.appspot.com/11412101/diff/9/base/message_pump_io_ios.h File base/message_pump_io_ios.h (right): https://chromiumcodereview.appspot.com/11412101/diff/9/base/message_pump_io_ios.h#newcode17 base/message_pump_io_ios.h:17: class MessagePumpIOSForIO : public MessagePumpNSRunLoop { On 2012/11/20 20:38:54, ...
8 years, 1 month ago (2012-11-20 21:04:09 UTC) #6
wtc
I couldn't find my previous discussions with Mark on the CFRunLoop vs. NSRunLoop issue in ...
8 years, 1 month ago (2012-11-20 21:20:43 UTC) #7
Mark Mentovai
https://chromiumcodereview.appspot.com/11412101/diff/11/base/message_loop.cc File base/message_loop.cc (right): https://chromiumcodereview.appspot.com/11412101/diff/11/base/message_loop.cc#newcode792 base/message_loop.cc:792: static_cast<base::MessagePumpIOSForIO::Mode>(mode), No cast, the callee should be accepting int. ...
8 years, 1 month ago (2012-11-20 22:29:26 UTC) #8
blundell
Thanks for the review. Comments addressed. Wan-Teh, can you comment on the discussion re: re-enabling ...
8 years, 1 month ago (2012-11-21 16:56:51 UTC) #9
wtc
https://codereview.chromium.org/11412101/diff/11/base/message_pump_io_ios.mm File base/message_pump_io_ios.mm (right): https://codereview.chromium.org/11412101/diff/11/base/message_pump_io_ios.mm#newcode1 base/message_pump_io_ios.mm:1: // Copyright 2012 The Chromium Authors. All rights reserved. ...
8 years, 1 month ago (2012-11-21 18:31:04 UTC) #10
wtc
Review comments on patch set 6: You should point out (in the CL's description) that ...
8 years, 1 month ago (2012-11-21 18:48:41 UTC) #11
Mark Mentovai
Thanks for your answers to those open questions, wtc. blundell, I think that with those ...
8 years, 1 month ago (2012-11-21 19:01:52 UTC) #12
stuartmorgan
https://codereview.chromium.org/11412101/diff/11/base/message_pump_io_ios.mm File base/message_pump_io_ios.mm (right): https://codereview.chromium.org/11412101/diff/11/base/message_pump_io_ios.mm#newcode1 base/message_pump_io_ios.mm:1: // Copyright 2012 The Chromium Authors. All rights reserved. ...
8 years, 1 month ago (2012-11-21 21:16:13 UTC) #13
Mark Mentovai
Not true for Mac Chrome. On the contrary, the rename is such a simple and ...
8 years, 1 month ago (2012-11-21 21:20:44 UTC) #14
stuartmorgan
On 2012/11/21 21:20:44, Mark Mentovai wrote: > Maybe iOS Chrome has a different policy. Or ...
8 years ago (2012-11-26 09:02:45 UTC) #15
blundell
Hi Mark and Wan-Teh, Thanks for your reviews. To be sure of our solution to ...
8 years ago (2012-11-26 16:02:23 UTC) #16
blundell
https://chromiumcodereview.appspot.com/11412101/diff/18/base/mac/scoped_cffiledescriptorref.h File base/mac/scoped_cffiledescriptorref.h (right): https://chromiumcodereview.appspot.com/11412101/diff/18/base/mac/scoped_cffiledescriptorref.h#newcode16 base/mac/scoped_cffiledescriptorref.h:16: // ScopedCFFileDescriptorRef is designed after ScopedCFTypeRef<>. On Due to ...
8 years ago (2012-11-26 16:05:06 UTC) #17
wtc
Review comments on patch set 7: Because of the renaming of base/message_pump_io_ios.cc, it is not ...
8 years ago (2012-11-26 22:17:42 UTC) #18
blundell
https://chromiumcodereview.appspot.com/11412101/diff/18/base/message_pump_io_ios.cc File base/message_pump_io_ios.cc (right): https://chromiumcodereview.appspot.com/11412101/diff/18/base/message_pump_io_ios.cc#newcode178 base/message_pump_io_ios.cc:178: int fd = CFFileDescriptorGetNativeDescriptor(fdref); The changes to message_pump_io_ios.{mm, cc} ...
8 years ago (2012-11-27 10:58:43 UTC) #19
wtc
Patch set 8 LGTM. Please commit this CL without waiting for my review. Just upload ...
8 years ago (2012-11-28 00:25:25 UTC) #20
Mark Mentovai
Ugh. Turn down that global git knob for detecting copies for this one change.
8 years ago (2012-11-28 04:30:36 UTC) #21
blundell
Hi, Comments addressed. Via futzing around in depot_tools/, I managed to get just the message_pump_io_ios* ...
8 years ago (2012-11-28 12:25:00 UTC) #22
Mark Mentovai
LGTM, although if you choose to refactor the test, let me know so we can ...
8 years ago (2012-11-28 14:59:39 UTC) #23
blundell
Hi Mark (and Wan-Teh, if you're still interested :), One last go-round on this please, ...
8 years ago (2012-11-28 16:56:55 UTC) #24
Mark Mentovai
LGTM still, but that new logic is an indication of spaghetti. :(
8 years ago (2012-11-28 17:02:04 UTC) #25
wtc
Patch set 10 LGTM. I am definitely still interested in this CL. Recall that I ...
8 years ago (2012-11-28 23:59:46 UTC) #26
wtc
blundell: I have a question about an earlier comment of yours. On 2012/11/26 16:02:23, blundell ...
8 years ago (2012-11-29 00:50:16 UTC) #27
wtc
Additional comments on patch set 10: 1. I spotted some differences between the new files ...
8 years ago (2012-11-29 00:53:21 UTC) #28
blundell
Mark and Wan-Teh, Thanks for all of your thorough reviews over this code. After each ...
8 years ago (2012-11-29 15:01:04 UTC) #29
Mark Mentovai
https://chromiumcodereview.appspot.com/11412101/diff/6017/base/mac/scoped_cffiledescriptorref.h File base/mac/scoped_cffiledescriptorref.h (right): https://chromiumcodereview.appspot.com/11412101/diff/6017/base/mac/scoped_cffiledescriptorref.h#newcode1 base/mac/scoped_cffiledescriptorref.h:1: // Copyright 2012 The Chromium Authors. All rights reserved. ...
8 years ago (2012-11-29 15:19:59 UTC) #30
wtc
Patch set 12 LGTM. Thanks. blundell,droger: can you confirm that it is still necessary for ...
8 years ago (2012-11-29 20:30:33 UTC) #31
blundell
Hi, All comments addressed. Mark, I am waiting for a last LGTM from you to ...
8 years ago (2012-11-30 11:19:52 UTC) #32
wtc
Patch set 13 LGTM. https://chromiumcodereview.appspot.com/11412101/diff/7037/base/message_pump_io_ios.cc File base/message_pump_io_ios.cc (right): https://chromiumcodereview.appspot.com/11412101/diff/7037/base/message_pump_io_ios.cc#newcode176 base/message_pump_io_ios.cc:176: // Ensure that |fdref| will ...
8 years ago (2012-11-30 15:14:20 UTC) #33
Mark Mentovai
LGTM
8 years ago (2012-11-30 16:02:37 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/11412101/4022
8 years ago (2012-11-30 16:14:25 UTC) #35
blundell
On 2012/11/30 15:14:20, wtc wrote: > Patch set 13 LGTM. > > https://chromiumcodereview.appspot.com/11412101/diff/7037/base/message_pump_io_ios.cc > File ...
8 years ago (2012-11-30 16:19:45 UTC) #36
commit-bot: I haz the power
8 years ago (2012-11-30 17:29:49 UTC) #37
Message was sent while issue was closed.
Change committed as 170470

Powered by Google App Engine
This is Rietveld 408576698