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

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

Issue 1092863002: Apply automated fixits for Chrome clang plugin to base_unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix format Created 5 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
« no previous file with comments | « base/message_loop/message_loop_unittest.cc ('k') | base/process/kill_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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « base/message_loop/message_loop_unittest.cc ('k') | base/process/kill_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698