| 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_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 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam); | 147 HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam); |
| 148 virtual void DoRunLoop(); | 148 virtual void DoRunLoop(); |
| 149 void InitMessageWnd(); | 149 void InitMessageWnd(); |
| 150 void WaitForWork(); | 150 void WaitForWork(); |
| 151 void HandleWorkMessage(); | 151 void HandleWorkMessage(); |
| 152 void HandleTimerMessage(); | 152 void HandleTimerMessage(); |
| 153 bool ProcessNextWindowsMessage(); | 153 bool ProcessNextWindowsMessage(); |
| 154 bool ProcessMessageHelper(const MSG& msg); | 154 bool ProcessMessageHelper(const MSG& msg); |
| 155 bool ProcessPumpReplacementMessage(); | 155 bool ProcessPumpReplacementMessage(); |
| 156 | 156 |
| 157 // Instance of the module containing the window procedure. |
| 158 HMODULE instance_; |
| 159 |
| 157 // A hidden message-only window. | 160 // A hidden message-only window. |
| 158 HWND message_hwnd_; | 161 HWND message_hwnd_; |
| 159 }; | 162 }; |
| 160 | 163 |
| 161 //----------------------------------------------------------------------------- | 164 //----------------------------------------------------------------------------- |
| 162 // MessagePumpForIO extends MessagePumpWin with methods that are particular to a | 165 // MessagePumpForIO extends MessagePumpWin with methods that are particular to a |
| 163 // MessageLoop instantiated with TYPE_IO. This version of MessagePump does not | 166 // MessageLoop instantiated with TYPE_IO. This version of MessagePump does not |
| 164 // deal with Windows mesagges, and instead has a Run loop based on Completion | 167 // deal with Windows mesagges, and instead has a Run loop based on Completion |
| 165 // Ports so it is better suited for IO operations. | 168 // Ports so it is better suited for IO operations. |
| 166 // | 169 // |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 // This list will be empty almost always. It stores IO completions that have | 332 // This list will be empty almost always. It stores IO completions that have |
| 330 // not been delivered yet because somebody was doing cleanup. | 333 // not been delivered yet because somebody was doing cleanup. |
| 331 std::list<IOItem> completed_io_; | 334 std::list<IOItem> completed_io_; |
| 332 | 335 |
| 333 ObserverList<IOObserver> io_observers_; | 336 ObserverList<IOObserver> io_observers_; |
| 334 }; | 337 }; |
| 335 | 338 |
| 336 } // namespace base | 339 } // namespace base |
| 337 | 340 |
| 338 #endif // BASE_MESSAGE_PUMP_WIN_H_ | 341 #endif // BASE_MESSAGE_PUMP_WIN_H_ |
| OLD | NEW |