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

Side by Side Diff: base/message_loop/message_loop.cc

Issue 1950633002: Remove IOObservers from MessageLoopForIO. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self review Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/message_loop/message_loop.h ('k') | base/message_loop/message_pump_io_ios.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « base/message_loop/message_loop.h ('k') | base/message_loop/message_pump_io_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698