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_PUMP_WIN_H_ | 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_WIN_H_ |
6 #define BASE_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" | 13 #include "base/basictypes.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/message_pump.h" | 15 #include "base/message_loop/message_pump.h" |
16 #include "base/message_pump_dispatcher.h" | 16 #include "base/message_loop/message_pump_dispatcher.h" |
17 #include "base/message_pump_observer.h" | 17 #include "base/message_loop/message_pump_observer.h" |
18 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
19 #include "base/time.h" | 19 #include "base/time.h" |
20 #include "base/win/scoped_handle.h" | 20 #include "base/win/scoped_handle.h" |
21 | 21 |
22 namespace base { | 22 namespace base { |
23 | 23 |
24 // MessagePumpWin serves as the base for specialized versions of the MessagePump | 24 // MessagePumpWin serves as the base for specialized versions of the MessagePump |
25 // for Windows. It provides basic functionality like handling of observers and | 25 // for Windows. It provides basic functionality like handling of observers and |
26 // controlling the lifetime of the message pump. | 26 // controlling the lifetime of the message pump. |
27 class BASE_EXPORT MessagePumpWin : public MessagePump { | 27 class BASE_EXPORT MessagePumpWin : public MessagePump { |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 win::ScopedHandle port_; | 386 win::ScopedHandle port_; |
387 // This list will be empty almost always. It stores IO completions that have | 387 // This list will be empty almost always. It stores IO completions that have |
388 // not been delivered yet because somebody was doing cleanup. | 388 // not been delivered yet because somebody was doing cleanup. |
389 std::list<IOItem> completed_io_; | 389 std::list<IOItem> completed_io_; |
390 | 390 |
391 ObserverList<IOObserver> io_observers_; | 391 ObserverList<IOObserver> io_observers_; |
392 }; | 392 }; |
393 | 393 |
394 } // namespace base | 394 } // namespace base |
395 | 395 |
396 #endif // BASE_MESSAGE_PUMP_WIN_H_ | 396 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_WIN_H_ |
OLD | NEW |