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

Side by Side Diff: base/message_pump_win.h

Issue 10407011: Making sure that base::MessagePumpForUI from different modules are isolated from each other. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | base/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_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 // Instance of the module containing the window procedure.
158 HMODULE instance_;
159
157 // A hidden message-only window. 160 // A hidden message-only window.
158 HWND message_hwnd_; 161 HWND message_hwnd_;
159 }; 162 };
160 163
161 //----------------------------------------------------------------------------- 164 //-----------------------------------------------------------------------------
162 // MessagePumpForIO extends MessagePumpWin with methods that are particular to a 165 // MessagePumpForIO extends MessagePumpWin with methods that are particular to a
163 // MessageLoop instantiated with TYPE_IO. This version of MessagePump does not 166 // 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 167 // deal with Windows mesagges, and instead has a Run loop based on Completion
165 // Ports so it is better suited for IO operations. 168 // Ports so it is better suited for IO operations.
166 // 169 //
(...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 332 // This list will be empty almost always. It stores IO completions that have
330 // not been delivered yet because somebody was doing cleanup. 333 // not been delivered yet because somebody was doing cleanup.
331 std::list<IOItem> completed_io_; 334 std::list<IOItem> completed_io_;
332 335
333 ObserverList<IOObserver> io_observers_; 336 ObserverList<IOObserver> io_observers_;
334 }; 337 };
335 338
336 } // namespace base 339 } // namespace base
337 340
338 #endif // BASE_MESSAGE_PUMP_WIN_H_ 341 #endif // BASE_MESSAGE_PUMP_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | base/message_pump_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698