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_loop.h" | 5 #include "base/message_loop.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/histogram.h" | 10 #include "base/histogram.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/message_pump_default.h" | 13 #include "base/message_pump_default.h" |
14 #include "base/string_util.h" | |
15 #include "base/thread_local.h" | 14 #include "base/thread_local.h" |
16 | 15 |
17 #if defined(OS_MACOSX) | 16 #if defined(OS_MACOSX) |
18 #include "base/message_pump_mac.h" | 17 #include "base/message_pump_mac.h" |
19 #endif | 18 #endif |
20 #if defined(OS_POSIX) | 19 #if defined(OS_POSIX) |
21 #include "base/message_pump_libevent.h" | 20 #include "base/message_pump_libevent.h" |
22 #include "base/third_party/valgrind/valgrind.h" | 21 #include "base/third_party/valgrind/valgrind.h" |
23 #endif | 22 #endif |
24 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 23 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 Watcher *delegate) { | 677 Watcher *delegate) { |
679 return pump_libevent()->WatchFileDescriptor( | 678 return pump_libevent()->WatchFileDescriptor( |
680 fd, | 679 fd, |
681 persistent, | 680 persistent, |
682 static_cast<base::MessagePumpLibevent::Mode>(mode), | 681 static_cast<base::MessagePumpLibevent::Mode>(mode), |
683 controller, | 682 controller, |
684 delegate); | 683 delegate); |
685 } | 684 } |
686 | 685 |
687 #endif | 686 #endif |
OLD | NEW |