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

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

Issue 2807463004: GN: aix port along with linux_s390x, linux_ppc64 and linux_ppc64le support. (Closed)
Patch Set: rebased, cleaned up the code, addressed comments Created 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_loop.h" 5 #include "base/message_loop/message_loop.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 std::unique_ptr<MessagePump> MessageLoop::CreateMessagePumpForType(Type type) { 161 std::unique_ptr<MessagePump> MessageLoop::CreateMessagePumpForType(Type type) {
162 // TODO(rvargas): Get rid of the OS guards. 162 // TODO(rvargas): Get rid of the OS guards.
163 #if defined(USE_GLIB) && !defined(OS_NACL) 163 #if defined(USE_GLIB) && !defined(OS_NACL)
164 typedef MessagePumpGlib MessagePumpForUI; 164 typedef MessagePumpGlib MessagePumpForUI;
165 #elif (defined(OS_LINUX) && !defined(OS_NACL)) || defined(OS_BSD) 165 #elif (defined(OS_LINUX) && !defined(OS_NACL)) || defined(OS_BSD)
166 typedef MessagePumpLibevent MessagePumpForUI; 166 typedef MessagePumpLibevent MessagePumpForUI;
167 #endif 167 #endif
168 168
169 #if defined(OS_IOS) || defined(OS_MACOSX) 169 #if defined(OS_IOS) || defined(OS_MACOSX)
170 #define MESSAGE_PUMP_UI std::unique_ptr<MessagePump>(MessagePumpMac::Create()) 170 #define MESSAGE_PUMP_UI std::unique_ptr<MessagePump>(MessagePumpMac::Create())
171 #elif defined(OS_NACL) 171 #elif defined(OS_NACL) || defined(OS_AIX)
172 // Currently NaCl doesn't have a UI MessageLoop. 172 // Currently NaCl doesn't have a UI MessageLoop.
173 // TODO(abarth): Figure out if we need this. 173 // TODO(abarth): Figure out if we need this.
174 #define MESSAGE_PUMP_UI std::unique_ptr<MessagePump>() 174 #define MESSAGE_PUMP_UI std::unique_ptr<MessagePump>()
175 #else 175 #else
176 #define MESSAGE_PUMP_UI std::unique_ptr<MessagePump>(new MessagePumpForUI()) 176 #define MESSAGE_PUMP_UI std::unique_ptr<MessagePump>(new MessagePumpForUI())
177 #endif 177 #endif
178 178
179 #if defined(OS_MACOSX) 179 #if defined(OS_MACOSX)
180 // Use an OS native runloop on Mac to support timer coalescing. 180 // Use an OS native runloop on Mac to support timer coalescing.
181 #define MESSAGE_PUMP_DEFAULT \ 181 #define MESSAGE_PUMP_DEFAULT \
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 persistent, 666 persistent,
667 mode, 667 mode,
668 controller, 668 controller,
669 delegate); 669 delegate);
670 } 670 }
671 #endif 671 #endif
672 672
673 #endif // !defined(OS_NACL_SFI) 673 #endif // !defined(OS_NACL_SFI)
674 674
675 } // namespace base 675 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698