| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 delegate); | 718 delegate); |
| 719 } | 719 } |
| 720 #endif | 720 #endif |
| 721 | 721 |
| 722 #endif // !defined(OS_NACL) | 722 #endif // !defined(OS_NACL) |
| 723 | 723 |
| 724 //------------------------------------------------------------------------------ | 724 //------------------------------------------------------------------------------ |
| 725 // MessageLoopForIO | 725 // MessageLoopForIO |
| 726 | 726 |
| 727 #if !defined(OS_NACL_SFI) | 727 #if !defined(OS_NACL_SFI) |
| 728 void MessageLoopForIO::AddIOObserver( | |
| 729 MessageLoopForIO::IOObserver* io_observer) { | |
| 730 ToPumpIO(pump_.get())->AddIOObserver(io_observer); | |
| 731 } | |
| 732 | |
| 733 void MessageLoopForIO::RemoveIOObserver( | |
| 734 MessageLoopForIO::IOObserver* io_observer) { | |
| 735 ToPumpIO(pump_.get())->RemoveIOObserver(io_observer); | |
| 736 } | |
| 737 | 728 |
| 738 #if defined(OS_WIN) | 729 #if defined(OS_WIN) |
| 739 void MessageLoopForIO::RegisterIOHandler(HANDLE file, IOHandler* handler) { | 730 void MessageLoopForIO::RegisterIOHandler(HANDLE file, IOHandler* handler) { |
| 740 ToPumpIO(pump_.get())->RegisterIOHandler(file, handler); | 731 ToPumpIO(pump_.get())->RegisterIOHandler(file, handler); |
| 741 } | 732 } |
| 742 | 733 |
| 743 bool MessageLoopForIO::RegisterJobObject(HANDLE job, IOHandler* handler) { | 734 bool MessageLoopForIO::RegisterJobObject(HANDLE job, IOHandler* handler) { |
| 744 return ToPumpIO(pump_.get())->RegisterJobObject(job, handler); | 735 return ToPumpIO(pump_.get())->RegisterJobObject(job, handler); |
| 745 } | 736 } |
| 746 | 737 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 758 persistent, | 749 persistent, |
| 759 mode, | 750 mode, |
| 760 controller, | 751 controller, |
| 761 delegate); | 752 delegate); |
| 762 } | 753 } |
| 763 #endif | 754 #endif |
| 764 | 755 |
| 765 #endif // !defined(OS_NACL_SFI) | 756 #endif // !defined(OS_NACL_SFI) |
| 766 | 757 |
| 767 } // namespace base | 758 } // namespace base |
| OLD | NEW |