| Index: base/message_loop/message_pump_io_ios.cc
|
| diff --git a/base/message_loop/message_pump_io_ios.cc b/base/message_loop/message_pump_io_ios.cc
|
| index 9e6efeca1932f3aeed3078b7238ab3b07dbf0c4e..b464f74ed0ec40ef0549263325eaea9bef29a660 100644
|
| --- a/base/message_loop/message_pump_io_ios.cc
|
| +++ b/base/message_loop/message_pump_io_ios.cc
|
| @@ -51,18 +51,14 @@ void MessagePumpIOSForIO::FileDescriptorWatcher::OnFileCanReadWithoutBlocking(
|
| int fd,
|
| MessagePumpIOSForIO* pump) {
|
| DCHECK(callback_types_ & kCFFileDescriptorReadCallBack);
|
| - pump->WillProcessIOEvent();
|
| watcher_->OnFileCanReadWithoutBlocking(fd);
|
| - pump->DidProcessIOEvent();
|
| }
|
|
|
| void MessagePumpIOSForIO::FileDescriptorWatcher::OnFileCanWriteWithoutBlocking(
|
| int fd,
|
| MessagePumpIOSForIO* pump) {
|
| DCHECK(callback_types_ & kCFFileDescriptorWriteCallBack);
|
| - pump->WillProcessIOEvent();
|
| watcher_->OnFileCanWriteWithoutBlocking(fd);
|
| - pump->DidProcessIOEvent();
|
| }
|
|
|
| MessagePumpIOSForIO::MessagePumpIOSForIO() : weak_factory_(this) {
|
| @@ -152,22 +148,6 @@ void MessagePumpIOSForIO::RemoveRunLoopSource(CFRunLoopSourceRef source) {
|
| CFRunLoopRemoveSource(run_loop(), source, kCFRunLoopCommonModes);
|
| }
|
|
|
| -void MessagePumpIOSForIO::AddIOObserver(IOObserver *obs) {
|
| - io_observers_.AddObserver(obs);
|
| -}
|
| -
|
| -void MessagePumpIOSForIO::RemoveIOObserver(IOObserver *obs) {
|
| - io_observers_.RemoveObserver(obs);
|
| -}
|
| -
|
| -void MessagePumpIOSForIO::WillProcessIOEvent() {
|
| - FOR_EACH_OBSERVER(IOObserver, io_observers_, WillProcessIOEvent());
|
| -}
|
| -
|
| -void MessagePumpIOSForIO::DidProcessIOEvent() {
|
| - FOR_EACH_OBSERVER(IOObserver, io_observers_, DidProcessIOEvent());
|
| -}
|
| -
|
| // static
|
| void MessagePumpIOSForIO::HandleFdIOEvent(CFFileDescriptorRef fdref,
|
| CFOptionFlags callback_types,
|
|
|