| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_PUMP_WIN_H_ | 5 #ifndef BASE_MESSAGE_PUMP_WIN_H_ |
| 6 #define BASE_MESSAGE_PUMP_WIN_H_ | 6 #define BASE_MESSAGE_PUMP_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 | 10 |
| 11 #include <list> | 11 #include <list> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/lock.h" | |
| 15 #include "base/message_pump.h" | 14 #include "base/message_pump.h" |
| 16 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
| 17 #include "base/scoped_handle.h" | 16 #include "base/scoped_handle.h" |
| 18 #include "base/time.h" | 17 #include "base/time.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 |
| 24 // controlling the lifetime of the message pump. | 23 // controlling the lifetime of the message pump. |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 // This list will be empty almost always. It stores IO completions that have | 360 // This list will be empty almost always. It stores IO completions that have |
| 362 // not been delivered yet because somebody was doing cleanup. | 361 // not been delivered yet because somebody was doing cleanup. |
| 363 std::list<IOItem> completed_io_; | 362 std::list<IOItem> completed_io_; |
| 364 | 363 |
| 365 ObserverList<IOObserver> io_observers_; | 364 ObserverList<IOObserver> io_observers_; |
| 366 }; | 365 }; |
| 367 | 366 |
| 368 } // namespace base | 367 } // namespace base |
| 369 | 368 |
| 370 #endif // BASE_MESSAGE_PUMP_WIN_H_ | 369 #endif // BASE_MESSAGE_PUMP_WIN_H_ |
| OLD | NEW |