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

Side by Side Diff: base/message_pump_win.h

Issue 10134001: Make sure that base::MessagePumpForUI from different modules are isolated from each other and add p… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback. Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | base/message_pump_win.cc » ('j') | base/message_pump_win.cc » ('J')
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_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
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
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_
OLDNEW
« no previous file with comments | « no previous file | base/message_pump_win.cc » ('j') | base/message_pump_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698