Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: base/message_loop/message_pump_win.h

Issue 918473002: Process pending delayed tasks in kMsgHaveWork (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | base/message_loop/message_pump_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | base/message_loop/message_pump_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698