| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // the native message pump will *only* respond to messages. As a result, it is | 107 // the native message pump will *only* respond to messages. As a result, it is |
| 108 // an excellent choice. It is also helpful that the starter messages that are | 108 // an excellent choice. It is also helpful that the starter messages that are |
| 109 // placed in the queue when new task arrive also awakens DoRunLoop. | 109 // placed in the queue when new task arrive also awakens DoRunLoop. |
| 110 // | 110 // |
| 111 class BASE_EXPORT MessagePumpForUI : public MessagePumpWin { | 111 class BASE_EXPORT MessagePumpForUI : public MessagePumpWin { |
| 112 public: | 112 public: |
| 113 // The application-defined code passed to the hook procedure. | 113 // The application-defined code passed to the hook procedure. |
| 114 static const int kMessageFilterCode = 0x5001; | 114 static const int kMessageFilterCode = 0x5001; |
| 115 | 115 |
| 116 MessagePumpForUI(); | 116 MessagePumpForUI(); |
| 117 virtual ~MessagePumpForUI(); | 117 ~MessagePumpForUI() override; |
| 118 | 118 |
| 119 // MessagePump methods: | 119 // MessagePump methods: |
| 120 void ScheduleWork() override; | 120 void ScheduleWork() override; |
| 121 void ScheduleDelayedWork(const TimeTicks& delayed_work_time) override; | 121 void ScheduleDelayedWork(const TimeTicks& delayed_work_time) override; |
| 122 | 122 |
| 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); |
| (...skipping 203 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 | 331 // This list will be empty almost always. It stores IO completions that have |
| 332 // not been delivered yet because somebody was doing cleanup. | 332 // not been delivered yet because somebody was doing cleanup. |
| 333 std::list<IOItem> completed_io_; | 333 std::list<IOItem> completed_io_; |
| 334 | 334 |
| 335 ObserverList<IOObserver> io_observers_; | 335 ObserverList<IOObserver> io_observers_; |
| 336 }; | 336 }; |
| 337 | 337 |
| 338 } // namespace base | 338 } // namespace base |
| 339 | 339 |
| 340 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_WIN_H_ | 340 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_WIN_H_ |
| OLD | NEW |