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

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

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
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 #include "base/message_loop/message_pump_win.h" 5 #include "base/message_loop/message_pump_win.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 UMA_HISTOGRAM_ENUMERATION("Chrome.MessageLoopProblem", SET_TIMER_ERROR, 155 UMA_HISTOGRAM_ENUMERATION("Chrome.MessageLoopProblem", SET_TIMER_ERROR,
156 MESSAGE_LOOP_PROBLEM_MAX); 156 MESSAGE_LOOP_PROBLEM_MAX);
157 } 157 }
158 158
159 //----------------------------------------------------------------------------- 159 //-----------------------------------------------------------------------------
160 // MessagePumpForUI private: 160 // MessagePumpForUI private:
161 161
162 // static 162 // static
163 LRESULT CALLBACK MessagePumpForUI::WndProcThunk( 163 LRESULT CALLBACK MessagePumpForUI::WndProcThunk(
164 HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) { 164 HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) {
165 // TODO(vadimt): Remove ScopedTracker below once crbug.com/440919 is fixed.
166 tracked_objects::ScopedTracker tracking_profile(
167 FROM_HERE_WITH_EXPLICIT_FUNCTION(
168 "440919 MessagePumpForUI::WndProcThunk"));
169
165 switch (message) { 170 switch (message) {
166 case kMsgHaveWork: 171 case kMsgHaveWork:
167 reinterpret_cast<MessagePumpForUI*>(wparam)->HandleWorkMessage(); 172 reinterpret_cast<MessagePumpForUI*>(wparam)->HandleWorkMessage();
168 break; 173 break;
169 case WM_TIMER: 174 case WM_TIMER:
170 reinterpret_cast<MessagePumpForUI*>(wparam)->HandleTimerMessage(); 175 reinterpret_cast<MessagePumpForUI*>(wparam)->HandleTimerMessage();
171 break; 176 break;
172 } 177 }
173 return DefWindowProc(hwnd, message, wparam, lparam); 178 return DefWindowProc(hwnd, message, wparam, lparam);
174 } 179 }
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 653
649 // static 654 // static
650 MessagePumpForIO::IOHandler* MessagePumpForIO::KeyToHandler( 655 MessagePumpForIO::IOHandler* MessagePumpForIO::KeyToHandler(
651 ULONG_PTR key, 656 ULONG_PTR key,
652 bool* has_valid_io_context) { 657 bool* has_valid_io_context) {
653 *has_valid_io_context = ((key & 1) == 0); 658 *has_valid_io_context = ((key & 1) == 0);
654 return reinterpret_cast<IOHandler*>(key & ~static_cast<ULONG_PTR>(1)); 659 return reinterpret_cast<IOHandler*>(key & ~static_cast<ULONG_PTR>(1));
655 } 660 }
656 661
657 } // namespace base 662 } // namespace base
OLDNEW
« no previous file with comments | « base/message_loop/message_pump_mac.h ('k') | base/metrics/field_trial.h » ('j') | shell/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698