OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "base/message_pump_win.h" | 5 #include "base/message_pump_win.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 | 8 |
9 #include "base/histogram.h" | 9 #include "base/histogram.h" |
10 #include "base/win_util.h" | |
11 | 10 |
12 using base::Time; | 11 using base::Time; |
13 | 12 |
14 namespace base { | 13 namespace base { |
15 | 14 |
16 static const wchar_t kWndClass[] = L"Chrome_MessagePumpWindow"; | 15 static const wchar_t kWndClass[] = L"Chrome_MessagePumpWindow"; |
17 | 16 |
18 // Message sent to get an additional time slice for pumping (processing) another | 17 // Message sent to get an additional time slice for pumping (processing) another |
19 // task (a series of such messages creates a continuous task pump). | 18 // task (a series of such messages creates a continuous task pump). |
20 static const int kMsgHaveWork = WM_USER + 1; | 19 static const int kMsgHaveWork = WM_USER + 1; |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 | 562 |
564 void MessagePumpForIO::WillProcessIOEvent() { | 563 void MessagePumpForIO::WillProcessIOEvent() { |
565 FOR_EACH_OBSERVER(IOObserver, io_observers_, WillProcessIOEvent()); | 564 FOR_EACH_OBSERVER(IOObserver, io_observers_, WillProcessIOEvent()); |
566 } | 565 } |
567 | 566 |
568 void MessagePumpForIO::DidProcessIOEvent() { | 567 void MessagePumpForIO::DidProcessIOEvent() { |
569 FOR_EACH_OBSERVER(IOObserver, io_observers_, DidProcessIOEvent()); | 568 FOR_EACH_OBSERVER(IOObserver, io_observers_, DidProcessIOEvent()); |
570 } | 569 } |
571 | 570 |
572 } // namespace base | 571 } // namespace base |
OLD | NEW |