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 <stdbool.h> |
| 6 #include <stddef.h> |
| 7 #include <string> |
| 8 #include <vector> |
6 | 9 |
7 #include <algorithm> | 10 #include "base/basictypes.h" |
8 | |
9 #include "base/compiler_specific.h" | |
10 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
11 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/message_loop.h" |
| 14 #include "base/message_pump.h" |
12 #include "base/message_pump_default.h" | 15 #include "base/message_pump_default.h" |
13 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
| 17 #include "base/observer_list.h" |
| 18 #include "base/ref_counted.h" |
| 19 #include "base/synchronization/lock.h" |
| 20 #include "base/task.h" |
14 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 21 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
15 #include "base/threading/thread_local.h" | 22 #include "base/threading/thread_local.h" |
| 23 #include "base/time.h" |
| 24 #include "build/build_config.h" |
| 25 |
| 26 namespace tracked_objects { class Location; } |
16 | 27 |
17 #if defined(OS_MACOSX) | 28 #if defined(OS_MACOSX) |
18 #include "base/message_pump_mac.h" | 29 #include "base/message_pump_mac.h" |
19 #endif | 30 #endif |
20 #if defined(OS_POSIX) | 31 #if defined(OS_POSIX) |
21 #include "base/message_pump_libevent.h" | 32 #include "base/message_pump_libevent.h" |
22 #endif | 33 #endif |
23 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 34 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
24 #include "base/message_pump_glib.h" | 35 #include "base/message_pump_glib.h" |
25 #endif | 36 #endif |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 Watcher *delegate) { | 713 Watcher *delegate) { |
703 return pump_libevent()->WatchFileDescriptor( | 714 return pump_libevent()->WatchFileDescriptor( |
704 fd, | 715 fd, |
705 persistent, | 716 persistent, |
706 static_cast<base::MessagePumpLibevent::Mode>(mode), | 717 static_cast<base::MessagePumpLibevent::Mode>(mode), |
707 controller, | 718 controller, |
708 delegate); | 719 delegate); |
709 } | 720 } |
710 | 721 |
711 #endif | 722 #endif |
OLD | NEW |