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_LOOP_MESSAGE_PUMP_WIN_H_ | 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_WIN_H_ |
6 #define BASE_MESSAGE_LOOP_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> |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 private: | 123 private: |
124 static LRESULT CALLBACK WndProcThunk(HWND window_handle, | 124 static LRESULT CALLBACK WndProcThunk(HWND window_handle, |
125 UINT message, | 125 UINT message, |
126 WPARAM wparam, | 126 WPARAM wparam, |
127 LPARAM lparam); | 127 LPARAM lparam); |
128 void DoRunLoop() override; | 128 void DoRunLoop() override; |
129 void InitMessageWnd(); | 129 void InitMessageWnd(); |
130 void WaitForWork(); | 130 void WaitForWork(); |
131 void HandleWorkMessage(); | 131 void HandleWorkMessage(); |
132 void HandleTimerMessage(); | 132 void HandleTimerMessage(); |
| 133 void RescheduleTimer(); |
133 bool ProcessNextWindowsMessage(); | 134 bool ProcessNextWindowsMessage(); |
134 bool ProcessMessageHelper(const MSG& msg); | 135 bool ProcessMessageHelper(const MSG& msg); |
135 bool ProcessPumpReplacementMessage(); | 136 bool ProcessPumpReplacementMessage(); |
136 | 137 |
137 // Atom representing the registered window class. | 138 // Atom representing the registered window class. |
138 ATOM atom_; | 139 ATOM atom_; |
139 | 140 |
140 // A hidden message-only window. | 141 // A hidden message-only window. |
141 HWND message_hwnd_; | 142 HWND message_hwnd_; |
142 }; | 143 }; |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 // 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 |
332 // not been delivered yet because somebody was doing cleanup. | 333 // not been delivered yet because somebody was doing cleanup. |
333 std::list<IOItem> completed_io_; | 334 std::list<IOItem> completed_io_; |
334 | 335 |
335 ObserverList<IOObserver> io_observers_; | 336 ObserverList<IOObserver> io_observers_; |
336 }; | 337 }; |
337 | 338 |
338 } // namespace base | 339 } // namespace base |
339 | 340 |
340 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_WIN_H_ | 341 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_WIN_H_ |
OLD | NEW |