| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_WIN_H_ | 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_WIN_H_ |
| 6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_WIN_H_ | 6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_WIN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| 11 | 11 |
| 12 #include "base/base_export.h" | 12 #include "base/base_export.h" |
| 13 #include "base/basictypes.h" | |
| 14 #include "base/message_loop/message_pump.h" | 13 #include "base/message_loop/message_pump.h" |
| 15 #include "base/message_loop/message_pump_dispatcher.h" | 14 #include "base/message_loop/message_pump_dispatcher.h" |
| 16 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
| 17 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 18 #include "base/win/scoped_handle.h" | 17 #include "base/win/scoped_handle.h" |
| 19 | 18 |
| 20 namespace base { | 19 namespace base { |
| 21 | 20 |
| 22 // MessagePumpWin serves as the base for specialized versions of the MessagePump | 21 // MessagePumpWin serves as the base for specialized versions of the MessagePump |
| 23 // for Windows. It provides basic functionality like handling of observers and | 22 // for Windows. It provides basic functionality like handling of observers and |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 // This list will be empty almost always. It stores IO completions that have | 331 // This list will be empty almost always. It stores IO completions that have |
| 333 // not been delivered yet because somebody was doing cleanup. | 332 // not been delivered yet because somebody was doing cleanup. |
| 334 std::list<IOItem> completed_io_; | 333 std::list<IOItem> completed_io_; |
| 335 | 334 |
| 336 ObserverList<IOObserver> io_observers_; | 335 ObserverList<IOObserver> io_observers_; |
| 337 }; | 336 }; |
| 338 | 337 |
| 339 } // namespace base | 338 } // namespace base |
| 340 | 339 |
| 341 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_WIN_H_ | 340 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_WIN_H_ |
| OLD | NEW |