| 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 // Atom representing the message-only window class. |
| 158 ATOM atom_; |
| 159 |
| 160 // Instance of the module containing the window procedure. |
| 161 HMODULE instance_; |
| 162 |
| 157 // A hidden message-only window. | 163 // A hidden message-only window. |
| 158 HWND message_hwnd_; | 164 HWND message_hwnd_; |
| 159 }; | 165 }; |
| 160 | 166 |
| 161 //----------------------------------------------------------------------------- | 167 //----------------------------------------------------------------------------- |
| 162 // MessagePumpForIO extends MessagePumpWin with methods that are particular to a | 168 // MessagePumpForIO extends MessagePumpWin with methods that are particular to a |
| 163 // MessageLoop instantiated with TYPE_IO. This version of MessagePump does not | 169 // 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 | 170 // deal with Windows mesagges, and instead has a Run loop based on Completion |
| 165 // Ports so it is better suited for IO operations. | 171 // Ports so it is better suited for IO operations. |
| 166 // | 172 // |
| (...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 | 335 // This list will be empty almost always. It stores IO completions that have |
| 330 // not been delivered yet because somebody was doing cleanup. | 336 // not been delivered yet because somebody was doing cleanup. |
| 331 std::list<IOItem> completed_io_; | 337 std::list<IOItem> completed_io_; |
| 332 | 338 |
| 333 ObserverList<IOObserver> io_observers_; | 339 ObserverList<IOObserver> io_observers_; |
| 334 }; | 340 }; |
| 335 | 341 |
| 336 } // namespace base | 342 } // namespace base |
| 337 | 343 |
| 338 #endif // BASE_MESSAGE_PUMP_WIN_H_ | 344 #endif // BASE_MESSAGE_PUMP_WIN_H_ |
| OLD | NEW |