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